From e5e5b97d83010cfb752eff8d9c8d488399cc3ab7 Mon Sep 17 00:00:00 2001 From: Khafra <42794878+KhafraDev@users.noreply.github.com> Date: Tue, 20 Sep 2022 01:53:48 -0400 Subject: [PATCH] types: remove old signature (#1658) --- index.d.ts | 2 -- test/types/index.test-d.ts | 1 - 2 files changed, 3 deletions(-) diff --git a/index.d.ts b/index.d.ts index 814d5c1a390..1c8c6e2d03a 100644 --- a/index.d.ts +++ b/index.d.ts @@ -25,8 +25,6 @@ export { Interceptable } from './types/mock-interceptor' export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, RedirectHandler, DecoratorHandler } export default Undici -declare function Undici(url: string, opts: Pool.Options): Pool - declare namespace Undici { var Dispatcher: typeof import('./types/dispatcher') var Pool: typeof import('./types/pool'); diff --git a/test/types/index.test-d.ts b/test/types/index.test-d.ts index ed343618f4a..4c644045ca0 100644 --- a/test/types/index.test-d.ts +++ b/test/types/index.test-d.ts @@ -2,7 +2,6 @@ import { expectAssignable } from 'tsd' import Undici, {Pool, Client, errors, fetch, Interceptable, RedirectHandler, DecoratorHandler} from '../..' import Dispatcher from "../../types/dispatcher"; -expectAssignable(Undici('', {})) expectAssignable(new Undici.Pool('', {})) expectAssignable(new Undici.Client('', {})) expectAssignable(new Undici.MockAgent().get(''))