From b49671022ebc75858be191b0e1569aee838d4290 Mon Sep 17 00:00:00 2001 From: bquarmby Date: Mon, 29 Apr 2013 20:37:32 +1000 Subject: [PATCH] Update jasmine.d.ts Made jasmine.Spy callable. Added missing "pp" method and internal Matcher properties. Both important for rolling custom matchers. --- jasmine/jasmine.d.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/jasmine/jasmine.d.ts b/jasmine/jasmine.d.ts index 4562984d8..25581904f 100644 --- a/jasmine/jasmine.d.ts +++ b/jasmine/jasmine.d.ts @@ -31,7 +31,7 @@ declare module jasmine { function any(aclass: any); function createSpy(name: string): Spy; function createSpyObj(baseName: string, methodNames: any[]): any; - + function pp(value: any): string; function getEnv(): Env; interface Any { @@ -145,6 +145,12 @@ declare module jasmine { new (env: Env, actual, spec: Env, isNot?: bool); + env: Env; + actual: any; + spec: Env; + isNot?: bool; + message(): any; + toBe(expected): bool; toNotBe(expected): bool; toEqual(expected): bool; @@ -232,6 +238,8 @@ declare module jasmine { } interface Spy { + (...params: any[]): any; + identity: string; calls: any[]; mostRecentCall: { args: any[]; }; @@ -295,4 +303,4 @@ declare module jasmine { } export var HtmlReporter: any; -} \ No newline at end of file +}