mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-24 11:50:59 +08:00
Prototype for createSpyObj to allow for typed spies
Added an overload to the prototype for createSpyObj to allow it to return a strongly typed spy object via use of generics
This commit is contained in:
1 parent
3c1c1fafcf
commit
9b980143a8
1 file changed
+1
Vendored
+1
@@ -32,6 +32,7 @@ declare module jasmine {
|
||||
function objectContaining(sample: any): ObjectContaining;
|
||||
function createSpy(name: string, originalFn?: Function): Spy;
|
||||
function createSpyObj(baseName: string, methodNames: any[]): any;
|
||||
function createSpyObj<T>(baseName: string, methodNames: any[]): T;
|
||||
function pp(value: any): string;
|
||||
function getEnv(): Env;
|
||||
|
||||
|
||||
Reference in new issue
Block a user