diff --git a/types/index.d.ts b/types/index.d.ts index b58127639..5d93ebc48 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -127,7 +127,6 @@ declare namespace nock { done(): void isDone(): boolean - restore(): void pendingMocks(): string[] activeMocks(): string[] } diff --git a/types/tests.ts b/types/tests.ts index 7bd12074e..6a1d1f940 100644 --- a/types/tests.ts +++ b/types/tests.ts @@ -135,7 +135,6 @@ inst = inst.socketDelay(2000) scope.done() // $ExpectType void scope.isDone() // $ExpectType boolean -scope.restore() // $ExpectType void nock.recorder.rec() nock.recorder.rec(true)