diff --git a/c3/index.d.ts b/c3/index.d.ts index 52ed9bedbc..85125f05ea 100644 --- a/c3/index.d.ts +++ b/c3/index.d.ts @@ -10,7 +10,7 @@ export as namespace c3; declare namespace c3 { - type PrimitiveArray = (string | boolean | number)[]; + type PrimitiveArray = Array; type FormatFunction = (v: any, id: string, i: number, j: number) => void; interface TargetIds { @@ -258,7 +258,7 @@ declare namespace c3 { /** * Parse a JSON object for data. */ - json?: Object; + json?: {}; /** * Load data from a multidimensional array, with the first element containing the data names, the following containing related data in that order. */ @@ -823,7 +823,7 @@ declare namespace c3 { */ load(args: { url?: string; - json?: Object; + json?: {}; keys?: { x?: string; value: string[]; } rows?: PrimitiveArray[]; columns?: PrimitiveArray[]; @@ -854,7 +854,7 @@ declare namespace c3 { * If done is given, the specified function will be called when flow ends. */ flow(args: { - json?: Object; + json?: {}; keys?: { x?: string; value: string[]; } rows?: PrimitiveArray[]; columns?: PrimitiveArray[]; @@ -907,7 +907,7 @@ declare namespace c3 { * Add new region. This API adds new region instead of replacing like regions. * @param grids New region will be added. The format of this argument is the same as regions and it's possible to give an Object if only one region will be added. */ - add(regions: any[] | Object): void; + add(regions: any[] | {}): void; /** * Remove regions. This API removes regions. * @param args This argument should include classes. If classes is given, the regions that have one of the specified classes will be removed. If args is not given, all of regions will be removed. @@ -1060,7 +1060,7 @@ declare namespace c3 { * Add x/y grid lines. This API adds new x/y grid lines instead of replacing like xgrids. * @param grids New x/y grid lines will be added. The format of this argument is the same as grid.x.lines or grid.y.lines and it's possible to give an Object if only one line will be added. */ - add(grids: any[] | Object): void; + add(grids: any[] | {}): void; /** * Remove x/y grid lines. This API removes x/y grid lines. * @param args This argument should include value or class. If value is given, the x/y grid lines that have specified x/y value will be removed. If class is given, the x/y grid lines that have specified class will be removed. If args is not given, all of x/y grid lines will be removed. diff --git a/cache-manager/tslint.json b/cache-manager/tslint.json index 2221e40e4a..012ccb0889 100644 --- a/cache-manager/tslint.json +++ b/cache-manager/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "unified-signatures": false + } +} \ No newline at end of file diff --git a/cachefactory/tslint.json b/cachefactory/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/cachefactory/tslint.json +++ b/cachefactory/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/cal-heatmap/tslint.json b/cal-heatmap/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/cal-heatmap/tslint.json +++ b/cal-heatmap/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/callsite/tslint.json b/callsite/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/callsite/tslint.json +++ b/callsite/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/camljs/index.d.ts b/camljs/index.d.ts index 73bbe03767..cd0438f93f 100644 --- a/camljs/index.d.ts +++ b/camljs/index.d.ts @@ -105,11 +105,11 @@ declare namespace CamlBuilder { interface IFieldExpression { /** Adds And clauses to the query. Use for creating bracket-expressions in conjuction with CamlBuilder.Expression(). */ All(...conditions: IExpression[]): IExpression; - /** Adds Or clauses to the query. Use for creating bracket-expressions in conjuction with CamlBuilder.Expression(). */ - Any(...conditions: IExpression[]): IExpression; /** Adds And clauses to the query. Use for creating bracket-expressions in conjuction with CamlBuilder.Expression(). */ All(conditions: IExpression[]): IExpression; /** Adds Or clauses to the query. Use for creating bracket-expressions in conjuction with CamlBuilder.Expression(). */ + Any(...conditions: IExpression[]): IExpression; + /** Adds Or clauses to the query. Use for creating bracket-expressions in conjuction with CamlBuilder.Expression(). */ Any(conditions: IExpression[]): IExpression; /** Specifies that a condition will be tested against the field with the specified internal name, and the type of this field is Text */ TextField(internalName: string): ITextFieldExpression; @@ -189,41 +189,27 @@ declare namespace CamlBuilder { IsNull(): IExpression; /** Checks whether the value of the field was not specified by user */ IsNotNull(): IExpression; - /** Checks whether the value of the field is equal to the specified value */ - EqualTo(value: Date): IExpression; - /** Checks whether the value of the field is not equal to the specified value */ - NotEqualTo(value: Date): IExpression; - /** Checks whether the value of the field is greater than the specified value */ - GreaterThan(value: Date): IExpression; - /** Checks whether the value of the field is less than the specified value */ - LessThan(value: Date): IExpression; - /** Checks whether the value of the field is greater than or equal to the specified value */ - GreaterThanOrEqualTo(value: Date): IExpression; - /** Checks whether the value of the field is less than or equal to the specified value */ - LessThanOrEqualTo(value: Date): IExpression; - /** Checks whether the value of the field is equal to one of the specified values */ - In(arrayOfValues: Date[]): IExpression; /** Checks whether the value of the field is equal to the specified value. The datetime value should be defined in ISO 8601 format! */ - EqualTo(value: string): IExpression; + EqualTo(value: Date | string): IExpression; /** Checks whether the value of the field is not equal to the specified value. The datetime value should be defined in ISO 8601 format! */ - NotEqualTo(value: string): IExpression; + NotEqualTo(value: Date | string): IExpression; /** Checks whether the value of the field is greater than the specified value. The datetime value should be defined in ISO 8601 format! */ - GreaterThan(value: string): IExpression; + GreaterThan(value: Date | string): IExpression; /** Checks whether the value of the field is less than the specified value. The datetime value should be defined in ISO 8601 format! */ - LessThan(value: string): IExpression; + LessThan(value: Date | string): IExpression; /** Checks whether the value of the field is greater than or equal to the specified value. The datetime value should be defined in ISO 8601 format! */ - GreaterThanOrEqualTo(value: string): IExpression; + GreaterThanOrEqualTo(value: Date | string): IExpression; /** Checks whether the value of the field is less than or equal to the specified value. The datetime value should be defined in ISO 8601 format! */ - LessThanOrEqualTo(value: string): IExpression; + LessThanOrEqualTo(value: Date | string): IExpression; /** Checks whether the value of the field is equal to one of the specified values. The datetime value should be defined in ISO 8601 format! */ - In(arrayOfValues: string[]): IExpression; + In(arrayOfValues: Date[] | string[]): IExpression; } interface ITextFieldExpression { /** Checks whether the value of the field is equal to the specified value */ diff --git a/camo/tslint.json b/camo/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/camo/tslint.json +++ b/camo/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/canvas-gauges/tslint.json b/canvas-gauges/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/canvas-gauges/tslint.json +++ b/canvas-gauges/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/cash/tslint.json b/cash/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/cash/tslint.json +++ b/cash/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/casperjs/index.d.ts b/casperjs/index.d.ts index 68acb34a36..4598d35a86 100644 --- a/casperjs/index.d.ts +++ b/casperjs/index.d.ts @@ -31,10 +31,7 @@ interface Casper extends EventEmitter { click(selector: string): boolean; clickLabel(label: string, tag?: string): boolean; capture(targetFilePath: string, clipRect: ClipRect): Casper; - captureBase64(format: string): string; - captureBase64(format: string, area: string): string; - captureBase64(format: string, area: ClipRect): string; - captureBase64(format: string, area: any): string; + captureBase64(format: string, area?: string | ClipRect | any): string; captureSelector(targetFile: string, selector: string): Casper; clear(): Casper; debugHTML(selector?: string, outer?: boolean): Casper; @@ -69,8 +66,7 @@ interface Casper extends EventEmitter { open(location: string, settings: OpenSettings): Casper; reload(then?: (response: HttpResponse) => void): Casper; repeat(times: number, then: Function): Casper; - resourceExists(test: Function): boolean; - resourceExists(test: string): boolean; + resourceExists(test: Function | string): boolean; run(onComplete: Function, time?: number): Casper; scrollTo(x: number, y: number): Casper; scrollToBottom(): Casper; @@ -95,22 +91,17 @@ interface Casper extends EventEmitter { wait(timeout: number, then?: Function): Casper; waitFor(testFx: Function, then?: Function, onTimeout?: Function, timeout?: number): Casper; waitForAlert(then: Function, onTimeout?: Function, timeout?: number): Casper; - waitForPopup(urlPattern: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForPopup(urlPattern: RegExp, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForUrl(url: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForUrl(url: RegExp, then?: Function, onTimeout?: Function, timeout?: number): Casper; + waitForPopup(urlPattern: string | RegExp, then?: Function, onTimeout?: Function, timeout?: number): Casper; + waitForUrl(url: string | RegExp, then?: Function, onTimeout?: Function, timeout?: number): Casper; waitForSelector(selector: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; waitWhileSelector(selector: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; waitForResource(testFx: Function, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForText(pattern: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForText(pattern: RegExp, then?: Function, onTimeout?: Function, timeout?: number): Casper; + waitForText(pattern: string | RegExp, then?: Function, onTimeout?: Function, timeout?: number): Casper; waitUntilVisible(selector: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; waitWhileVisible(selector: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; warn(message: string): Casper; - withFrame(frameInfo: string, then: Function): Casper; - withFrame(frameInfo: number, then: Function): Casper; - withPopup(popupInfo: string, step: Function): Casper; - withPopup(popupInfo: RegExp, step: Function): Casper; + withFrame(frameInfo: string | number, then: Function): Casper; + withPopup(popupInfo: string | RegExp, step: Function): Casper; zoom(factor: number): Casper; } @@ -237,8 +228,7 @@ interface Tester { assertTruthy(subject: any, message?: string): any; assertType(input: any, type: string, message?: string): any; assertInstanceOf(input: any, ctor: Function, message?: string): any; - assertUrlMatch(pattern: string, message?: string): any; - assertUrlMatch(pattern: RegExp, message?: string): any; + assertUrlMatch(pattern: string | RegExp, message?: string): any; assertVisible(selector: string, message?: string): any; /* since 1.1 */ diff --git a/casperjs/tslint.json b/casperjs/tslint.json index 2221e40e4a..2d6cd90f81 100644 --- a/casperjs/tslint.json +++ b/casperjs/tslint.json @@ -1 +1,7 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false, + "unified-signatures": false + } +} \ No newline at end of file diff --git a/cassandra-driver/tslint.json b/cassandra-driver/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/cassandra-driver/tslint.json +++ b/cassandra-driver/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/chai-as-promised/index.d.ts b/chai-as-promised/index.d.ts index b4f3ca405d..ffbf60b732 100644 --- a/chai-as-promised/index.d.ts +++ b/chai-as-promised/index.d.ts @@ -185,8 +185,7 @@ declare namespace Chai { becomes(promise: PromisesAPlus.Thenable, expected: any, message?: string): PromisesAPlus.Thenable; doesNotBecome(promise: PromisesAPlus.Thenable, expected: any, message?: string): PromisesAPlus.Thenable; isRejected(promise: PromisesAPlus.Thenable, message?: string): PromisesAPlus.Thenable; - isRejected(promise: PromisesAPlus.Thenable, expected: any, message?: string): PromisesAPlus.Thenable; - isRejected(promise: PromisesAPlus.Thenable, match: RegExp, message?: string): PromisesAPlus.Thenable; + isRejected(promise: PromisesAPlus.Thenable, expected: RegExp | any, message?: string): PromisesAPlus.Thenable; notify(fn: Function): PromisesAPlus.Thenable; } @@ -238,11 +237,9 @@ declare namespace Chai { instanceOf(val: any, type: Function, msg?: string): PromisesAPlus.Thenable; notInstanceOf(val: any, type: Function, msg?: string): PromisesAPlus.Thenable; - include(exp: string, inc: any, msg?: string): PromisesAPlus.Thenable; - include(exp: any[], inc: any, msg?: string): PromisesAPlus.Thenable; + include(exp: string | any[], inc: any, msg?: string): PromisesAPlus.Thenable; - notInclude(exp: string, inc: any, msg?: string): PromisesAPlus.Thenable; - notInclude(exp: any[], inc: any, msg?: string): PromisesAPlus.Thenable; + notInclude(exp: string | any[], inc: any, msg?: string): PromisesAPlus.Thenable; match(exp: any, re: RegExp, msg?: string): PromisesAPlus.Thenable; notMatch(exp: any, re: RegExp, msg?: string): PromisesAPlus.Thenable; diff --git a/chai-as-promised/tslint.json b/chai-as-promised/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/chai-as-promised/tslint.json +++ b/chai-as-promised/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/chai-http/index.d.ts b/chai-http/index.d.ts index 567f13e4e7..d94601d327 100644 --- a/chai-http/index.d.ts +++ b/chai-http/index.d.ts @@ -20,8 +20,7 @@ declare namespace Chai { interface Assertion { status(code: number): Assertion; - header(key: string, value?: string): Assertion; - header(key: string, value?: RegExp): Assertion; + header(key: string, value?: string | RegExp): Assertion; headers: Assertion; json: Assertion; text: Assertion; @@ -51,8 +50,8 @@ declare namespace ChaiHttp { interface Request extends FinishedRequest { attach(field: string, file: string|Buffer, filename: string): Request; set(field: string, val: string): Request; - query(params: Object): Request; - send(data: Object): Request; + query(params: {}): Request; + send(data: {}): Request; auth(user: string, name: string): Request; field(name: string, val: string): Request; end(callback?: (err: any, res: Response) => void): FinishedRequest; diff --git a/chai-jquery/tslint.json b/chai-jquery/tslint.json index 2221e40e4a..2d6cd90f81 100644 --- a/chai-jquery/tslint.json +++ b/chai-jquery/tslint.json @@ -1 +1,7 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false, + "unified-signatures": false + } +} \ No newline at end of file diff --git a/chai-spies/index.d.ts b/chai-spies/index.d.ts index ffed6e594b..1fd18d0dcc 100644 --- a/chai-spies/index.d.ts +++ b/chai-spies/index.d.ts @@ -17,7 +17,7 @@ declare namespace Chai { * ```ts * expect(spy).to.be.spy; * spy.should.be.spy; - * ``` + * ``` */ spy: Assertion; @@ -28,7 +28,7 @@ declare namespace Chai { * expect(spy).to.have.been.called(); * spy.should.have.been.called(); * ``` - * Note that ```called``` can be used as a chainable method. + * Note that ```called``` can be used as a chainable method. */ called: ChaiSpies.Called; } @@ -46,9 +46,9 @@ declare namespace ChaiSpies { * var spy = chai.spy(original) * , e_spy = chai.spy(); * ``` - * @param fn function to spy on. @default ```function () {}``` + * @param fn function to spy on. @default ```function () {}``` * @returns function to actually call - */ + */ (): SpyFunc0Proxy; (fn: SpyFunc0): SpyFunc0Proxy; (fn: SpyFunc1): SpyFunc1Proxy; @@ -83,8 +83,8 @@ declare namespace ChaiSpies { * @param {Object} object * @param {String} method name to spy on * @returns function to actually call - */ - on(object: Object, ...methodNames: string[]): any; + */ + on(object: {}, ...methodNames: string[]): any; /** * #### chai.spy.object (function) @@ -97,10 +97,10 @@ declare namespace ChaiSpies { * @param {String[]|Object} method names or method definitions * @returns object with spied methods */ - object(name: string, methods: string[]): any; - object(methods: string[]): any; - object(name: string, methods: T): T; - object(methods: T): T; + object(name: string, methods: string[]): any; + object(methods: string[]): any; + object(name: string, methods: T): T; + object(methods: T): T; /** * #### chai.spy.returns (function) @@ -132,12 +132,12 @@ declare namespace ChaiSpies { * spy.should.not.have.been.called.once; * ``` */ - once: Chai.Assertion; + once: Chai.Assertion; /** * ####.twice * Assert that a spy has been called exactly twice. - * ```ts + * ```ts * expect(spy).to.have.been.called.twice; * expect(spy).to.not.have.been.called.twice; * spy.should.have.been.called.twice; @@ -189,7 +189,7 @@ declare namespace ChaiSpies { * ```ts * expect(spy).to.have.been.called.above(3); * spy.should.not.have.been.called.above(3); - * ``` + * ``` */ above(n: number): Chai.Assertion; @@ -199,7 +199,7 @@ declare namespace ChaiSpies { * ```ts * expect(spy).to.have.been.called.gt(3); * spy.should.not.have.been.called.gt(3); - * ``` + * ``` */ gt(n: number): Chai.Assertion; @@ -209,7 +209,7 @@ declare namespace ChaiSpies { * ```ts * expect(spy).to.have.been.called.below(3); * spy.should.not.have.been.called.below(3); - * ``` + * ``` */ below(n: number): Chai.Assertion; @@ -219,7 +219,7 @@ declare namespace ChaiSpies { * ```ts * expect(spy).to.have.been.called.lt(3); * spy.should.not.have.been.called.lt(3); - * ``` + * ``` */ lt(n: number): Chai.Assertion; } @@ -234,7 +234,7 @@ declare namespace ChaiSpies { * spy.should.have.been.called.with('foo'); * ``` * Will also pass for ```spy('foo', 'bar')``` and ```spy(); spy('foo')```. - * If used with multiple arguments, assert that a spy has been called with all the given arguments at least once. + * If used with multiple arguments, assert that a spy has been called with all the given arguments at least once. * ```ts * spy('foo', 'bar', 1); * expect(spy).to.have.been.called.with('bar', 'foo'); @@ -322,7 +322,7 @@ declare namespace ChaiSpies { * * Resets __spy object parameters for instantiation and reuse * @returns proxy spy object - */ + */ reset(): this; } @@ -330,77 +330,77 @@ declare namespace ChaiSpies { (): R; } - interface SpyFunc1 { - (a: A1): R; + interface SpyFunc1 { + (a: A1): R; } - interface SpyFunc2 { - (a: A1, b: A2): R; + interface SpyFunc2 { + (a: A1, b: A2): R; } - interface SpyFunc3 { - (a: A1, b: A2, c: A3): R; + interface SpyFunc3 { + (a: A1, b: A2, c: A3): R; } - interface SpyFunc4 { - (a: A1, b: A2, c: A3, d: A4): R; + interface SpyFunc4 { + (a: A1, b: A2, c: A3, d: A4): R; } - interface SpyFunc5 { - (a: A1, b: A2, c: A3, d: A4, e: A5): R; + interface SpyFunc5 { + (a: A1, b: A2, c: A3, d: A4, e: A5): R; } - interface SpyFunc6 { - (a: A1, b: A2, c: A3, d: A4, e: A5, f: A6): R; + interface SpyFunc6 { + (a: A1, b: A2, c: A3, d: A4, e: A5, f: A6): R; } - interface SpyFunc7 { - (a: A1, b: A2, c: A3, d: A4, e: A5, f: A6, g: A7): R; + interface SpyFunc7 { + (a: A1, b: A2, c: A3, d: A4, e: A5, f: A6, g: A7): R; } - interface SpyFunc8 { - (a: A1, b: A2, c: A3, d: A4, e: A5, f: A6, g: A7, h: A8): R; + interface SpyFunc8 { + (a: A1, b: A2, c: A3, d: A4, e: A5, f: A6, g: A7, h: A8): R; } - - interface SpyFunc9 { - (a: A1, b: A2, c: A3, d: A4, e: A5, f: A6, g: A7, h: A8, i: A9): R; + + interface SpyFunc9 { + (a: A1, b: A2, c: A3, d: A4, e: A5, f: A6, g: A7, h: A8, i: A9): R; } - - interface SpyFunc10 { - (a: A1, b: A2, c: A3, d: A4, e: A5, f: A6, g: A7, h: A8, i: A9, j: A10): R; + + interface SpyFunc10 { + (a: A1, b: A2, c: A3, d: A4, e: A5, f: A6, g: A7, h: A8, i: A9, j: A10): R; } interface SpyFunc0Proxy extends SpyFunc0, Resetable { } - interface SpyFunc1Proxy extends SpyFunc1, Resetable { + interface SpyFunc1Proxy extends SpyFunc1, Resetable { } - interface SpyFunc2Proxy extends SpyFunc2, Resetable { + interface SpyFunc2Proxy extends SpyFunc2, Resetable { } - interface SpyFunc3Proxy extends SpyFunc3, Resetable { + interface SpyFunc3Proxy extends SpyFunc3, Resetable { } - interface SpyFunc4Proxy extends SpyFunc4, Resetable { + interface SpyFunc4Proxy extends SpyFunc4, Resetable { } - interface SpyFunc5Proxy extends SpyFunc5, Resetable { + interface SpyFunc5Proxy extends SpyFunc5, Resetable { } - interface SpyFunc6Proxy extends SpyFunc6, Resetable { + interface SpyFunc6Proxy extends SpyFunc6, Resetable { } - interface SpyFunc7Proxy extends SpyFunc7, Resetable { + interface SpyFunc7Proxy extends SpyFunc7, Resetable { } - interface SpyFunc8Proxy extends SpyFunc8, Resetable { + interface SpyFunc8Proxy extends SpyFunc8, Resetable { } - - interface SpyFunc9Proxy extends SpyFunc9, Resetable { + + interface SpyFunc9Proxy extends SpyFunc9, Resetable { } - - interface SpyFunc10Proxy extends SpyFunc10, Resetable { + + interface SpyFunc10Proxy extends SpyFunc10, Resetable { } } diff --git a/chai-subset/tslint.json b/chai-subset/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/chai-subset/tslint.json +++ b/chai-subset/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/chai/chai-2.0.0.d.ts b/chai/chai-2.0.0.d.ts index 0983da1fdf..f3920508bd 100644 --- a/chai/chai-2.0.0.d.ts +++ b/chai/chai-2.0.0.d.ts @@ -233,11 +233,9 @@ declare namespace Chai { 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 | 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 | any[], inc: any, msg?: string): void; match(exp: any, re: RegExp, msg?: string): void; notMatch(exp: any, re: RegExp, msg?: string): void; diff --git a/chai/chai-3.2.0.d.ts b/chai/chai-3.2.0.d.ts index 7e4e1a1ff4..c8b2b11ffd 100644 --- a/chai/chai-3.2.0.d.ts +++ b/chai/chai-3.2.0.d.ts @@ -298,11 +298,9 @@ declare namespace Chai { 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 | 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 | any[], inc: any, msg?: string): void; match(exp: any, re: RegExp, msg?: string): void; notMatch(exp: any, re: RegExp, msg?: string): void; diff --git a/chai/index.d.ts b/chai/index.d.ts index 44750136c8..0170c3f4a2 100644 --- a/chai/index.d.ts +++ b/chai/index.d.ts @@ -309,11 +309,9 @@ declare namespace Chai { 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 | 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 | any[], inc: any, msg?: string): void; match(exp: any, re: RegExp, msg?: string): void; notMatch(exp: any, re: RegExp, msg?: string): void; diff --git a/chai/tslint.json b/chai/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/chai/tslint.json +++ b/chai/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/chance/index.d.ts b/chance/index.d.ts index 12657641cd..179c2ac425 100644 --- a/chance/index.d.ts +++ b/chance/index.d.ts @@ -12,9 +12,9 @@ declare namespace Chance { type SeededChance = Chance & Seeded; interface ChanceStatic { - (): Chance - (seed: number): SeededChance - (generator: () => any): Chance + (): Chance; + (seed: number): SeededChance; + (generator: () => any): Chance; new(): Chance; new(seed: number): SeededChance; @@ -124,11 +124,11 @@ declare namespace Chance { * @deprecated Use pickone */ pick(arr: T[]): T; - pickone(arr: T[]): T; /** * @deprecated Use pickset */ pick(arr: T[], count: number): T[]; + pickone(arr: T[]): T; pickset(arr: T[], count: number): T[]; set: Setter; shuffle(arr: T[]): T[]; diff --git a/chartist/index.d.ts b/chartist/index.d.ts index 80cbf2f28a..935ab0e286 100644 --- a/chartist/index.d.ts +++ b/chartist/index.d.ts @@ -237,7 +237,7 @@ declare namespace Chartist { height?: number | string; high?: number; low?: number; - ticks?: (string | number)[]; + ticks?: Array; onlyInteger?: boolean; chartPadding?: IChartPadding; seriesBarDistance?: number; @@ -292,7 +292,7 @@ declare namespace Chartist { lineSmooth?: Function | boolean; low?: number; high?: number; - ticks?: (string | number)[]; + ticks?: Array; chartPadding?: IChartPadding; fullWidth?: boolean; classNames?: ILineChartClasses; diff --git a/clean-css/tslint.json b/clean-css/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/clean-css/tslint.json +++ b/clean-css/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/co-views/tslint.json b/co-views/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/co-views/tslint.json +++ b/co-views/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/code/tslint.json b/code/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/code/tslint.json +++ b/code/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/color/tslint.json b/color/tslint.json new file mode 100644 index 0000000000..2221e40e4a --- /dev/null +++ b/color/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } \ No newline at end of file diff --git a/component-emitter/tslint.json b/component-emitter/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/component-emitter/tslint.json +++ b/component-emitter/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/compose-function/tslint.json b/compose-function/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/compose-function/tslint.json +++ b/compose-function/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/compression/tslint.json b/compression/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/compression/tslint.json +++ b/compression/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/configstore/tslint.json b/configstore/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/configstore/tslint.json +++ b/configstore/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/confit/tslint.json b/confit/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/confit/tslint.json +++ b/confit/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/connect-redis/tslint.json b/connect-redis/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/connect-redis/tslint.json +++ b/connect-redis/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/consolidate/tslint.json b/consolidate/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/consolidate/tslint.json +++ b/consolidate/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/cordova-plugin-ble-central/tslint.json b/cordova-plugin-ble-central/tslint.json new file mode 100644 index 0000000000..2221e40e4a --- /dev/null +++ b/cordova-plugin-ble-central/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } \ No newline at end of file diff --git a/cordova-plugin-file-transfer/tslint.json b/cordova-plugin-file-transfer/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/cordova-plugin-file-transfer/tslint.json +++ b/cordova-plugin-file-transfer/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/cordova-plugin-qrscanner/tslint.json b/cordova-plugin-qrscanner/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/cordova-plugin-qrscanner/tslint.json +++ b/cordova-plugin-qrscanner/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/cordova-plugin-websql/tslint.json b/cordova-plugin-websql/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/cordova-plugin-websql/tslint.json +++ b/cordova-plugin-websql/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/cordova.plugins.diagnostic/tslint.json b/cordova.plugins.diagnostic/tslint.json new file mode 100644 index 0000000000..2221e40e4a --- /dev/null +++ b/cordova.plugins.diagnostic/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } \ No newline at end of file diff --git a/cordovarduino/tslint.json b/cordovarduino/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/cordovarduino/tslint.json +++ b/cordovarduino/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/core-decorators/tslint.json b/core-decorators/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/core-decorators/tslint.json +++ b/core-decorators/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/couchbase/tslint.json b/couchbase/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/couchbase/tslint.json +++ b/couchbase/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/createjs-lib/tslint.json b/createjs-lib/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/createjs-lib/tslint.json +++ b/createjs-lib/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/credit-card-type/tslint.json b/credit-card-type/tslint.json new file mode 100644 index 0000000000..2221e40e4a --- /dev/null +++ b/credit-card-type/tslint.json @@ -0,0 +1 @@ +{ "extends": "../tslint.json" } \ No newline at end of file diff --git a/cropperjs/tslint.json b/cropperjs/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/cropperjs/tslint.json +++ b/cropperjs/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/crossroads/tslint.json b/crossroads/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/crossroads/tslint.json +++ b/crossroads/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/cson/tslint.json b/cson/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/cson/tslint.json +++ b/cson/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/css-modules-require-hook/tslint.json b/css-modules-require-hook/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/css-modules-require-hook/tslint.json +++ b/css-modules-require-hook/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/cucumber/tslint.json b/cucumber/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/cucumber/tslint.json +++ b/cucumber/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file diff --git a/custom-error-generator/tslint.json b/custom-error-generator/tslint.json index 2221e40e4a..0f47deabb4 100644 --- a/custom-error-generator/tslint.json +++ b/custom-error-generator/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ + "extends": "../tslint.json", + "rules": { + "forbidden-types": false + } +} \ No newline at end of file