import { expectAssignable } from 'tsd' import Undici, {Pool, Client, errors, fetch, Interceptable, RedirectHandler, DecoratorHandler, Headers, Response, Request, FormData, File, FileReader} from '../..' import Dispatcher from "../../types/dispatcher"; expectAssignable(new Undici.Pool('', {})) expectAssignable(new Undici.Client('', {})) expectAssignable(new Undici.MockAgent().get('')) expectAssignable(Undici.errors) expectAssignable(Undici.fetch) expectAssignable(Undici.Headers) expectAssignable(Undici.Response) expectAssignable(Undici.Request) expectAssignable(Undici.FormData) expectAssignable(Undici.File) expectAssignable(Undici.FileReader) const client = new Undici.Client('', {}) const handler: Dispatcher.DispatchHandlers = {} expectAssignable(new Undici.RedirectHandler(client, 10, { path: '/', method: 'GET' }, handler)) expectAssignable(new Undici.DecoratorHandler(handler))