mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Renamed several files
This commit is contained in:
+21
-21
@@ -1,21 +1,21 @@
|
||||
interface HumaneOptions {
|
||||
timeout:number;
|
||||
clickToClose:Boolean;
|
||||
baseCls:String;
|
||||
addnCls:String;
|
||||
}
|
||||
|
||||
interface Humane {
|
||||
create(options?:HumaneOptions):Humane;
|
||||
info:Function;
|
||||
error:Function;
|
||||
spawn(options:HumaneOptions):Function;
|
||||
remove();
|
||||
log(message:String):Humane;
|
||||
log(message:String, callback:Function):Humane;
|
||||
log(message:String, options:HumaneOptions):Humane;
|
||||
log(message:String, callback:Function, options:HumaneOptions):Humane;
|
||||
|
||||
log(listOfMessages:Array):Humane;
|
||||
}
|
||||
declare var humane:Humane;
|
||||
interface HumaneOptions {
|
||||
timeout:number;
|
||||
clickToClose:Boolean;
|
||||
baseCls:String;
|
||||
addnCls:String;
|
||||
}
|
||||
|
||||
interface Humane {
|
||||
create(options?:HumaneOptions):Humane;
|
||||
info:Function;
|
||||
error:Function;
|
||||
spawn(options:HumaneOptions):Function;
|
||||
remove();
|
||||
log(message:String):Humane;
|
||||
log(message:String, callback:Function):Humane;
|
||||
log(message:String, options:HumaneOptions):Humane;
|
||||
log(message:String, callback:Function, options:HumaneOptions):Humane;
|
||||
|
||||
log(listOfMessages:Array):Humane;
|
||||
}
|
||||
declare var humane:Humane;
|
||||
+129
-129
@@ -1,130 +1,130 @@
|
||||
// Type definitions for QUnit 1.10.0
|
||||
// Project: http://qunitjs.com/
|
||||
// @by: Diullei Gomes <https://github.com/diullei>
|
||||
|
||||
interface DoneCallbackObject {
|
||||
failed: number;
|
||||
passed: number;
|
||||
total: number;
|
||||
runtime: number;
|
||||
}
|
||||
|
||||
interface LogCallbackObject {
|
||||
result: bool;
|
||||
actual: Object;
|
||||
expected: Object;
|
||||
message: string;
|
||||
}
|
||||
|
||||
interface ModuleDoneCallbackObject {
|
||||
name: string;
|
||||
failed: number;
|
||||
passed: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
interface TestDoneCallbackObject {
|
||||
name: string;
|
||||
module: string;
|
||||
failed: number;
|
||||
passed: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
interface TestStartCallbackObject {
|
||||
name: string;
|
||||
module: string;
|
||||
failed: number;
|
||||
passed: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
interface Config {
|
||||
altertitle: bool;
|
||||
autostart: bool;
|
||||
current: Object;
|
||||
reorder: bool;
|
||||
requireExpects: bool;
|
||||
urlConfig: Array;
|
||||
}
|
||||
|
||||
interface LifecycleObject {
|
||||
setup: () => any;
|
||||
teardown: () => any;
|
||||
}
|
||||
|
||||
interface QUnitAssert {
|
||||
/* ASSERT */
|
||||
deepEqual(actual: Object, expected: Object, message: string);
|
||||
equal(actual: Object, expected: Object, message: string);
|
||||
notDeepEqual(actual: Object, expected: Object, message: string);
|
||||
notEqual(actual: Object, expected: Object, message: string);
|
||||
notStrictEqual(actual: Object, expected: Object, message: string);
|
||||
ok(state: any, message: string);
|
||||
strictEqual(actual: Object, expected: Object, message: string);
|
||||
throws(block: () => any, expected: Object, message: string);
|
||||
throws(block: () => any, message: string);
|
||||
}
|
||||
|
||||
interface QUnitStatic extends QUnitAssert{
|
||||
/* ASYNC CONTROL */
|
||||
start(decrement?: number);
|
||||
stop(increment? : number);
|
||||
|
||||
/* CALLBACKS */
|
||||
begin(callback: () => any);
|
||||
done(callback: (details: DoneCallbackObject) => any);
|
||||
log(callback: (details: LogCallbackObject) => any);
|
||||
moduleDone(callback: (details: ModuleDoneCallbackObject) => any);
|
||||
moduleStart(callback: (name: string) => any);
|
||||
testDone(callback: (details: TestDoneCallbackObject) => any);
|
||||
testStart(callback: (details: TestStartCallbackObject) => any);
|
||||
|
||||
/* CONFIGURATION */
|
||||
config: Config;
|
||||
|
||||
/* TEST */
|
||||
asyncTest(name: string, expected: number, test: () => any);
|
||||
asyncTest(name: string, test: () => any);
|
||||
expect(amount: number);
|
||||
module(name: string, lifecycle?: LifecycleObject);
|
||||
test(title: string, expected: number, test: (assert: any) => any);
|
||||
test(title: string, test: (assert: any) => any);
|
||||
}
|
||||
|
||||
/* ASSERT */
|
||||
declare var deepEqual: (actual: Object, expected: Object, message: string) => any;
|
||||
declare var equal: (actual: Object, expected: Object, message: string) => any;
|
||||
declare var notDeepEqual: (actual: Object, expected: Object, message: string) => any;
|
||||
declare var notEqual: (actual: Object, expected: Object, message: string) => any;
|
||||
declare var notStrictEqual: (actual: Object, expected: Object, message: string) => any;
|
||||
declare var ok: (state: any, message: string) => any;
|
||||
declare var strictEqual: (actual: Object, expected: Object, message: string) => any;
|
||||
// ** I Can't make overload here! :(
|
||||
//declare var throws: (block: () => void, expected: Object, message: string) => any;
|
||||
declare var throws: (block: () => void, message: string) => any;
|
||||
|
||||
/* ASYNC CONTROL */
|
||||
declare var start: (decrement?: number) => any;
|
||||
declare var stop: (increment? : number) => any;
|
||||
|
||||
/* CALLBACKS */
|
||||
declare var begin: (callback: () => any) => any;
|
||||
declare var done: (callback: (details: DoneCallbackObject) => any) => any;
|
||||
declare var log: (callback: (details: LogCallbackObject) => any) => any;
|
||||
declare var moduleDone: (callback: (details: ModuleDoneCallbackObject) => any) => any;
|
||||
declare var moduleStart: (callback: (name: string) => any) => any;
|
||||
declare var testDone: (callback: (details: TestDoneCallbackObject) => any) => any;
|
||||
declare var testStart: (callback: (details: TestStartCallbackObject) => any) => any;
|
||||
|
||||
/* TEST */
|
||||
declare var asyncTest: (name: string, /*expected?: number, */test: () => any) => any;
|
||||
declare var expect: (amount: number) => any;
|
||||
// ** conflict with TypeScript module keyword. Must be used on QUnit namespace
|
||||
//declare var module: (name: string, lifecycle?: LifecycleObject) => any;
|
||||
// ** I can't make an overload here! :(
|
||||
//declare var test: (title: string, expected: number, test: (assert?: any) => any) => any;
|
||||
declare var test: (title: string, test: (assert?: any) => any) => any;
|
||||
|
||||
/* QUNIT */
|
||||
// Type definitions for QUnit 1.10.0
|
||||
// Project: http://qunitjs.com/
|
||||
// @by: Diullei Gomes <https://github.com/diullei>
|
||||
|
||||
interface DoneCallbackObject {
|
||||
failed: number;
|
||||
passed: number;
|
||||
total: number;
|
||||
runtime: number;
|
||||
}
|
||||
|
||||
interface LogCallbackObject {
|
||||
result: bool;
|
||||
actual: Object;
|
||||
expected: Object;
|
||||
message: string;
|
||||
}
|
||||
|
||||
interface ModuleDoneCallbackObject {
|
||||
name: string;
|
||||
failed: number;
|
||||
passed: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
interface TestDoneCallbackObject {
|
||||
name: string;
|
||||
module: string;
|
||||
failed: number;
|
||||
passed: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
interface TestStartCallbackObject {
|
||||
name: string;
|
||||
module: string;
|
||||
failed: number;
|
||||
passed: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
interface Config {
|
||||
altertitle: bool;
|
||||
autostart: bool;
|
||||
current: Object;
|
||||
reorder: bool;
|
||||
requireExpects: bool;
|
||||
urlConfig: Array;
|
||||
}
|
||||
|
||||
interface LifecycleObject {
|
||||
setup: () => any;
|
||||
teardown: () => any;
|
||||
}
|
||||
|
||||
interface QUnitAssert {
|
||||
/* ASSERT */
|
||||
deepEqual(actual: Object, expected: Object, message: string);
|
||||
equal(actual: Object, expected: Object, message: string);
|
||||
notDeepEqual(actual: Object, expected: Object, message: string);
|
||||
notEqual(actual: Object, expected: Object, message: string);
|
||||
notStrictEqual(actual: Object, expected: Object, message: string);
|
||||
ok(state: any, message: string);
|
||||
strictEqual(actual: Object, expected: Object, message: string);
|
||||
throws(block: () => any, expected: Object, message: string);
|
||||
throws(block: () => any, message: string);
|
||||
}
|
||||
|
||||
interface QUnitStatic extends QUnitAssert{
|
||||
/* ASYNC CONTROL */
|
||||
start(decrement?: number);
|
||||
stop(increment? : number);
|
||||
|
||||
/* CALLBACKS */
|
||||
begin(callback: () => any);
|
||||
done(callback: (details: DoneCallbackObject) => any);
|
||||
log(callback: (details: LogCallbackObject) => any);
|
||||
moduleDone(callback: (details: ModuleDoneCallbackObject) => any);
|
||||
moduleStart(callback: (name: string) => any);
|
||||
testDone(callback: (details: TestDoneCallbackObject) => any);
|
||||
testStart(callback: (details: TestStartCallbackObject) => any);
|
||||
|
||||
/* CONFIGURATION */
|
||||
config: Config;
|
||||
|
||||
/* TEST */
|
||||
asyncTest(name: string, expected: number, test: () => any);
|
||||
asyncTest(name: string, test: () => any);
|
||||
expect(amount: number);
|
||||
module(name: string, lifecycle?: LifecycleObject);
|
||||
test(title: string, expected: number, test: (assert: any) => any);
|
||||
test(title: string, test: (assert: any) => any);
|
||||
}
|
||||
|
||||
/* ASSERT */
|
||||
declare var deepEqual: (actual: Object, expected: Object, message: string) => any;
|
||||
declare var equal: (actual: Object, expected: Object, message: string) => any;
|
||||
declare var notDeepEqual: (actual: Object, expected: Object, message: string) => any;
|
||||
declare var notEqual: (actual: Object, expected: Object, message: string) => any;
|
||||
declare var notStrictEqual: (actual: Object, expected: Object, message: string) => any;
|
||||
declare var ok: (state: any, message: string) => any;
|
||||
declare var strictEqual: (actual: Object, expected: Object, message: string) => any;
|
||||
// ** I Can't make overload here! :(
|
||||
//declare var throws: (block: () => void, expected: Object, message: string) => any;
|
||||
declare var throws: (block: () => void, message: string) => any;
|
||||
|
||||
/* ASYNC CONTROL */
|
||||
declare var start: (decrement?: number) => any;
|
||||
declare var stop: (increment? : number) => any;
|
||||
|
||||
/* CALLBACKS */
|
||||
declare var begin: (callback: () => any) => any;
|
||||
declare var done: (callback: (details: DoneCallbackObject) => any) => any;
|
||||
declare var log: (callback: (details: LogCallbackObject) => any) => any;
|
||||
declare var moduleDone: (callback: (details: ModuleDoneCallbackObject) => any) => any;
|
||||
declare var moduleStart: (callback: (name: string) => any) => any;
|
||||
declare var testDone: (callback: (details: TestDoneCallbackObject) => any) => any;
|
||||
declare var testStart: (callback: (details: TestStartCallbackObject) => any) => any;
|
||||
|
||||
/* TEST */
|
||||
declare var asyncTest: (name: string, /*expected?: number, */test: () => any) => any;
|
||||
declare var expect: (amount: number) => any;
|
||||
// ** conflict with TypeScript module keyword. Must be used on QUnit namespace
|
||||
//declare var module: (name: string, lifecycle?: LifecycleObject) => any;
|
||||
// ** I can't make an overload here! :(
|
||||
//declare var test: (title: string, expected: number, test: (assert?: any) => any) => any;
|
||||
declare var test: (title: string, test: (assert?: any) => any) => any;
|
||||
|
||||
/* QUNIT */
|
||||
declare var QUnit: QUnitStatic;
|
||||
Reference in New Issue
Block a user