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:
danrspencer
2013-10-28 15:58:45 +00:00
parent 3c1c1fafcf
commit 9b980143a8
+1
View File
@@ -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;