From e06b39879d09bcd326f2fcd8ad8938d13cb1ef7d Mon Sep 17 00:00:00 2001 From: William Sears Date: Tue, 5 Feb 2013 14:03:52 -0800 Subject: [PATCH] Add interface and fix signature for moduleStarted callback --- qunit/qunit.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qunit/qunit.d.ts b/qunit/qunit.d.ts index 8fbb9ee667..f068a857cc 100644 --- a/qunit/qunit.d.ts +++ b/qunit/qunit.d.ts @@ -18,6 +18,10 @@ interface LogCallbackObject { message: string; } +interface ModuleStartCallbackObject { + name: string; +} + interface ModuleDoneCallbackObject { name: string; failed: number; @@ -85,7 +89,7 @@ interface QUnitStatic extends QUnitAssert{ done(callback: (details: DoneCallbackObject) => any); log(callback: (details: LogCallbackObject) => any); moduleDone(callback: (details: ModuleDoneCallbackObject) => any); - moduleStart(callback: (name: string) => any); + moduleStart(callback: (details: ModuleStartCallbackObject) => any); testDone(callback: (details: TestDoneCallbackObject) => any); testStart(callback: (details: TestStartCallbackObject) => any);