Skip to content

Commit 70c3a23

Browse files
authored
fix: regression caused by strong typings change (#708)
1 parent 9010a89 commit 70c3a23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/spectator/src/lib/mock.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { FactoryProvider, Type, AbstractType } from '@angular/core';
33

44
type Writable<T> = { -readonly [P in keyof T]: T[P] };
55

6-
export declare type UnknownFunction = (...args: Array<unknown>) => unknown & Function;
6+
declare type UnknownFunction = (...args: unknown[]) => unknown;
77

88
/**
99
* @publicApi
@@ -13,7 +13,7 @@ export interface CompatibleSpy<F extends UnknownFunction = UnknownFunction> exte
1313
* By chaining the spy with and.returnValue, all calls to the function will return a specific
1414
* value.
1515
*/
16-
andReturn(val: any): void;
16+
andReturn(val: ReturnType<F>): void;
1717

1818
/**
1919
* By chaining the spy with and.callFake, all calls to the spy will delegate to the supplied

0 commit comments

Comments
 (0)