Update jasmine.d.ts

Made jasmine.Spy callable.
Added missing "pp" method and internal Matcher properties. Both important for rolling custom matchers.
This commit is contained in:
bquarmby
2013-04-29 20:37:32 +10:00
parent aa830d6aac
commit b49671022e
+10 -2
View File
@@ -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;
}
}