Skip to content

Commit

Permalink
Updated typescript definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Apr 21, 2015
1 parent 9c505de commit 4015c65
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 104 deletions.
11 changes: 1 addition & 10 deletions _references.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
/// <reference path="./typings/node/node.d.ts" />
/// <reference path="./typings/bluebird/bluebird.d.ts" />
/// <reference path="./typings/concoction/concoction.d.ts" />
/// <reference path="./typings/lodash/lodash.d.ts" />
/// <reference path="./typings/skmatc/skmatc.d.ts" />
/// <reference path="./typings/mongodb/mongodb.d.ts" />
/// <reference path="./typings/mocha/mocha.d.ts" />
/// <reference path="./typings/chai/chai.d.ts" />
/// <reference path="./typings/chai-fuzzy/chai-fuzzy.d.ts" />
/// <reference path="./typings/chai-as-promised/chai-as-promised.d.ts" />
/// <reference path="./typings/tsd.d.ts" />
11 changes: 10 additions & 1 deletion tsd.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@
"commit": "95d860879fb90c405aeb13eea7b8564f9c0df2bf"
},
"mocha/mocha.d.ts": {
"commit": "c7b467e42e5d876aee69e4430d0cd6252134289a"
"commit": "cb08e83dd87ace1202d1032a8f275b3efacde5c3"
},
"chai-fuzzy/chai-fuzzy.d.ts": {
"commit": "cb08e83dd87ace1202d1032a8f275b3efacde5c3"
},
"chai/chai.d.ts": {
"commit": "cb08e83dd87ace1202d1032a8f275b3efacde5c3"
},
"chai-as-promised/chai-as-promised.d.ts": {
"commit": "cb08e83dd87ace1202d1032a8f275b3efacde5c3"
}
}
}
2 changes: 1 addition & 1 deletion typings/chai-as-promised/chai-as-promised.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for chai-as-promised
// Type definitions for chai-as-promised
// Project: https://github.com/domenic/chai-as-promised/
// Definitions by: jt000 <https://github.com/jt000>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
Expand Down
28 changes: 10 additions & 18 deletions typings/chai-fuzzy/chai-fuzzy.d.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
// Type definitions for chai-fuzzy 1.3.0
// Type definitions for chai-fuzzy 1.3.0
// Project: http://chaijs.com/plugins/chai-fuzzy
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

///<reference path="../chai/chai.d.ts" />

declare module 'chai-fuzzy' {
import chai = require('chai');

function chaiFuzzy(chai: any, utils: any): void;

export = chaiFuzzy;
}

declare module chai {
interface Assert {
like(act: any, exp: any, msg?: string);
notLike(act: any, exp: any, msg?: string);
containOneLike(act: any, exp: any, msg?: string);
notContainOneLike(act: any, exp: any, msg?: string);
jsonOf(act: any, exp: any, msg?: string);
notJsonOf(act: any, exp: any, msg?: string);
}
}
interface Assert {
like(act:any, exp:any, msg?:string);
notLike(act:any, exp:any, msg?:string);
containOneLike(act:any, exp:any, msg?:string);
notContainOneLike(act:any, exp:any, msg?:string);
jsonOf(act:any, exp:any, msg?:string);
notJsonOf(act:any, exp:any, msg?:string);
}
}
140 changes: 70 additions & 70 deletions typings/chai/chai.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for chai 2.0.0
// Type definitions for chai 2.0.0
// Project: http://chaijs.com/
// Definitions by: Jed Hunsaker <https://github.com/jedhunsaker/>, Bart van der Schoor <https://github.com/Bartvds>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
Expand Down Expand Up @@ -179,107 +179,107 @@ declare module chai {
}

export interface Assert {
(express: any, msg?: string): void;
(express: any, msg?: string):void;

fail(actual?: any, expected?: any, msg?: string, operator?: string): void;
fail(actual?: any, expected?: any, msg?: string, operator?: string):void;

ok(val: any, msg?: string): void;
notOk(val: any, msg?: string): void;
ok(val: any, msg?: string):void;
notOk(val: any, msg?: string):void;

equal(act: any, exp: any, msg?: string): void;
notEqual(act: any, exp: any, msg?: string): void;
equal(act: any, exp: any, msg?: string):void;
notEqual(act: any, exp: any, msg?: string):void;

strictEqual(act: any, exp: any, msg?: string): void;
notStrictEqual(act: any, exp: any, msg?: string): void;
strictEqual(act: any, exp: any, msg?: string):void;
notStrictEqual(act: any, exp: any, msg?: string):void;

deepEqual(act: any, exp: any, msg?: string): void;
notDeepEqual(act: any, exp: any, msg?: string): void;
deepEqual(act: any, exp: any, msg?: string):void;
notDeepEqual(act: any, exp: any, msg?: string):void;

isTrue(val: any, msg?: string): void;
isFalse(val: any, msg?: string): void;
isTrue(val: any, msg?: string):void;
isFalse(val: any, msg?: string):void;

isNull(val: any, msg?: string): void;
isNotNull(val: any, msg?: string): void;
isNull(val: any, msg?: string):void;
isNotNull(val: any, msg?: string):void;

isUndefined(val: any, msg?: string): void;
isDefined(val: any, msg?: string): void;
isUndefined(val: any, msg?: string):void;
isDefined(val: any, msg?: string):void;

isFunction(val: any, msg?: string): void;
isNotFunction(val: any, msg?: string): void;
isFunction(val: any, msg?: string):void;
isNotFunction(val: any, msg?: string):void;

isObject(val: any, msg?: string): void;
isNotObject(val: any, msg?: string): void;
isObject(val: any, msg?: string):void;
isNotObject(val: any, msg?: string):void;

isArray(val: any, msg?: string): void;
isNotArray(val: any, msg?: string): void;
isArray(val: any, msg?: string):void;
isNotArray(val: any, msg?: string):void;

isString(val: any, msg?: string): void;
isNotString(val: any, msg?: string): void;
isString(val: any, msg?: string):void;
isNotString(val: any, msg?: string):void;

isNumber(val: any, msg?: string): void;
isNotNumber(val: any, msg?: string): void;
isNumber(val: any, msg?: string):void;
isNotNumber(val: any, msg?: string):void;

isBoolean(val: any, msg?: string): void;
isNotBoolean(val: any, msg?: string): void;
isBoolean(val: any, msg?: string):void;
isNotBoolean(val: any, msg?: string):void;

typeOf(val: any, type: string, msg?: string): void;
notTypeOf(val: any, type: string, msg?: string): void;
typeOf(val: any, type: string, msg?: string):void;
notTypeOf(val: any, type: string, msg?: string):void;

instanceOf(val: any, type: Function, msg?: string): void;
notInstanceOf(val: any, type: Function, msg?: string): void;
instanceOf(val: any, type: Function, msg?: string):void;
notInstanceOf(val: any, type: Function, msg?: string):void;

include(exp: string, inc: any, msg?: string): void;
include(exp: any[], inc: any, msg?: string): void;
include(exp: string, inc: any, msg?: string):void;
include(exp: any[], inc: any, msg?: string):void;

notInclude(exp: string, inc: any, msg?: string): void;
notInclude(exp: any[], inc: any, msg?: string): void;
notInclude(exp: string, inc: any, msg?: string):void;
notInclude(exp: any[], inc: any, msg?: string):void;

match(exp: any, re: RegExp, msg?: string): void;
notMatch(exp: any, re: RegExp, msg?: string): void;
match(exp: any, re: RegExp, msg?: string):void;
notMatch(exp: any, re: RegExp, msg?: string):void;

property(obj: Object, prop: string, msg?: string): void;
notProperty(obj: Object, prop: string, msg?: string): void;
deepProperty(obj: Object, prop: string, msg?: string): void;
notDeepProperty(obj: Object, prop: string, msg?: string): void;
property(obj: Object, prop: string, msg?: string):void;
notProperty(obj: Object, prop: string, msg?: string):void;
deepProperty(obj: Object, prop: string, msg?: string):void;
notDeepProperty(obj: Object, prop: string, msg?: string):void;

propertyVal(obj: Object, prop: string, val: any, msg?: string): void;
propertyNotVal(obj: Object, prop: string, val: any, msg?: string): void;
propertyVal(obj: Object, prop: string, val: any, msg?: string):void;
propertyNotVal(obj: Object, prop: string, val: any, msg?: string):void;

deepPropertyVal(obj: Object, prop: string, val: any, msg?: string): void;
deepPropertyNotVal(obj: Object, prop: string, val: any, msg?: string): void;
deepPropertyVal(obj: Object, prop: string, val: any, msg?: string):void;
deepPropertyNotVal(obj: Object, prop: string, val: any, msg?: string):void;

lengthOf(exp: any, len: number, msg?: string): void;
lengthOf(exp: any, len: number, msg?: string):void;
//alias frenzy
throw(fn: Function, msg?: string): void;
throw(fn: Function, regExp: RegExp): void;
throw(fn: Function, errType: Function, msg?: string): void;
throw(fn: Function, errType: Function, regExp: RegExp): void;
throw(fn: Function, msg?: string):void;
throw(fn: Function, regExp: RegExp):void;
throw(fn: Function, errType: Function, msg?: string):void;
throw(fn: Function, errType: Function, regExp: RegExp):void;

throws(fn: Function, msg?: string): void;
throws(fn: Function, regExp: RegExp): void;
throws(fn: Function, errType: Function, msg?: string): void;
throws(fn: Function, errType: Function, regExp: RegExp): void;
throws(fn: Function, msg?: string):void;
throws(fn: Function, regExp: RegExp):void;
throws(fn: Function, errType: Function, msg?: string):void;
throws(fn: Function, errType: Function, regExp: RegExp):void;

Throw(fn: Function, msg?: string): void;
Throw(fn: Function, regExp: RegExp): void;
Throw(fn: Function, errType: Function, msg?: string): void;
Throw(fn: Function, errType: Function, regExp: RegExp): void;
Throw(fn: Function, msg?: string):void;
Throw(fn: Function, regExp: RegExp):void;
Throw(fn: Function, errType: Function, msg?: string):void;
Throw(fn: Function, errType: Function, regExp: RegExp):void;

doesNotThrow(fn: Function, msg?: string): void;
doesNotThrow(fn: Function, regExp: RegExp): void;
doesNotThrow(fn: Function, errType: Function, msg?: string): void;
doesNotThrow(fn: Function, errType: Function, regExp: RegExp): void;
doesNotThrow(fn: Function, msg?: string):void;
doesNotThrow(fn: Function, regExp: RegExp):void;
doesNotThrow(fn: Function, errType: Function, msg?: string):void;
doesNotThrow(fn: Function, errType: Function, regExp: RegExp):void;

operator(val: any, operator: string, val2: any, msg?: string): void;
closeTo(act: number, exp: number, delta: number, msg?: string): void;
operator(val: any, operator: string, val2: any, msg?: string):void;
closeTo(act: number, exp: number, delta: number, msg?: string):void;

sameMembers(set1: any[], set2: any[], msg?: string): void;
includeMembers(set1: any[], set2: any[], msg?: string): void;
sameMembers(set1: any[], set2: any[], msg?: string):void;
includeMembers(set1: any[], set2: any[], msg?: string):void;

ifError(val: any, msg?: string): void;
ifError(val: any, msg?: string):void;
}
}

declare module "chai" {
export = chai;
}
}
8 changes: 4 additions & 4 deletions typings/mocha/mocha.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Type definitions for mocha 2.0.1
// Type definitions for mocha 2.0.1
// Project: http://mochajs.org/
// Definitions by: Kazi Manzur Rashid <https://github.com/kazimanzurrashid/>, otiai10 <https://github.com/otiai10>, jt000 <https://github.com/jt000>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
Expand Down Expand Up @@ -52,15 +52,15 @@ interface MochaDone {

declare var mocha: Mocha;

declare var describe: {
declare var describe : {
(description: string, spec: () => void): void;
only(description: string, spec: () => void): void;
skip(description: string, spec: () => void): void;
timeout(ms: number): void;
}

// alias for `describe`
declare var context: {
declare var context : {
(contextTitle: string, spec: () => void): void;
only(contextTitle: string, spec: () => void): void;
skip(contextTitle: string, spec: () => void): void;
Expand Down Expand Up @@ -144,4 +144,4 @@ declare module "mocha" {
}

export = Mocha;
}
}
4 changes: 4 additions & 0 deletions typings/tsd.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
/// <reference path="bluebird/bluebird.d.ts" />
/// <reference path="lodash/lodash.d.ts" />
/// <reference path="node/node.d.ts" />
/// <reference path="chai-as-promised/chai-as-promised.d.ts" />
/// <reference path="chai-fuzzy/chai-fuzzy.d.ts" />
/// <reference path="chai/chai.d.ts" />
/// <reference path="mocha/mocha.d.ts" />

0 comments on commit 4015c65

Please sign in to comment.