diff --git a/types/alt/tslint.json b/types/alt/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/alt/tslint.json +++ b/types/alt/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/angular-bootstrap-lightbox/tslint.json b/types/angular-bootstrap-lightbox/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/angular-bootstrap-lightbox/tslint.json +++ b/types/angular-bootstrap-lightbox/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/angular-meteor/tslint.json b/types/angular-meteor/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/angular-meteor/tslint.json +++ b/types/angular-meteor/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/angular-wizard/tslint.json b/types/angular-wizard/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/angular-wizard/tslint.json +++ b/types/angular-wizard/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/asynciterator/tslint.json b/types/asynciterator/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/asynciterator/tslint.json +++ b/types/asynciterator/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/backbone.layoutmanager/tslint.json b/types/backbone.layoutmanager/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/backbone.layoutmanager/tslint.json +++ b/types/backbone.layoutmanager/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/backbone/tslint.json b/types/backbone/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/backbone/tslint.json +++ b/types/backbone/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/bookshelf/tslint.json b/types/bookshelf/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/bookshelf/tslint.json +++ b/types/bookshelf/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/boom/tslint.json b/types/boom/tslint.json index f93cf8562a..1c36270d47 100644 --- a/types/boom/tslint.json +++ b/types/boom/tslint.json @@ -1,3 +1,6 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } } diff --git a/types/chai-jest-snapshot/tslint.json b/types/chai-jest-snapshot/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/chai-jest-snapshot/tslint.json +++ b/types/chai-jest-snapshot/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/chrome/tslint.json b/types/chrome/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/chrome/tslint.json +++ b/types/chrome/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/copy-text-to-clipboard/tslint.json b/types/copy-text-to-clipboard/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/copy-text-to-clipboard/tslint.json +++ b/types/copy-text-to-clipboard/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/cordova/tslint.json b/types/cordova/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/cordova/tslint.json +++ b/types/cordova/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/countdown/tslint.json b/types/countdown/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/countdown/tslint.json +++ b/types/countdown/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/cropperjs/tslint.json b/types/cropperjs/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/cropperjs/tslint.json +++ b/types/cropperjs/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/d3-selection/tslint.json b/types/d3-selection/tslint.json index 26ee29cf50..c89636b4b7 100644 --- a/types/d3-selection/tslint.json +++ b/types/d3-selection/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODO + "no-angle-bracket-type-assertion": false, "no-this-assignment": false, "unified-signatures": false, "no-unnecessary-generics": false diff --git a/types/d3-zoom/tslint.json b/types/d3-zoom/tslint.json index 26ee29cf50..c89636b4b7 100644 --- a/types/d3-zoom/tslint.json +++ b/types/d3-zoom/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODO + "no-angle-bracket-type-assertion": false, "no-this-assignment": false, "unified-signatures": false, "no-unnecessary-generics": false diff --git a/types/d3/v3/tslint.json b/types/d3/v3/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/d3/v3/tslint.json +++ b/types/d3/v3/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/depd/tslint.json b/types/depd/tslint.json index 9e23990c45..d4081f4bdf 100644 --- a/types/depd/tslint.json +++ b/types/depd/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODO + "no-angle-bracket-type-assertion": false, "no-object-literal-type-assertion": false } } diff --git a/types/devexpress-web/tslint.json b/types/devexpress-web/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/devexpress-web/tslint.json +++ b/types/devexpress-web/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/devexpress-web/v161/tslint.json b/types/devexpress-web/v161/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/devexpress-web/v161/tslint.json +++ b/types/devexpress-web/v161/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/devexpress-web/v162/tslint.json b/types/devexpress-web/v162/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/devexpress-web/v162/tslint.json +++ b/types/devexpress-web/v162/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/devexpress-web/v171/tslint.json b/types/devexpress-web/v171/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/devexpress-web/v171/tslint.json +++ b/types/devexpress-web/v171/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/easeljs/tslint.json b/types/easeljs/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/easeljs/tslint.json +++ b/types/easeljs/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/fabric/tslint.json b/types/fabric/tslint.json index 0074ea2879..8f33385cce 100644 --- a/types/fabric/tslint.json +++ b/types/fabric/tslint.json @@ -6,6 +6,7 @@ "ban-types": false, "interface-name": false, "jsdoc-format": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-consecutive-blank-lines": false, "no-empty-interface": false, diff --git a/types/firebird/tslint.json b/types/firebird/tslint.json index b9ced8ae6f..95e32281d7 100644 --- a/types/firebird/tslint.json +++ b/types/firebird/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODO "ban-types": false, + "no-angle-bracket-type-assertion": false, "no-boolean-literal-compare": false, "no-declare-current-package": false, "no-single-declare-module": false, diff --git a/types/gridstack/gridstack-tests.ts b/types/gridstack/gridstack-tests.ts index 2cf6079b53..8bce2b6a69 100644 --- a/types/gridstack/gridstack-tests.ts +++ b/types/gridstack/gridstack-tests.ts @@ -7,7 +7,7 @@ // Definitions by: Pascal Senn , Ricky Blankenaufulland // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -var options = { +var options: IGridstackOptions = { float: true }; var element: JQuery = $(document).gridstack(options); diff --git a/types/gulp-sequence/tslint.json b/types/gulp-sequence/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/gulp-sequence/tslint.json +++ b/types/gulp-sequence/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/hapi/test/request/methods.ts b/types/hapi/test/request/methods.ts index cfe7db2383..22b58aac7f 100644 --- a/types/hapi/test/request/methods.ts +++ b/types/hapi/test/request/methods.ts @@ -1,4 +1,4 @@ import { Request } from 'hapi'; -const req: Request = {}; +declare const req: Request; const act: boolean = req.active(); diff --git a/types/hapi/tslint.json b/types/hapi/tslint.json index f93cf8562a..1c36270d47 100644 --- a/types/hapi/tslint.json +++ b/types/hapi/tslint.json @@ -1,3 +1,6 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } } diff --git a/types/hapi/v16/test/request/get-log.ts b/types/hapi/v16/test/request/get-log.ts index 53568ba734..996866a279 100644 --- a/types/hapi/v16/test/request/get-log.ts +++ b/types/hapi/v16/test/request/get-log.ts @@ -3,7 +3,7 @@ import * as Hapi from '../../'; -var request: Hapi.Request = {}; +declare const request: Hapi.Request; request.getLog(); request.getLog('error'); diff --git a/types/history.js/tslint.json b/types/history.js/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/history.js/tslint.json +++ b/types/history.js/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/hls.js/tslint.json b/types/hls.js/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/hls.js/tslint.json +++ b/types/hls.js/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/java-applet/tslint.json b/types/java-applet/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/java-applet/tslint.json +++ b/types/java-applet/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/jquery.cookie/tslint.json b/types/jquery.cookie/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/jquery.cookie/tslint.json +++ b/types/jquery.cookie/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/jquery.fileupload/tslint.json b/types/jquery.fileupload/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/jquery.fileupload/tslint.json +++ b/types/jquery.fileupload/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/jquery/v1/jquery-tests.ts b/types/jquery/v1/jquery-tests.ts index d00c075125..bb13b8c215 100644 --- a/types/jquery/v1/jquery-tests.ts +++ b/types/jquery/v1/jquery-tests.ts @@ -2715,7 +2715,7 @@ function test_fn_extend() { } function test_jquery() { - var a = { what: "A regular JS object" }, + var a: any = { what: "A regular JS object" }, b = $('body'); if (a.jquery) { alert(' a is a jQuery object! '); diff --git a/types/jquery/v2/jquery-tests.ts b/types/jquery/v2/jquery-tests.ts index fa651a196f..01a06c62a8 100644 --- a/types/jquery/v2/jquery-tests.ts +++ b/types/jquery/v2/jquery-tests.ts @@ -2715,7 +2715,7 @@ function test_fn_extend() { } function test_jquery() { - var a = { what: "A regular JS object" }, + var a: any = { what: "A regular JS object" }, b = $('body'); if (a.jquery) { alert(' a is a jQuery object! '); diff --git a/types/jqueryui/tslint.json b/types/jqueryui/tslint.json index 22ecc7ce6f..ca9116c788 100644 --- a/types/jqueryui/tslint.json +++ b/types/jqueryui/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/js-beautify/js-beautify-tests.ts b/types/js-beautify/js-beautify-tests.ts index f421052503..34cd9d8f13 100644 --- a/types/js-beautify/js-beautify-tests.ts +++ b/types/js-beautify/js-beautify-tests.ts @@ -4,9 +4,9 @@ bCss = js_beautify.css_beautify("body{display:none;}"); let bHtml = js_beautify.html("
"); bHtml = js_beautify.html_beautify("
"); -let optHtml = {}; -let optCss = {}; -let optjs = {}; +let optHtml: HTMLBeautifyOptions = {}; +let optCss: CSSBeautifyOptions = {}; +let optjs: JsBeautifyOptions = {}; var simple: string = js_beautify("console.log('Hello world!');"); var full: string = js_beautify( diff --git a/types/js-search/tslint.json b/types/js-search/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/js-search/tslint.json +++ b/types/js-search/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/jsen/jsen-tests.ts b/types/jsen/jsen-tests.ts index 16cded3688..20264b8818 100644 --- a/types/jsen/jsen-tests.ts +++ b/types/jsen/jsen-tests.ts @@ -2238,7 +2238,7 @@ const doesNotThrow = (func: Function) => { { let schema = { format: 'custom' }, callCount = 0, - options = { + options = { formats: { custom: () => { callCount++; @@ -2275,7 +2275,7 @@ const doesNotThrow = (func: Function) => { maximum: 10 }, callCount = 0, - options = { + options = { formats: { custom: () => { callCount++; @@ -2311,7 +2311,7 @@ const doesNotThrow = (func: Function) => { }, format: 'passwordsMatch' }, - options = { + options = { formats: { passwordsMatch: (obj: any) => { callCount++; diff --git a/types/jwt-express/tslint.json b/types/jwt-express/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/jwt-express/tslint.json +++ b/types/jwt-express/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/knockout/tslint.json b/types/knockout/tslint.json index ece4c342d1..9d9f6dd3b9 100644 --- a/types/knockout/tslint.json +++ b/types/knockout/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/later/tslint.json b/types/later/tslint.json index 9e23990c45..d4081f4bdf 100644 --- a/types/later/tslint.json +++ b/types/later/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODO + "no-angle-bracket-type-assertion": false, "no-object-literal-type-assertion": false } } diff --git a/types/libpq/tslint.json b/types/libpq/tslint.json index 385c02a624..34dace29a2 100644 --- a/types/libpq/tslint.json +++ b/types/libpq/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "ban-types": false, + "no-angle-bracket-type-assertion": false, "no-void-expression": false } } diff --git a/types/mongoose/tslint.json b/types/mongoose/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/mongoose/tslint.json +++ b/types/mongoose/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/mongoose/v3/tslint.json b/types/mongoose/v3/tslint.json index a41bf5d19a..7d5b2a06c0 100644 --- a/types/mongoose/v3/tslint.json +++ b/types/mongoose/v3/tslint.json @@ -18,6 +18,7 @@ "member-access": false, "new-parens": false, "no-any-union": false, + "no-angle-bracket-type-assertion": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, "no-consecutive-blank-lines": false, diff --git a/types/mongoose/v4/tslint.json b/types/mongoose/v4/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/mongoose/v4/tslint.json +++ b/types/mongoose/v4/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/ngprogress/ngprogress-tests.ts b/types/ngprogress/ngprogress-tests.ts index e250e9cb0e..f27bf8bf17 100644 --- a/types/ngprogress/ngprogress-tests.ts +++ b/types/ngprogress/ngprogress-tests.ts @@ -1,7 +1,7 @@ -var ngProgress: NgProgress.INgProgress = {}; +declare const ngProgress: NgProgress.INgProgress; ngProgress.start(); ngProgress.height('10px'); diff --git a/types/novnc-core/tslint.json b/types/novnc-core/tslint.json index 3224b40b8b..22e051f9bf 100644 --- a/types/novnc-core/tslint.json +++ b/types/novnc-core/tslint.json @@ -1,6 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { + "no-angle-bracket-type-assertion": false, "no-const-enum": false } } diff --git a/types/obelisk.js/tslint.json b/types/obelisk.js/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/obelisk.js/tslint.json +++ b/types/obelisk.js/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/ol/ol-tests.ts b/types/ol/ol-tests.ts index fbfed7e90f..ca099420cd 100644 --- a/types/ol/ol-tests.ts +++ b/types/ol/ol-tests.ts @@ -304,10 +304,10 @@ import View from 'ol/view'; // Map const map: ol.Map = new Map( {}); -const mapView: View = {}; -const layerBase: LayerBase = {}; -const control: ControlControl = {}; -const interaction: InteractionInteraction = {}; +declare const mapView: View; +declare const layerBase: LayerBase; +declare const control: ControlControl; +declare const interaction: InteractionInteraction; map.setView(mapView); map.addLayer(layerBase); map.addControl(control); @@ -315,9 +315,9 @@ map.addInteraction(interaction); // View let view: View; -const coordinate: ol.Coordinate = {}; -const size: ol.Size = {}; -const position: ol.Pixel = {}; +declare const coordinate: ol.Coordinate; +declare const size: ol.Size; +declare const position: ol.Pixel; view = map.getView(); view.getProjection(); view.animate( {}); diff --git a/types/openjscad/tslint.json b/types/openjscad/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/openjscad/tslint.json +++ b/types/openjscad/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/passport-local-mongoose/tslint.json b/types/passport-local-mongoose/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/passport-local-mongoose/tslint.json +++ b/types/passport-local-mongoose/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/pdfjs-dist/tslint.json b/types/pdfjs-dist/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/pdfjs-dist/tslint.json +++ b/types/pdfjs-dist/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/phantom/tslint.json b/types/phantom/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/phantom/tslint.json +++ b/types/phantom/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/phonegap/tslint.json b/types/phonegap/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/phonegap/tslint.json +++ b/types/phonegap/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/physijs/tslint.json b/types/physijs/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/physijs/tslint.json +++ b/types/physijs/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/pikaday-time/tslint.json b/types/pikaday-time/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/pikaday-time/tslint.json +++ b/types/pikaday-time/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/pikaday/tslint.json b/types/pikaday/tslint.json index 495d29983d..1c36270d47 100644 --- a/types/pikaday/tslint.json +++ b/types/pikaday/tslint.json @@ -1,5 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { + "no-angle-bracket-type-assertion": false } } diff --git a/types/playerframework/tslint.json b/types/playerframework/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/playerframework/tslint.json +++ b/types/playerframework/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/project-oxford/project-oxford-tests.ts b/types/project-oxford/project-oxford-tests.ts index b4a76a78c4..d4c59de109 100644 --- a/types/project-oxford/project-oxford-tests.ts +++ b/types/project-oxford/project-oxford-tests.ts @@ -85,7 +85,7 @@ describe('Project Oxford Face API Test', function () { describe('#similar()', function () { it('detects similar faces', function (done) { - var detects = []; + var detects = []; this.timeout(10000); @@ -157,7 +157,7 @@ describe('Project Oxford Face API Test', function () { // delete the group then. So we clean up before we run tests - and to wait // for cleanup to finish, we're just using done(). client.face.personGroup.list().then(function (response) { - var promises = []; + var promises: _Promise[] = []; response.forEach(function (personGroup) { if (personGroup.name.indexOf('po-node-test-group') > -1) { diff --git a/types/qunit/v1/tslint.json b/types/qunit/v1/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/qunit/v1/tslint.json +++ b/types/qunit/v1/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/rdf-data-model/tslint.json b/types/rdf-data-model/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/rdf-data-model/tslint.json +++ b/types/rdf-data-model/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/rdf-js/tslint.json b/types/rdf-js/tslint.json index 724f3870ca..4671311f51 100644 --- a/types/rdf-js/tslint.json +++ b/types/rdf-js/tslint.json @@ -1,5 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { + "no-angle-bracket-type-assertion": false } } diff --git a/types/redlock/tslint.json b/types/redlock/tslint.json index ed10b7ea24..7fa972fc17 100644 --- a/types/redlock/tslint.json +++ b/types/redlock/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODO + "no-angle-bracket-type-assertion": false, "no-object-literal-type-assertion": false } } diff --git a/types/redlock/v2/tslint.json b/types/redlock/v2/tslint.json index c15bf02c83..e59d1b217d 100644 --- a/types/redlock/v2/tslint.json +++ b/types/redlock/v2/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODOs + "no-angle-bracket-type-assertion": false, "no-duplicate-imports": false, "no-object-literal-type-assertion": false } diff --git a/types/rx-lite-async/tslint.json b/types/rx-lite-async/tslint.json index e168f9e744..82f58fd192 100644 --- a/types/rx-lite-async/tslint.json +++ b/types/rx-lite-async/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "max-line-length": false, + "no-angle-bracket-type-assertion": false, "no-declare-current-package": false, "no-object-literal-type-assertion": false, "no-single-declare-module": false diff --git a/types/safari-extension/tslint.json b/types/safari-extension/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/safari-extension/tslint.json +++ b/types/safari-extension/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/simple-mock/simple-mock-tests.ts b/types/simple-mock/simple-mock-tests.ts index a441dbdc43..aa9da1e0e3 100644 --- a/types/simple-mock/simple-mock-tests.ts +++ b/types/simple-mock/simple-mock-tests.ts @@ -776,12 +776,12 @@ describe('Simple', function() { Simple.mock(Simple, 'Promise', { when: function (value: T) { - let promise: MockPromise = Object.create(mockPromise) + let promise: MockPromise = Object.create(mockPromise) promise.resolveValue = value return promise }, reject: function (value: T) { - let promise: MockPromise = Object.create(mockPromise) + let promise: MockPromise = Object.create(mockPromise) promise.rejectValue = value return promise } diff --git a/types/socketio-jwt-auth/socketio-jwt-auth-tests.ts b/types/socketio-jwt-auth/socketio-jwt-auth-tests.ts index b88020e85f..656984b42a 100644 --- a/types/socketio-jwt-auth/socketio-jwt-auth-tests.ts +++ b/types/socketio-jwt-auth/socketio-jwt-auth-tests.ts @@ -2,9 +2,9 @@ import SocketIo = require('socket.io'); import jwtAuth = require('socketio-jwt-auth'); const io = SocketIo(); -const User: { +declare const User: { findOne: (options: { id: number }, callback: (err: Error, user: any) => void) => void -} = {}; +}; // using middleware io.use(jwtAuth.authenticate({ diff --git a/types/stripe-v3/tslint.json b/types/stripe-v3/tslint.json index a2b9c40f43..6fb3f2df06 100644 --- a/types/stripe-v3/tslint.json +++ b/types/stripe-v3/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "dt-header": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false } } diff --git a/types/stripe/tslint.json b/types/stripe/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/stripe/tslint.json +++ b/types/stripe/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/swipeview/tslint.json b/types/swipeview/tslint.json index a41bf5d19a..7d5b2a06c0 100644 --- a/types/swipeview/tslint.json +++ b/types/swipeview/tslint.json @@ -18,6 +18,7 @@ "member-access": false, "new-parens": false, "no-any-union": false, + "no-angle-bracket-type-assertion": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, "no-consecutive-blank-lines": false, diff --git a/types/switchery/tslint.json b/types/switchery/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/switchery/tslint.json +++ b/types/switchery/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/valerie/tslint.json b/types/valerie/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/valerie/tslint.json +++ b/types/valerie/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/vast-client/tslint.json b/types/vast-client/tslint.json index f3aabf4668..6b8896fa25 100644 --- a/types/vast-client/tslint.json +++ b/types/vast-client/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODO + "no-angle-bracket-type-assertion": false, "no-object-literal-type-assertion": false } } diff --git a/types/viewerjs/tslint.json b/types/viewerjs/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/viewerjs/tslint.json +++ b/types/viewerjs/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/viewporter/tslint.json b/types/viewporter/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/viewporter/tslint.json +++ b/types/viewporter/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/vis/tslint.json b/types/vis/tslint.json index b1439230db..caeccdb36a 100644 --- a/types/vis/tslint.json +++ b/types/vis/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODO + "no-angle-bracket-type-assertion": false, "no-any-union": false } } diff --git a/types/w3c-image-capture/tslint.json b/types/w3c-image-capture/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/w3c-image-capture/tslint.json +++ b/types/w3c-image-capture/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/webappsec-credential-management/tslint.json b/types/webappsec-credential-management/tslint.json index 3db14f85ea..1c36270d47 100644 --- a/types/webappsec-credential-management/tslint.json +++ b/types/webappsec-credential-management/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-angle-bracket-type-assertion": false + } +} diff --git a/types/webappsec-credential-management/webappsec-credential-management-tests.ts b/types/webappsec-credential-management/webappsec-credential-management-tests.ts index 9d20ed37dc..2afa9f8785 100644 --- a/types/webappsec-credential-management/webappsec-credential-management-tests.ts +++ b/types/webappsec-credential-management/webappsec-credential-management-tests.ts @@ -214,7 +214,7 @@ function signOutDeprecated() { } navigator.credentials.requireUserMediation().then(() => { - document.location!.assign('/'); + document.location.assign('/'); }); } @@ -224,7 +224,7 @@ function signOut() { } navigator.credentials.preventSilentAccess().then(() => { - document.location!.assign('/'); + document.location.assign('/'); }); } diff --git a/types/webcl/tslint.json b/types/webcl/tslint.json index 067a495dc9..61296cdc77 100644 --- a/types/webcl/tslint.json +++ b/types/webcl/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false, diff --git a/types/ydn-db/tslint.json b/types/ydn-db/tslint.json index a41bf5d19a..d67ffb3a73 100644 --- a/types/ydn-db/tslint.json +++ b/types/ydn-db/tslint.json @@ -17,6 +17,7 @@ "max-line-length": false, "member-access": false, "new-parens": false, + "no-angle-bracket-type-assertion": false, "no-any-union": false, "no-boolean-literal-compare": false, "no-conditional-assignment": false,