diff --git a/types/ably/index.d.ts b/types/ably/index.d.ts index 7bfc2338b6..3a150257ba 100644 --- a/types/ably/index.d.ts +++ b/types/ably/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Ably Realtime and Rest client library 0.9 // Project: https://www.ably.io/ -// Definitions by: Ably +// Definitions by: Ably // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export namespace ablyLib { @@ -287,7 +287,7 @@ export namespace ablyLib { } // Common Listeners - type paginatedResultCallback = (error: ErrorInfo, results: PaginatedResult ) => void; + type paginatedResultCallback = (error: ErrorInfo, results: PaginatedResult) => void; type standardCallback = (error: ErrorInfo, results: any) => void; type messageCallback = (message: T) => void; type errorCallback = (error: ErrorInfo) => void; @@ -410,7 +410,7 @@ export namespace ablyLib { state: ConnectionState; close: () => void; connect: () => void; - ping: (callback?: (error: ErrorInfo, responseTime: number ) => void ) => void; + ping: (callback?: (error: ErrorInfo, responseTime: number) => void) => void; } class Stats { diff --git a/types/accounting/index.d.ts b/types/accounting/index.d.ts index 9a990a6519..8a9feca611 100644 --- a/types/accounting/index.d.ts +++ b/types/accounting/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for accounting.js 0.4 // Project: http://openexchangerates.github.io/accounting.js/ -// Definitions by: Sergey Gerasimov -// Christopher Eck +// Definitions by: Sergey Gerasimov +// Christopher Eck // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace accounting { diff --git a/types/adone/tslint.json b/types/adone/tslint.json index 0a3d7850f9..f0ae61d2bf 100644 --- a/types/adone/tslint.json +++ b/types/adone/tslint.json @@ -1,9 +1,14 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "align": false, "no-namespace": false, "strict-export-declare-modifiers": false, + "no-boolean-literal-compare": false, + "no-mergeable-namespace": false, "no-single-declare-module": false, + "no-unnecessary-qualifier": false, "unified-signatures": false, "space-before-function-paren": false } diff --git a/types/aggregate-error/aggregate-error-tests.ts b/types/aggregate-error/aggregate-error-tests.ts index 4d434ff746..69e544f9ee 100644 --- a/types/aggregate-error/aggregate-error-tests.ts +++ b/types/aggregate-error/aggregate-error-tests.ts @@ -3,7 +3,7 @@ import AggregateError = require('aggregate-error'); const err = new AggregateError([new Error('foo'), 'bar']); for (const el of Array.from(err)) { - let err: Error = el; + const err: Error = el; } throw err; diff --git a/types/alexa-sdk/index.d.ts b/types/alexa-sdk/index.d.ts index d5892f6ec7..983c2fa063 100644 --- a/types/alexa-sdk/index.d.ts +++ b/types/alexa-sdk/index.d.ts @@ -7,7 +7,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 -export function handler(event: RequestBody, context: Context, callback?: (err: any, response: any) => void ): AlexaObject; +export function handler(event: RequestBody, context: Context, callback?: (err: any, response: any) => void): AlexaObject; export function CreateStateHandler(state: string, obj: any): any; export let StateString: string; diff --git a/types/amazon-product-api/index.d.ts b/types/amazon-product-api/index.d.ts index 6cb7389c73..797adf45f4 100644 --- a/types/amazon-product-api/index.d.ts +++ b/types/amazon-product-api/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for amazon-product-api // Project: https://github.com/t3chnoboy/amazon-product-api -// Definitions by: Matti Lehtinen +// Definitions by: Matti Lehtinen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/amplify-deferred/index.d.ts b/types/amplify-deferred/index.d.ts index fd738e9cbe..508cb5bb11 100644 --- a/types/amplify-deferred/index.d.ts +++ b/types/amplify-deferred/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for AmplifyJs (using JQuery Deferred) 1.1 // Project: http://amplifyjs.com/ -// Definitions by: Jonas Eriksson , Laurentiu Stamate +// Definitions by: Jonas Eriksson , Laurentiu Stamate // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/amplify/amplify-tests.ts b/types/amplify/amplify-tests.ts index 1277e5e2a3..d26ff023bd 100644 --- a/types/amplify/amplify-tests.ts +++ b/types/amplify/amplify-tests.ts @@ -151,7 +151,7 @@ amplify.request.define("twitter-search", "ajax", { } }); -amplify.request("twitter-search", { term: "amplifyjs" } ); +amplify.request("twitter-search", { term: "amplifyjs" }); // Similarly, we can create a request that searches for mentions, by accepting a username: diff --git a/types/amplify/index.d.ts b/types/amplify/index.d.ts index 2c3e2e1e5a..b88a2d5e80 100644 --- a/types/amplify/index.d.ts +++ b/types/amplify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for AmplifyJs 1.1 // Project: http://amplifyjs.com/ -// Definitions by: Jonas Eriksson +// Definitions by: Jonas Eriksson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/amqp-rpc/index.d.ts b/types/amqp-rpc/index.d.ts index 337f8d8a16..de2e3c25e6 100644 --- a/types/amqp-rpc/index.d.ts +++ b/types/amqp-rpc/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for amqp-rpc v0.0.8 // Project: https://github.com/demchenkoe/node-amqp-rpc/ -// Definitions by: Wonshik Kim +// Definitions by: Wonshik Kim // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/angular-clipboard/index.d.ts b/types/angular-clipboard/index.d.ts index 0f59feaf56..a9a15821b6 100644 --- a/types/angular-clipboard/index.d.ts +++ b/types/angular-clipboard/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for angular-clipboard v1.5 // Project: https://github.com/omichelsen/angular-clipboard -// Definitions by: Bradford Wagner +// Definitions by: Bradford Wagner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/angular-deferred-bootstrap/index.d.ts b/types/angular-deferred-bootstrap/index.d.ts index df489e48ee..2c1a2d141c 100644 --- a/types/angular-deferred-bootstrap/index.d.ts +++ b/types/angular-deferred-bootstrap/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for angular-deferred-bootstrap v0.1.9 // Project: https://github.com/philippd/angular-deferred-bootstrap -// Definitions by: Markus Wagner +// Definitions by: Markus Wagner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/angular-es/index.d.ts b/types/angular-es/index.d.ts index 0972b42da0..a3a57edcfc 100644 --- a/types/angular-es/index.d.ts +++ b/types/angular-es/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for angular-es v0.0.3 // Project: https://github.com/mbutsykin/angular-es -// Definitions by: mbutsykin +// Definitions by: mbutsykin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'angular-es' { diff --git a/types/angular-feature-flags/index.d.ts b/types/angular-feature-flags/index.d.ts index 2335bf0eba..4f75a37185 100644 --- a/types/angular-feature-flags/index.d.ts +++ b/types/angular-feature-flags/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for angular-feature-flags 1.4.0 // Project: https://github.com/mjt01/angular-feature-flags -// Definitions by: Borislav Zhivkov +// Definitions by: Borislav Zhivkov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/angular-file-saver/index.d.ts b/types/angular-file-saver/index.d.ts index cee78df620..9ba224fba1 100644 --- a/types/angular-file-saver/index.d.ts +++ b/types/angular-file-saver/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for angular-file-saver 1.1 // Project: https://github.com/alferov/angular-file-saver -// Definitions by: Donald Nairn +// Definitions by: Donald Nairn // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/angular-gridster/angular-gridster-tests.ts b/types/angular-gridster/angular-gridster-tests.ts index f8c5a93c81..6c88263214 100644 --- a/types/angular-gridster/angular-gridster-tests.ts +++ b/types/angular-gridster/angular-gridster-tests.ts @@ -1,4 +1,3 @@ -import * as ng from "angular"; import * as angular from "angular"; import gridster from "angular-gridster"; diff --git a/types/angular-hotkeys/index.d.ts b/types/angular-hotkeys/index.d.ts index 3db766706a..38ff06a969 100644 --- a/types/angular-hotkeys/index.d.ts +++ b/types/angular-hotkeys/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Jason Zhao , Stefan Steinhart // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -//readme written by David Valentine +//readme written by David Valentine /// diff --git a/types/angular-material/tslint.json b/types/angular-material/tslint.json index 8e8a076d2c..4c42fed648 100644 --- a/types/angular-material/tslint.json +++ b/types/angular-material/tslint.json @@ -1,7 +1,9 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs "interface-name": false, - "max-line-length": false + "max-line-length": false, + "no-void-expression": false } } \ No newline at end of file diff --git a/types/angular-promise-tracker/index.d.ts b/types/angular-promise-tracker/index.d.ts index ec2f7fd498..85a87bad63 100644 --- a/types/angular-promise-tracker/index.d.ts +++ b/types/angular-promise-tracker/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for angular-promise-tracker 2.2.2 // Project: https://github.com/ajoslin/angular-promise-tracker -// Definitions by: Rufus Linke +// Definitions by: Rufus Linke // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/angular-resource/index.d.ts b/types/angular-resource/index.d.ts index 13be56637e..cacab03886 100644 --- a/types/angular-resource/index.d.ts +++ b/types/angular-resource/index.d.ts @@ -184,8 +184,8 @@ declare module 'angular' { /** when creating a resource factory via IModule.factory */ interface IResourceServiceFactoryFunction { - ($resource: resource.IResourceService): IResourceClass; - >($resource: resource.IResourceService): U; + ($resource: IResourceService): IResourceClass; + >($resource: IResourceService): U; } // IResourceServiceProvider used to configure global settings @@ -202,7 +202,7 @@ declare module 'angular' { namespace auto { interface IInjectorService { - get(name: '$resource'): ng.resource.IResourceService; + get(name: '$resource'): resource.IResourceService; } } } diff --git a/types/angular-resource/tslint.json b/types/angular-resource/tslint.json index 7ebd5d5d2d..ff19c22fa3 100644 --- a/types/angular-resource/tslint.json +++ b/types/angular-resource/tslint.json @@ -5,6 +5,7 @@ "interface-name": false, "only-arrow-functions": false, "no-empty-interface": false, + "no-object-literal-type-assertion": false, "ban-types": false, "space-before-function-paren": false, "unified-signatures": false diff --git a/types/angular/tslint.json b/types/angular/tslint.json index 50c4474b7c..77b236700e 100644 --- a/types/angular/tslint.json +++ b/types/angular/tslint.json @@ -14,6 +14,8 @@ "max-line-length": false, "no-empty-interface": false, "no-namespace": false, + "no-unnecessary-qualifier": false, + "no-void-expression": false, "unified-signatures": false, "void-return": false } diff --git a/types/angularlocalstorage/index.d.ts b/types/angularlocalstorage/index.d.ts index 67b84b925e..63a9731dd0 100644 --- a/types/angularlocalstorage/index.d.ts +++ b/types/angularlocalstorage/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for AngularLocalStorage 0.1.7 // Project: https://github.com/agrublev/angularLocalStorage -// Definitions by: Horiuchi_H +// Definitions by: Horiuchi_H // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/annyang/annyang-tests.ts b/types/annyang/annyang-tests.ts index 56dd51f417..b394d20856 100644 --- a/types/annyang/annyang-tests.ts +++ b/types/annyang/annyang-tests.ts @@ -1,7 +1,7 @@ import { Annyang, CommandOption } from 'annyang'; -declare let annyang: Annyang; -declare let console: any; +declare const annyang: Annyang; +declare const console: any; // Tests based on API documentation at https://github.com/TalAter/annyang/blob/master/docs/README.md @@ -11,12 +11,12 @@ function testStartListening() { } function testAddComments() { - let helloFunction = (): string => { + const helloFunction = (): string => { return 'hello'; }; - let commands: CommandOption = {'hello :name': helloFunction, howdy: helloFunction}; - let commands2: CommandOption = {hi: helloFunction}; + const commands: CommandOption = {'hello :name': helloFunction, howdy: helloFunction}; + const commands2: CommandOption = {hi: helloFunction}; annyang.addCommands(commands); // $ExpectType void annyang.addCommands(commands2); // $ExpectType void @@ -26,10 +26,10 @@ function testAddComments() { annyang.removeCommands(['howdy', 'hi']); // $ExpectType void } -let notConnected = () => { console.error('network connection error'); }; +const notConnected = () => { console.error('network connection error'); }; function testAddCallback() { - annyang.addCallback('error', () => console.error('There was an error!') ); // $ExpectType void + annyang.addCallback('error', () => console.error('There was an error!')); // $ExpectType void // $ExpectType void annyang.addCallback('resultMatch', (userSaid, commandText, phrases) => { @@ -42,8 +42,8 @@ function testAddCallback() { } function testRemoveCallback() { - let start = () => { console.log('start'); }; - let end = () => { console.log('end'); }; + const start = () => { console.log('start'); }; + const end = () => { console.log('end'); }; annyang.addCallback('start', start); // $ExpectType void annyang.addCallback('end', end); // $ExpectType void diff --git a/types/applepayjs/tslint.json b/types/applepayjs/tslint.json index 3db14f85ea..65c83fb1e3 100644 --- a/types/applepayjs/tslint.json +++ b/types/applepayjs/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false + } +} diff --git a/types/applicationinsights/index.d.ts b/types/applicationinsights/index.d.ts index 45c89556a6..471089a96f 100644 --- a/types/applicationinsights/index.d.ts +++ b/types/applicationinsights/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Application Insights v0.15.12 // Project: https://github.com/Microsoft/ApplicationInsights-node.js -// Definitions by: Scott Southwood +// Definitions by: Scott Southwood // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface AutoCollectConsole { @@ -341,9 +341,9 @@ interface Client { trackMetric(name: string, value: number, count?:number, min?: number, max?: number, stdDev?: number, properties?: { [key: string]: string; }): void; - + /** - * Log an incoming http request to your server. The request data will be tracked during the response "finish" event if it is successful or the request "error" + * Log an incoming http request to your server. The request data will be tracked during the response "finish" event if it is successful or the request "error" * event if it fails. The request duration is automatically calculated as the timespan between when the trackRequest method was called, and when the response "finish" * or request "error" events were fired. * @param request The http.IncomingMessage object to track @@ -353,7 +353,7 @@ interface Client { trackRequest(request: any /* http.IncomingMessage */, response: any /* http.ServerResponse */, properties?: { [key: string]: string; }): void; - + /** * Log an incoming http request to your server. The request data is tracked synchronously rather than waiting for the response "finish"" or request "error"" events. * Use this if you need your request telemetry to respect custom app insights operation and user context (for example if you set any appInsights.client.context.tags). @@ -365,7 +365,7 @@ interface Client { */ trackRequestSync(request: any /*http.IncomingMessage */, response: any /*http.ServerResponse */, ellapsedMilliseconds?: number, properties?: { [key: string]: string;}, error?: any) : void; - + /** * Log information about a dependency of your app. Typically used to track the time database calls or outgoing http requests take from your server. * @param name The name of the dependency (i.e. "myDatabse") diff --git a/types/archiver/tslint.json b/types/archiver/tslint.json index a62d0d4e68..10e16aef18 100644 --- a/types/archiver/tslint.json +++ b/types/archiver/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "ban-types": false + // TODOs + "ban-types": false, + "dt-header": false } } diff --git a/types/archy/index.d.ts b/types/archy/index.d.ts index 82b101236c..6dedf21db2 100644 --- a/types/archy/index.d.ts +++ b/types/archy/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for archy // Project: https://github.com/substack/node-archy -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/are-we-there-yet/are-we-there-yet-tests.ts b/types/are-we-there-yet/are-we-there-yet-tests.ts index 1750cac0c2..463ca428c4 100644 --- a/types/are-we-there-yet/are-we-there-yet-tests.ts +++ b/types/are-we-there-yet/are-we-there-yet-tests.ts @@ -1,6 +1,6 @@ import { Tracker, TrackerStream, TrackerGroup } from "are-we-there-yet"; -let simple = new Tracker("simple"); +const simple = new Tracker("simple"); simple.addListener("change", (name, completed, tracker) => { console.log(`name: ${name}, completed: ${completed}`); }); @@ -8,13 +8,13 @@ simple.addWork(10); simple.completeWork(1); console.log(simple.completed() < 1); -let group = new TrackerGroup("group"); +const group = new TrackerGroup("group"); group.addUnit(simple); -let subgroup = group.newGroup("subgroup"); +const subgroup = group.newGroup("subgroup"); console.log(group.completed()); -let stream = new TrackerStream("stream", 100, { encoding: "utf8" }); +const stream = new TrackerStream("stream", 100, { encoding: "utf8" }); subgroup.addUnit(stream); stream.addListener("change", (name, completed, tracker) => { diff --git a/types/ascii2mathml/ascii2mathml-tests.ts b/types/ascii2mathml/ascii2mathml-tests.ts index 9cb54443a4..7280900922 100644 --- a/types/ascii2mathml/ascii2mathml-tests.ts +++ b/types/ascii2mathml/ascii2mathml-tests.ts @@ -1,6 +1,6 @@ import * as ascii2mathml from 'ascii2mathml'; -let fn = ascii2mathml({}); // $ExpectType any +const fn = ascii2mathml({}); // $ExpectType any fn(''); // $ExpectType string ascii2mathml('', {}); // $ExpectType string diff --git a/types/askmethat-rating/index.d.ts b/types/askmethat-rating/index.d.ts index 43a59957bd..a183ecdc30 100644 --- a/types/askmethat-rating/index.d.ts +++ b/types/askmethat-rating/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for askmethat-rating 0.3 // Project: https://alexteixeira.github.io/Askmethat-Rating/ -// Definitions by: Alexandre Teixeira +// Definitions by: Alexandre Teixeira // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/async-lock/index.d.ts b/types/async-lock/index.d.ts index 296307300c..4a19590d73 100644 --- a/types/async-lock/index.d.ts +++ b/types/async-lock/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for async-lock // Project: https://github.com/rain1017/async-lock -// Definitions by: Elisée MAURER +// Definitions by: Elisée MAURER // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/async-polling/index.d.ts b/types/async-polling/index.d.ts index 640c863874..78789aeafc 100644 --- a/types/async-polling/index.d.ts +++ b/types/async-polling/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for AsyncPolling // Project: https://github.com/cGuille/async-polling -// Definitions by: Zlatko Andonovski +// Definitions by: Zlatko Andonovski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace AsyncPolling { diff --git a/types/async/index.d.ts b/types/async/index.d.ts index 9b19f47249..139689ea2f 100644 --- a/types/async/index.d.ts +++ b/types/async/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Async 2.0.1 // Project: https://github.com/caolan/async -// Definitions by: Boris Yankov , Arseniy Maximov , Joe Herman , Angus Fenying , Pascal Martin +// Definitions by: Boris Yankov , Arseniy Maximov , Joe Herman , Angus Fenying , Pascal Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Dictionary { [key: string]: T; } diff --git a/types/asyncblock/index.d.ts b/types/asyncblock/index.d.ts index c4f8d3da21..e848f509fb 100644 --- a/types/asyncblock/index.d.ts +++ b/types/asyncblock/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for asyncblock 2.1.23 // Project: https://github.com/scriby/asyncblock -// Definitions by: Hiroki Horiuchi +// Definitions by: Hiroki Horiuchi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/atmosphere/index.d.ts b/types/atmosphere/index.d.ts index e62df1ea64..5e88c2c8fb 100644 --- a/types/atmosphere/index.d.ts +++ b/types/atmosphere/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Atmosphere v2.1.5 // Project: https://github.com/Atmosphere/atmosphere-javascript -// Definitions by: Kai Toedter +// Definitions by: Kai Toedter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Atmosphere { diff --git a/types/atom-keymap/index.d.ts b/types/atom-keymap/index.d.ts index c066867a5b..58d75ec709 100644 --- a/types/atom-keymap/index.d.ts +++ b/types/atom-keymap/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for atom-keymap v5.1.5 // Project: https://github.com/atom/atom-keymap/ -// Definitions by: Vadim Macagon +// Definitions by: Vadim Macagon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/atom/index.d.ts b/types/atom/index.d.ts index 30aa6b881b..718cc2747a 100644 --- a/types/atom/index.d.ts +++ b/types/atom/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Atom // Project: https://atom.io/ -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/auth0-lock/index.d.ts b/types/auth0-lock/index.d.ts index e49c23a308..0a57d988ce 100644 --- a/types/auth0-lock/index.d.ts +++ b/types/auth0-lock/index.d.ts @@ -155,7 +155,7 @@ interface Auth0LockStatic { getProfile(token: string, callback: (error: auth0.Auth0Error, profile: auth0.Auth0UserProfile) => void): void; getUserInfo(token: string, callback: (error: auth0.Auth0Error, profile: auth0.Auth0UserProfile) => void): void; // https://github.com/auth0/lock#resumeauthhash-callback - resumeAuth( hash: string, callback: (error: auth0.Auth0Error, authResult: AuthResult) => void): void; + resumeAuth(hash: string, callback: (error: auth0.Auth0Error, authResult: AuthResult) => void): void; show(options?: Auth0LockShowOptions): void; hide(): void; logout(query: any): void; diff --git a/types/autobahn/index.d.ts b/types/autobahn/index.d.ts index 6741bcccd1..3c576e2dc8 100644 --- a/types/autobahn/index.d.ts +++ b/types/autobahn/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for AutobahnJS v0.9.7 // Project: http://autobahn.ws/js/ -// Definitions by: Elad Zelingher , Andy Hawkins , Wladimir Totino +// Definitions by: Elad Zelingher , Andy Hawkins , Wladimir Totino // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/autobind-decorator/index.d.ts b/types/autobind-decorator/index.d.ts index 51ba89c9bf..d8d74bbfec 100644 --- a/types/autobind-decorator/index.d.ts +++ b/types/autobind-decorator/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for autobind-decorator v1.3.3 // Project: https://github.com/andreypopp/autobind-decorator -// Definitions by: Ivo Stratev +// Definitions by: Ivo Stratev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'autobind-decorator' { diff --git a/types/awesomplete/index.d.ts b/types/awesomplete/index.d.ts index 4612d66210..149b87e9f6 100644 --- a/types/awesomplete/index.d.ts +++ b/types/awesomplete/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Awesomplete 1.1 // Project: https://leaverou.github.io/awesomplete/ -// Definitions by: webbiesdk , Ben Dixon , Trevor Bekolay +// Definitions by: webbiesdk , Ben Dixon , Trevor Bekolay // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class Awesomplete { diff --git a/types/aws-lambda-mock-context/tslint.json b/types/aws-lambda-mock-context/tslint.json index f93cf8562a..bafaae7817 100644 --- a/types/aws-lambda-mock-context/tslint.json +++ b/types/aws-lambda-mock-context/tslint.json @@ -1,3 +1,7 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } } diff --git a/types/azure-mobile-services-client/index.d.ts b/types/azure-mobile-services-client/index.d.ts index 8dbb12d2e4..2109633a69 100644 --- a/types/azure-mobile-services-client/index.d.ts +++ b/types/azure-mobile-services-client/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Microsoft Windows AzureMobile Service 1.0.0 // Project: http://www.windowsazure.com/en-us/develop/mobile/ -// Definitions by: Morosinotto Daniele +// Definitions by: Morosinotto Daniele // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Microsoft.WindowsAzure { diff --git a/types/azure-sb/index.d.ts b/types/azure-sb/index.d.ts index 1c8b087815..bae1af04a9 100644 --- a/types/azure-sb/index.d.ts +++ b/types/azure-sb/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for azure-sb // Project: https://github.com/Azure/azure-sdk-for-node/tree/master/lib/services/serviceBus -// Definitions by: Microsoft Azure +// Definitions by: Microsoft Azure // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Azure.ServiceBus { diff --git a/types/babel-core/babel-core-tests.ts b/types/babel-core/babel-core-tests.ts index dc40e55647..b3839d151f 100644 --- a/types/babel-core/babel-core-tests.ts +++ b/types/babel-core/babel-core-tests.ts @@ -8,7 +8,7 @@ result.map; // Sourcemap result.ast; // AST // Examples from http://babeljs.io/docs/usage/api/ -let options: babel.TransformOptions = { +const options: babel.TransformOptions = { plugins: [ "es2015-arrow-functions", "es2015-block-scoped-functions", diff --git a/types/backbone-associations/index.d.ts b/types/backbone-associations/index.d.ts index b9d110f9fe..d0681c6651 100644 --- a/types/backbone-associations/index.d.ts +++ b/types/backbone-associations/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Backbone-associations 0.6.4 // Project: https://github.com/dhruvaray/backbone-associations/ -// Definitions by: Craig Brett +// Definitions by: Craig Brett // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/backbone-fetch-cache/index.d.ts b/types/backbone-fetch-cache/index.d.ts index c5e8d84426..e5e6ebf751 100644 --- a/types/backbone-fetch-cache/index.d.ts +++ b/types/backbone-fetch-cache/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for backbone-fetch-cache 1.4.0 // Project: https://github.com/madglory/backbone-fetch-cache -// Definitions by: delphinus +// Definitions by: delphinus // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/backbone-relational/index.d.ts b/types/backbone-relational/index.d.ts index b51c46f1d7..a1c8c3eefb 100644 --- a/types/backbone-relational/index.d.ts +++ b/types/backbone-relational/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Backbone-relational 0.8.5 // Project: http://backbonerelational.org/ -// Definitions by: Eirik Hoem +// Definitions by: Eirik Hoem // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/backbone.layoutmanager/index.d.ts b/types/backbone.layoutmanager/index.d.ts index f4eb340e7c..7e35de1192 100644 --- a/types/backbone.layoutmanager/index.d.ts +++ b/types/backbone.layoutmanager/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Backbone.LayoutManager 0.9.5 // Project: http://layoutmanager.org/ -// Definitions by: He Jiang +// Definitions by: He Jiang // Definitions: https://github.com/hejiang2000/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/backbone.localstorage/index.d.ts b/types/backbone.localstorage/index.d.ts index 9fd089cdec..94bb53c65a 100644 --- a/types/backbone.localstorage/index.d.ts +++ b/types/backbone.localstorage/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for backbone.localStorage 1.0.0 // Project: https://github.com/jeromegn/Backbone.localStorage -// Definitions by: Louis Grignon +// Definitions by: Louis Grignon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/backbone.paginator/index.d.ts b/types/backbone.paginator/index.d.ts index fc7c39e995..66b43c0b69 100644 --- a/types/backbone.paginator/index.d.ts +++ b/types/backbone.paginator/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for backbone.paginator 2.0.2 // Project: https://github.com/backbone-paginator/backbone.paginator -// Definitions by: Nyamazing +// Definitions by: Nyamazing // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/backbone.radio/index.d.ts b/types/backbone.radio/index.d.ts index 61c996f6de..12fc6d384f 100644 --- a/types/backbone.radio/index.d.ts +++ b/types/backbone.radio/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Backbone.Radio v0.8.3 // Project: https://github.com/marionettejs/backbone.radio -// Definitions by: Peter Palotas +// Definitions by: Peter Palotas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/backbone/index.d.ts b/types/backbone/index.d.ts index f151b2f42e..48e5b2bea0 100644 --- a/types/backbone/index.d.ts +++ b/types/backbone/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Backbone 1.3.3 // Project: http://backbonejs.org/ -// Definitions by: Boris Yankov , Natan Vivo +// Definitions by: Boris Yankov , Natan Vivo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/backgrid/index.d.ts b/types/backgrid/index.d.ts index fdf7785b59..bd8cad018c 100644 --- a/types/backgrid/index.d.ts +++ b/types/backgrid/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Backgrid 0.2.6 // Project: http://backgridjs.com/ -// Definitions by: Jeremy Lujan +// Definitions by: Jeremy Lujan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/basic-auth/index.d.ts b/types/basic-auth/index.d.ts index 276b5b8af6..3af8f5a699 100644 --- a/types/basic-auth/index.d.ts +++ b/types/basic-auth/index.d.ts @@ -19,7 +19,7 @@ declare namespace auth { /** * Parse basic auth to object. */ - function parse(authorizationHeader: string): auth.BasicAuthResult | undefined; + function parse(authorizationHeader: string): BasicAuthResult | undefined; } export = auth; diff --git a/types/bcryptjs/index.d.ts b/types/bcryptjs/index.d.ts index c081ed33fd..b19413c92d 100644 --- a/types/bcryptjs/index.d.ts +++ b/types/bcryptjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bcryptjs v2.4.0 // Project: https://github.com/dcodeIO/bcrypt.js -// Definitions by: Joshua Filby , Rafael Kraut +// Definitions by: Joshua Filby , Rafael Kraut // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/bem-cn/tslint.json b/types/bem-cn/tslint.json index f93cf8562a..091817f734 100644 --- a/types/bem-cn/tslint.json +++ b/types/bem-cn/tslint.json @@ -1,3 +1,7 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-duplicate-imports": false + } } diff --git a/types/bezier-easing/index.d.ts b/types/bezier-easing/index.d.ts index 2a742daf1e..e714e55535 100644 --- a/types/bezier-easing/index.d.ts +++ b/types/bezier-easing/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bezier-easing // Project: https://github.com/gre/bezier-easing -// Definitions by: brian ridley +// Definitions by: brian ridley // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare interface Easing { diff --git a/types/big.js/index.d.ts b/types/big.js/index.d.ts index e08ee7bc57..92eb845b98 100644 --- a/types/big.js/index.d.ts +++ b/types/big.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for big.js // Project: https://github.com/MikeMcl/big.js/ -// Definitions by: Steve Ognibene +// Definitions by: Steve Ognibene // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/bignumber.js/index.d.ts b/types/bignumber.js/index.d.ts index d627ad136c..ae7ec5b6f7 100644 --- a/types/bignumber.js/index.d.ts +++ b/types/bignumber.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bignumber.js 4.0 // Project: https://github.com/MikeMcl/bignumber.js/ -// Definitions by: Viktor Smirnov +// Definitions by: Viktor Smirnov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/bigscreen/index.d.ts b/types/bigscreen/index.d.ts index 6d240729c5..0807cc61e5 100644 --- a/types/bigscreen/index.d.ts +++ b/types/bigscreen/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for BigScreen 2.0.4 // Project: http://brad.is/coding/BigScreen/ -// Definitions by: Douglas Eichelberger +// Definitions by: Douglas Eichelberger // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export as namespace BigScreen; diff --git a/types/bip21/index.d.ts b/types/bip21/index.d.ts index 06e61a6944..7561551e7a 100644 --- a/types/bip21/index.d.ts +++ b/types/bip21/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bip21 v1.1.2 // Project: https://github.com/bitcoinjs/bip21 -// Definitions by: Stefan Huber +// Definitions by: Stefan Huber // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace bip21 { diff --git a/types/bleno/tslint.json b/types/bleno/tslint.json index 3db14f85ea..26bcea6634 100644 --- a/types/bleno/tslint.json +++ b/types/bleno/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false + } +} diff --git a/types/body-parser/index.d.ts b/types/body-parser/index.d.ts index be10668973..2056c89b22 100644 --- a/types/body-parser/index.d.ts +++ b/types/body-parser/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for body-parser 1.16 // Project: https://github.com/expressjs/body-parser -// Definitions by: Santi Albo , Vilic Vane , Jonathan Häberle , Gevik Babakhani , Tomasz Łaziuk +// Definitions by: Santi Albo , Vilic Vane , Jonathan Häberle , Gevik Babakhani , Tomasz Łaziuk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/bonjour/index.d.ts b/types/bonjour/index.d.ts index 0c2578121e..61b97e4ee8 100644 --- a/types/bonjour/index.d.ts +++ b/types/bonjour/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bonjour 3.5 // Project: https://github.com/watson/bonjour -// Definitions by: Quentin Lampin , Nicolas Voigt +// Definitions by: Quentin Lampin , Nicolas Voigt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/bootbox/index.d.ts b/types/bootbox/index.d.ts index 7007d80feb..ba5cc8c23b 100644 --- a/types/bootbox/index.d.ts +++ b/types/bootbox/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Bootbox 4.4.0 // Project: https://github.com/makeusabrew/bootbox -// Definitions by: Vincent Bortone , Kon Pik , Anup Kattel , Dominik Schroeter , Troy McKinnon , Stanny Nuytkens +// Definitions by: Vincent Bortone , Kon Pik , Anup Kattel , Dominik Schroeter , Troy McKinnon , Stanny Nuytkens // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/bootpag/index.d.ts b/types/bootpag/index.d.ts index 20fee59ff2..af47cc3219 100644 --- a/types/bootpag/index.d.ts +++ b/types/bootpag/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery-Bootpag 1.0.7 // Project: http://botmonster.com/jquery-bootpag/ -// Definitions by: MAF.DAP / Romain Deneau +// Definitions by: MAF.DAP / Romain Deneau // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/bootstrap-datepicker/index.d.ts b/types/bootstrap-datepicker/index.d.ts index 34a40d60fa..02eda0fba8 100644 --- a/types/bootstrap-datepicker/index.d.ts +++ b/types/bootstrap-datepicker/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bootstrap-datepicker // Project: https://github.com/eternicode/bootstrap-datepicker -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/bootstrap-notify/index.d.ts b/types/bootstrap-notify/index.d.ts index 441bb33c39..0517b62cf8 100644 --- a/types/bootstrap-notify/index.d.ts +++ b/types/bootstrap-notify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bootstrap-notify v3.1.3 // Project: http://bootstrap-notify.remabledesigns.com/ -// Definitions by: Blake Niemyjski , Robert McIntosh , Robert Voica +// Definitions by: Blake Niemyjski , Robert McIntosh , Robert Voica // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/bootstrap-table/index.d.ts b/types/bootstrap-table/index.d.ts index 166289f14f..8f29583e56 100644 --- a/types/bootstrap-table/index.d.ts +++ b/types/bootstrap-table/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Bootstrap Table v1.11.0 // Project: http://bootstrap-table.wenzhixin.net.cn/ -// Definitions by: Talat Baig +// Definitions by: Talat Baig // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/bootstrap-treeview/bootstrap-treeview-tests.ts b/types/bootstrap-treeview/bootstrap-treeview-tests.ts index 82f82cd6f1..421df3b9dc 100644 --- a/types/bootstrap-treeview/bootstrap-treeview-tests.ts +++ b/types/bootstrap-treeview/bootstrap-treeview-tests.ts @@ -57,7 +57,7 @@ $('#tree').treeview({ // Treeview functions. -let nodeId: number = 5; +let nodeId = 5; let node: BootstrapTreeViewNodeData = data[0]; diff --git a/types/bootstrap-validator/index.d.ts b/types/bootstrap-validator/index.d.ts index e9f2073d70..9a0c700fc4 100644 --- a/types/bootstrap-validator/index.d.ts +++ b/types/bootstrap-validator/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bootstrap-validator 0.11 // Project: https://github.com/1000hz/bootstrap-validator -// Definitions by: Brady Liles +// Definitions by: Brady Liles // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/bootstrap.paginator/index.d.ts b/types/bootstrap.paginator/index.d.ts index b79e7bca0a..55ee536378 100644 --- a/types/bootstrap.paginator/index.d.ts +++ b/types/bootstrap.paginator/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bootstrap.paginator // Project: https://github.com/lyonlai/bootstrap-paginator -// Definitions by: derikwhittaker +// Definitions by: derikwhittaker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/bootstrap.timepicker/index.d.ts b/types/bootstrap.timepicker/index.d.ts index f0cc7f472b..384d550e57 100644 --- a/types/bootstrap.timepicker/index.d.ts +++ b/types/bootstrap.timepicker/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bootstrap.timepicker // Project: https://github.com/jdewit/bootstrap-timepicker -// Definitions by: derikwhittaker +// Definitions by: derikwhittaker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/bootstrap/index.d.ts b/types/bootstrap/index.d.ts index cd15ad62ee..9fa10bcdbb 100644 --- a/types/bootstrap/index.d.ts +++ b/types/bootstrap/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Bootstrap 3.3.5 // Project: http://twitter.github.com/bootstrap/ -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/box2d/index.d.ts b/types/box2d/index.d.ts index 181c5537d2..77a132592e 100644 --- a/types/box2d/index.d.ts +++ b/types/box2d/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bootstrap.timepicker // Project: http://code.google.com/p/box2dweb/ -// Definitions by: jbaldwin +// Definitions by: jbaldwin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** diff --git a/types/breeze/index.d.ts b/types/breeze/index.d.ts index bfd3479d3c..3094f3452d 100644 --- a/types/breeze/index.d.ts +++ b/types/breeze/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Breeze 1.6.3 // Project: http://www.breezejs.com/ -// Definitions by: Boris Yankov , IdeaBlade +// Definitions by: Boris Yankov , IdeaBlade // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Updated Jan 14 2011 - Jay Traband ( www.ideablade.com). diff --git a/types/browser-resolve/index.d.ts b/types/browser-resolve/index.d.ts index 30f3875541..22b45dd8d2 100644 --- a/types/browser-resolve/index.d.ts +++ b/types/browser-resolve/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for browser-resolve // Project: https://github.com/defunctzombie/node-browser-resolve -// Definitions by: Mario Nebl +// Definitions by: Mario Nebl // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/browserify/index.d.ts b/types/browserify/index.d.ts index 8b51a34dd5..e419fa2ceb 100644 --- a/types/browserify/index.d.ts +++ b/types/browserify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Browserify 12.0 // Project: http://browserify.org/ -// Definitions by: Andrew Gaspar , John Vilk , Leonard Thieu +// Definitions by: Andrew Gaspar , John Vilk , Leonard Thieu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/bson/index.d.ts b/types/bson/index.d.ts index 67df319bf6..2b6a636e89 100644 --- a/types/bson/index.d.ts +++ b/types/bson/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bson 1.0.4 // Project: https://github.com/mongodb/js-bson -// Definitions by: Hiroki Horiuchi +// Definitions by: Hiroki Horiuchi // Federico Caselli // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/buffers/index.d.ts b/types/buffers/index.d.ts index ec8be5a493..3f83813146 100644 --- a/types/buffers/index.d.ts +++ b/types/buffers/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for buffers 0.1.1 // Project: https://github.com/substack/node-buffers -// Definitions by: Robert Hencke +// Definitions by: Robert Hencke // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/bunyan-prettystream/index.d.ts b/types/bunyan-prettystream/index.d.ts index c82d444f76..f4c5efb948 100644 --- a/types/bunyan-prettystream/index.d.ts +++ b/types/bunyan-prettystream/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bunyan-prettystream 0.1.3 // Project: https://www.npmjs.com/package/bunyan-prettystream -// Definitions by: Jason Swearingen , Vadim Macagon +// Definitions by: Jason Swearingen , Vadim Macagon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/bunyan/bunyan-tests.ts b/types/bunyan/bunyan-tests.ts index ffdfb2e911..3c093c0270 100644 --- a/types/bunyan/bunyan-tests.ts +++ b/types/bunyan/bunyan-tests.ts @@ -126,7 +126,7 @@ class MyLogger extends Logger { } } -let child = log.child({ widget_type: 'wuzzle' }); +const child = log.child({ widget_type: 'wuzzle' }); child.reopenFileStreams(); log.addStream({ path: '/dev/null' }); child.level(Logger.DEBUG); diff --git a/types/bwip-js/index.d.ts b/types/bwip-js/index.d.ts index 04732ef703..401cc9dbc8 100644 --- a/types/bwip-js/index.d.ts +++ b/types/bwip-js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bwip-js 1.1.1 // Project: https://github.com/metafloor/bwip-js -// Definitions by: TANAKA Koichi +// Definitions by: TANAKA Koichi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/bytes/index.d.ts b/types/bytes/index.d.ts index ae9e8f2d87..0f438052e3 100644 --- a/types/bytes/index.d.ts +++ b/types/bytes/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bytes v2.5.0 // Project: https://github.com/visionmedia/bytes.js -// Definitions by: Zhiyuan Wang +// Definitions by: Zhiyuan Wang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface BytesOptions { diff --git a/types/cache-manager/index.d.ts b/types/cache-manager/index.d.ts index 37af0b8374..40d644b546 100644 --- a/types/cache-manager/index.d.ts +++ b/types/cache-manager/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cache-manager v1.2.0 // Project: https://github.com/BryanDonovan/node-cache-manager -// Definitions by: Simon Gausmann +// Definitions by: Simon Gausmann // Definitions: https://github.com/borisyankov/DefinitelyTyped interface CachingConfig { diff --git a/types/cal-heatmap/index.d.ts b/types/cal-heatmap/index.d.ts index f4b9f4df4f..affde185e2 100644 --- a/types/cal-heatmap/index.d.ts +++ b/types/cal-heatmap/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cal-heatmap v3.5.4 // Project: https://github.com/wa0x6e/cal-heatmap -// Definitions by: Chris Baker +// Definitions by: Chris Baker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/canvasjs/canvasjs-tests.ts b/types/canvasjs/canvasjs-tests.ts index 2bf1499865..281cea0e51 100644 --- a/types/canvasjs/canvasjs-tests.ts +++ b/types/canvasjs/canvasjs-tests.ts @@ -1,7 +1,7 @@ import * as CanvasJS from "canvasjs"; // Column Chart -let columnChart = new CanvasJS.Chart("chartContainer", +const columnChart = new CanvasJS.Chart("chartContainer", { title: { text: "Top Oil Reserves", @@ -35,7 +35,7 @@ let columnChart = new CanvasJS.Chart("chartContainer", ] }); columnChart.render(); -let option = columnChart.get("title"); +const option = columnChart.get("title"); columnChart.print(); columnChart.exportChart({ format: "jpg" }); columnChart.destroy(); @@ -43,7 +43,7 @@ columnChart.axisX[0].convertPixelToValue(20); columnChart.toolTip.get("text"); // Line Chart -let lineChart = new CanvasJS.Chart("chartContainer", +const lineChart = new CanvasJS.Chart("chartContainer", { theme: "theme2", title: { @@ -81,7 +81,7 @@ let lineChart = new CanvasJS.Chart("chartContainer", lineChart.render(); // Spline Chart -let splineChart = new CanvasJS.Chart("chartContainer", +const splineChart = new CanvasJS.Chart("chartContainer", { theme: "theme2", title: { @@ -138,11 +138,7 @@ let splineChart = new CanvasJS.Chart("chartContainer", legend: { cursor: "pointer", itemclick: (e) => { - if (typeof (e.dataSeries.visible) === "undefined" || e.dataSeries.visible) { - e.dataSeries.visible = false; - } else { - e.dataSeries.visible = true; - } + e.dataSeries.visible = !(typeof (e.dataSeries.visible) === "undefined" || e.dataSeries.visible); splineChart.render(); } }, @@ -150,7 +146,7 @@ let splineChart = new CanvasJS.Chart("chartContainer", splineChart.render(); // Bar Chart -let barChart = new CanvasJS.Chart("chartContainer", { +const barChart = new CanvasJS.Chart("chartContainer", { title: { text: "Fortune Global 500 Companies by Country" }, @@ -198,7 +194,7 @@ let barChart = new CanvasJS.Chart("chartContainer", { barChart.render(); // Pie Chart -let pieChart = new CanvasJS.Chart("chartContainer", +const pieChart = new CanvasJS.Chart("chartContainer", { title: { text: "Desktop Search Engine Market Share, Dec-2012" diff --git a/types/capitalize/index.d.ts b/types/capitalize/index.d.ts index b844784757..660592cfa6 100644 --- a/types/capitalize/index.d.ts +++ b/types/capitalize/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for capitalize 1.0 // Project: https://github.com/grncdr/js-capitalize -// Definitions by: Frederick Fogerty +// Definitions by: Frederick Fogerty // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/capitalize/tslint.json b/types/capitalize/tslint.json index 2750cc0197..939faba9c2 100644 --- a/types/capitalize/tslint.json +++ b/types/capitalize/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } \ No newline at end of file +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-duplicate-imports": false + } +} \ No newline at end of file diff --git a/types/chai-arrays/chai-arrays-tests.ts b/types/chai-arrays/chai-arrays-tests.ts index f8a42fb6a7..1562272240 100644 --- a/types/chai-arrays/chai-arrays-tests.ts +++ b/types/chai-arrays/chai-arrays-tests.ts @@ -1,11 +1,8 @@ -import { expect } from 'chai'; -import { assert } from 'chai'; - -import chai = require('chai'); +import { assert, expect, use, should } from 'chai'; import ChaiArrays = require('chai-arrays'); -chai.use(ChaiArrays); -chai.should(); +use(ChaiArrays); +should(); const arr: any[] = [1, 2, 3]; const str = 'abcdef'; diff --git a/types/chai-arrays/index.d.ts b/types/chai-arrays/index.d.ts index d50be4f101..1e61eec3ae 100644 --- a/types/chai-arrays/index.d.ts +++ b/types/chai-arrays/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for chai-arrays 1.0 // Project: https://github.com/GaneshSPatil/chai-arrays -// Definitions by: Clément Prévot +// Definitions by: Clément Prévot // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/chai-datetime/index.d.ts b/types/chai-datetime/index.d.ts index c008586cfe..176d112dc0 100644 --- a/types/chai-datetime/index.d.ts +++ b/types/chai-datetime/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for chai-datetime // Project: https://github.com/gaslight/chai-datetime.git -// Definitions by: Cliff Burger +// Definitions by: Cliff Burger // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/chai-jquery/index.d.ts b/types/chai-jquery/index.d.ts index 453336b08b..e1628f1743 100644 --- a/types/chai-jquery/index.d.ts +++ b/types/chai-jquery/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for chai-jquery 1.1.1 // Project: https://github.com/chaijs/chai-jquery -// Definitions by: Kazi Manzur Rashid +// Definitions by: Kazi Manzur Rashid // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/chai-json-schema/chai-json-schema-tests.ts b/types/chai-json-schema/chai-json-schema-tests.ts index 7273ac60cc..ee57572ae1 100644 --- a/types/chai-json-schema/chai-json-schema-tests.ts +++ b/types/chai-json-schema/chai-json-schema-tests.ts @@ -1,11 +1,8 @@ -import { expect } from 'chai'; -import { assert } from 'chai'; - -import chai = require('chai'); +import { assert, expect, use, should, tv4 } from 'chai'; import ChaiJsonSchema = require('chai-json-schema'); -chai.use(ChaiJsonSchema); -chai.should(); +use(ChaiJsonSchema); +should(); const goodApple = { skin: 'thin', @@ -63,5 +60,5 @@ const schema = { const data1 = [true, false]; const data2 = [true, 123]; -expect(chai.tv4.validate(data1, schema)).to.be.true; -expect(chai.tv4.validate(data2, schema)).to.be.false; +expect(tv4.validate(data1, schema)).to.be.true; +expect(tv4.validate(data2, schema)).to.be.false; diff --git a/types/chai-string/index.d.ts b/types/chai-string/index.d.ts index 1c880dc87e..fad380cf07 100644 --- a/types/chai-string/index.d.ts +++ b/types/chai-string/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for chai-string 1.1.4 // Project: https://github.com/onechiporenko/chai-string -// Definitions by: Nick Malaguti +// Definitions by: Nick Malaguti // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/chai-subset/index.d.ts b/types/chai-subset/index.d.ts index 3e0818aa2b..615f9f52e4 100644 --- a/types/chai-subset/index.d.ts +++ b/types/chai-subset/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for chai-subset 1.3 // Project: https://github.com/e-conomic/chai-subset -// Definitions by: Sam Noedel , Andrew Brown +// Definitions by: Sam Noedel , Andrew Brown // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/chai-xml/chai-xml-tests.ts b/types/chai-xml/chai-xml-tests.ts index c217662316..afc867387e 100644 --- a/types/chai-xml/chai-xml-tests.ts +++ b/types/chai-xml/chai-xml-tests.ts @@ -9,7 +9,7 @@ function test_chaiXml() { expect('nope').xml.not.to.be.valid(); expect(testXml).xml.to.be.valid(); expect(testXml).xml.to.equal('\ntest\n'); - expect(testXml).xml.to.not.equal('' ); + expect(testXml).xml.to.not.equal(''); } test_chaiXml(); diff --git a/types/chai/index.d.ts b/types/chai/index.d.ts index 634956eaed..bb730fe598 100644 --- a/types/chai/index.d.ts +++ b/types/chai/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for chai 4.0.0 // Project: http://chaijs.com/ -// Definitions by: Jed Mao , +// Definitions by: Jed Mao , // Bart van der Schoor , // Andrew Brown , // Olivier Chevet , diff --git a/types/chance/index.d.ts b/types/chance/index.d.ts index 7149e1032c..3b477c4bce 100644 --- a/types/chance/index.d.ts +++ b/types/chance/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Chance 0.7.3 // Project: http://chancejs.com -// Definitions by: Chris Bowdon +// Definitions by: Chris Bowdon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Chance { diff --git a/types/charm/index.d.ts b/types/charm/index.d.ts index 2ce1b9e13a..63b8c3daa3 100644 --- a/types/charm/index.d.ts +++ b/types/charm/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Charm 1.0 // Project: https://github.com/substack/node-charm/ -// Definitions by: Jad Sarout +// Definitions by: Jad Sarout // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index f66a423a60..f04fbc1119 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -2,8 +2,8 @@ // Project: https://github.com/nnnick/Chart.js // Definitions by: Alberto Nuti // Fabien Lavocat -// KentarouTakeda -// Larry Bahr +// KentarouTakeda +// Larry Bahr // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/chocolatechipjs/chocolatechipjs-tests.ts b/types/chocolatechipjs/chocolatechipjs-tests.ts index bbb6ae72e3..a723d1b8f9 100644 --- a/types/chocolatechipjs/chocolatechipjs-tests.ts +++ b/types/chocolatechipjs/chocolatechipjs-tests.ts @@ -1,5 +1,5 @@ // ChocolateChipStatic -- DOM creation, etc. -$(function() { +$(() => { alert('Ready to do stuff!'); }); const docRoot = $(); @@ -20,10 +20,10 @@ const moreEls = $.html('

Stuff

'); const oldTag = $('#oldTag'); const newTag = $('#newTag'); $.replace(oldTag, newTag); -$.require('./scripts/myscript.js', function() { +$.require('./scripts/myscript.js', () => { $.noop; }); -$.defer(function() { +$.defer(() => { console.log("This comes after Squawk!"); }); const concatenation = $.concat('This', ' ', 'is', ' ', 'a', ' ', 'string', '.'); @@ -41,7 +41,7 @@ $.isInteger(123); $.isInteger(123.123); // should return false $.isFloat(123.123); // should return true const newUuid = $.makeUuid(); -$.each(['a', 'b', 'c'], function(ctx: string, idx: number) { +$.each(['a', 'b', 'c'], (ctx: string, idx: number) => { console.log(ctx); console.log(idx); }); @@ -55,7 +55,7 @@ $.fn.extend({ }); // ChocolateChipElementArray extensions: -$('li').each(function(ctx, idx) { +$('li').each((ctx, idx) => { console.log(ctx.nodeName); }); const uniqueElements = $('li').unique(); @@ -63,19 +63,19 @@ const secondElement = $('li').eq(1); const lastElement = $('li').eq(-1); const whichIndex = $('li').index($('.selected')); const whichListItemIndex = $('li').eq(3).index(); -$('.elems').is('div').each(function(ctx) { +$('.elems').is('div').each(ctx => { console.log('This element is a div.'); }); -$('.elems').isnt('p').each(function() { +$('.elems').isnt('p').each(() => { console.log('This element is not a paragraph tag.'); }); -$('li').has('p').each(function(ctx) { +$('li').has('p').each(ctx => { console.log('This list item has a paragraph tag.'); }); -$('li').hasnt('p').each(function(ctx) { +$('li').hasnt('p').each(ctx => { console.log('This list item does not have a paragraph tag.'); }); -$('ul').find('li').each(function(ctx) { +$('ul').find('li').each(ctx => { console.log(ctx); }); $('li').css('color'); @@ -124,14 +124,14 @@ $('ul').hide(); $('ul').hide('slow'); $('ul').hide('fast'); $('ul').hide(1000); -$('ul').hide('fast', function() { +$('ul').hide('fast', () => { console.log('Finished hiding these.'); }); $('ul').show(); $('ul').show('slow'); $('ul').show('fast'); $('ul').show(1000); -$('ul').show('fast', function() { +$('ul').show('fast', () => { console.log('Finished hiding these.'); }); $('#list').prev().css('display', 'none'); @@ -198,22 +198,22 @@ const isSafari = $.isSafari; const isNativeAndroid = $.isNativeAndroid; // Events: -$('li').bind('click', function() { +$('li').bind('click', () => { $.noop; }, false); -$('li').unbind('click', function() { +$('li').unbind('click', () => { $.noop; }, false); -$('ul').delegate('click', 'li', function() { +$('ul').delegate('click', 'li', () => { $.noop; }, false); -$('ul').undelegate('click', 'li', function() { +$('ul').undelegate('click', 'li', () => { $.noop; }, false); -$('li').on('click', function() { +$('li').on('click', () => { $.noop; }); -$('ul').on('click', 'li', function() { +$('ul').on('click', 'li', () => { console.log($(this).text()); }); $('li').off('click'); @@ -224,22 +224,22 @@ $('.selected').data('selection', 'This is awesome!'); // set the value of data v $('.selected').data('selection'); // return the data value of "selection" on ".selected" // Promises: -let myPromise = new Promise(function(resolve, reject) { +let myPromise = new Promise((resolve, reject) => { $.noop; }); -myPromise = new Promise(function(resolve, reject) { +myPromise = new Promise((resolve, reject) => { // Resolve the promise: resolve('Success!'); // or reject it: // reject('Lost in Space!'); }); -myPromise.then(function(value) { +myPromise.then(value => { // Success: console.log(value); }, // Opps! There was a problem: - function(reason) { + reason => { console.log(reason); }); @@ -256,10 +256,10 @@ interface WineInterface { } fetch('../data/wines.json') .then($.json) -.then(function(obj: any): any { +.then((obj: any) => { $('#message_ajax').empty(); - obj.data.forEach(function(wine: any) { - $('#message_ajax').append('
  • ' + wine.name + '
  • '); + obj.data.forEach((wine: any) => { + $('#message_ajax').append(`
  • ${wine.name}
  • `); }); }); @@ -278,12 +278,12 @@ fetch('../controllers/php-post.php', { body: formData }) .then($.json) -.then(function(data: any): any { +.then((data: any) => { if (data.email_check === "valid") { - $("#message_ajax").html("
    " + data.email + " is a valid e-mail address. Thank you, " + data.name + ".
    "); - $("#message_ajax").append('

    ' + data.msg + '

    '); + $("#message_ajax").html(`
    ${data.email} is a valid e-mail address. Thank you, ${data.name}.
    `); + $("#message_ajax").append(`

    ${data.msg}

    `); } else { - $("#message_ajax").html("
    Sorry " + data.name + ", " + data.email + " is NOT a valid e-mail address. Try again.
    "); + $("#message_ajax").html(`
    Sorry ${data.name}, ${data.email} is NOT a valid e-mail address. Try again.
    `); } }); // PUT: @@ -301,12 +301,12 @@ fetch('../controllers/php-put.php', { body: putData }) .then($.json) -.then(function(data: any): any { +.then((data: any) => { console.dir(data.base); - $("#message_ajax").append('

    ' + data.result + '

    '); - $("#message_ajax").append('

    The file name is: ' + data.fileName + '

    '); + $("#message_ajax").append(`

    ${data.result}

    `); + $("#message_ajax").append(`

    The file name is: ${data.fileName}

    `); }) -.catch(function(error: Error) { +.catch((error: Error) => { console.log(error); $("#message_ajax").html("
    Sorry, put was not successful.
    "); }); @@ -324,15 +324,15 @@ fetch('../controllers/php-delete.php', { body: file }) .then($.json) -.then(function(data: any): any { +.then((data: any) => { $("#message_ajax").html("
    DELETE was sent to the server successfully.
    "); - $("#message_ajax").append('

    ' + data.result + '

    '); + $("#message_ajax").append(`

    ${data.result}

    `); }, -function(data: any) { +(data: any) => { console.log('PROBLEM'); console.log(data); }) -.catch(function(error: any) { +.catch((error: any) => { $("#message_ajax").html("
    Sorry, 'DELETE' was not successful.
    "); error.reject(); }); @@ -349,30 +349,30 @@ fetch('../controllers/php-post.php', { timeout: 10000 }) .then($.json) - .then(function (data: any): any { + .then((data: any) => { if (data.email_check === "valid") { - $("#message_ajax").html("
    " + data.email + " is a valid e-mail address. Thank you, " + data.name + ".
    "); - $("#message_ajax").append('

    ' + data.msg + '

    '); + $("#message_ajax").html(`
    ${data.email} is a valid e-mail address. Thank you, ${data.name}.
    `); + $("#message_ajax").append(`

    ${data.msg}

    `); } else { - $("#message_ajax").html("
    Sorry " + data.name + ", " + data.email + " is NOT a valid e-mail address. Try again.
    "); + $("#message_ajax").html(`
    Sorry ${data.name}, ${data.email} is NOT a valid e-mail address. Try again.
    `); } }) // Catch timeout: - .catch(function(error) { + .catch(error => { console.log(error); }); // $.jsonp: $.jsonp('https://api.github.com/users/rbiggs/repos?name=chipper', {timeout: 10000}) .then($.json) -.then(function(obj: any): any { +.then((obj: any) => { console.log(obj); - obj.data.forEach(function(repo: any): any { - $('#message_ajax').append("
  • " + repo.name + "
  • "); + obj.data.forEach((repo: any) => { + $('#message_ajax').append(`
  • ${repo.name}
  • `); }); }) -.catch(function(error: any): any { - $('#message_ajax').append("
  • " + error.message + "
  • "); +.catch((error: any) => { + $('#message_ajax').append(`
  • ${error.message}
  • `); }); // Templates: @@ -411,10 +411,9 @@ $.template.data['myRepeater'] = [{ name: "Joe" }, { name: "Sally" }, {name: "Tom $.template.repeater(); // Pub/Sub: -const arraySubscriber = function(topic: string, data: any): any { - $('.list').append('
  • ' + topic + '

    ' + data + '

  • '); -}; -const newsSubscription = $.subscribe('news/update', arraySubscriber); +const newsSubscription = $.subscribe('news/update', (topic: string, data: any) => { + $('.list').append(`
  • ${topic}

    ${data}

  • `); +}); $.publish('news/update', 'The New York Stock Exchange rose an unprecedented 1000 points in just three minutes. Analysts and investors are confused and uncertain how to respond.'); $.unsubscribe('news/update'); // Due to being unsubscribed above, this does nothing: diff --git a/types/chocolatechipjs/tslint.json b/types/chocolatechipjs/tslint.json index e502fddef8..04f74b7c27 100644 --- a/types/chocolatechipjs/tslint.json +++ b/types/chocolatechipjs/tslint.json @@ -4,7 +4,7 @@ // TODOs "adjacent-overload-signatures": false, "ban-types": false, - "only-arrow-functions": false, + "dt-header": false, "unified-signatures": false } } diff --git a/types/chokidar/index.d.ts b/types/chokidar/index.d.ts index b60a4a5655..683214fe35 100644 --- a/types/chokidar/index.d.ts +++ b/types/chokidar/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for chokidar 1.7.0 // Project: https://github.com/paulmillr/chokidar -// Definitions by: Stefan Steinhart , Felix Becker +// Definitions by: Stefan Steinhart , Felix Becker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/chosen-js/index.d.ts b/types/chosen-js/index.d.ts index 221eefb3d3..c9a5556c26 100644 --- a/types/chosen-js/index.d.ts +++ b/types/chosen-js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Chosen.JQuery 1.6.1 // Project: http://harvesthq.github.com/chosen/ -// Definitions by: Boris Yankov , denis +// Definitions by: Boris Yankov , denis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/chunked-dc/index.d.ts b/types/chunked-dc/index.d.ts index d200c07899..5e57953621 100644 --- a/types/chunked-dc/index.d.ts +++ b/types/chunked-dc/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for chunked-dc 0.1 // Project: https://github.com/saltyrtc/chunked-dc-js -// Definitions by: Danilo Bargen +// Definitions by: Danilo Bargen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Interfaces diff --git a/types/circular-json/index.d.ts b/types/circular-json/index.d.ts index b724f92577..1b4e5c1d2b 100644 --- a/types/circular-json/index.d.ts +++ b/types/circular-json/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for circular-json v0.1.6 // Project: https://github.com/WebReflection/circular-json -// Definitions by: Jonathan Pevarnek +// Definitions by: Jonathan Pevarnek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ckeditor/index.d.ts b/types/ckeditor/index.d.ts index 71a9202557..c158678c6e 100644 --- a/types/ckeditor/index.d.ts +++ b/types/ckeditor/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for CKEditor // Project: http://ckeditor.com/ -// Definitions by: Ondrej Sevcik +// Definitions by: Ondrej Sevcik // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // WORK-IN-PROGRESS: Any contribution support welcomed. diff --git a/types/clamp-js/index.d.ts b/types/clamp-js/index.d.ts index 2fa557bac6..b905e16e8f 100644 --- a/types/clamp-js/index.d.ts +++ b/types/clamp-js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for clamp-js 0.7 // Project: https://github.com/xavi160/Clamp.js -// Definitions by: Sebastiaan de Rooij +// Definitions by: Sebastiaan de Rooij // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace clamp { diff --git a/types/classnames/index.d.ts b/types/classnames/index.d.ts index 9ea79d3b97..ce2abb5ee3 100644 --- a/types/classnames/index.d.ts +++ b/types/classnames/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Dave Keen // Adi Dahiya // Jason Killian -// Sean Kelley +// Sean Kelley // Michal Adamczyk // Marvin Hagemeister // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/classnames/tslint.json b/types/classnames/tslint.json index 3db14f85ea..946c3b6691 100644 --- a/types/classnames/tslint.json +++ b/types/classnames/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} diff --git a/types/cldrjs/index.d.ts b/types/cldrjs/index.d.ts index 70a7c1c753..1837e9c88d 100644 --- a/types/cldrjs/index.d.ts +++ b/types/cldrjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Cldr.js 0.4.4 // Project: https://github.com/rxaviers/cldrjs -// Definitions by: Raman But-Husaim , Grégoire Castre +// Definitions by: Raman But-Husaim , Grégoire Castre // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = self; diff --git a/types/cli-table2/index.d.ts b/types/cli-table2/index.d.ts index 46d4619162..b216b23832 100644 --- a/types/cli-table2/index.d.ts +++ b/types/cli-table2/index.d.ts @@ -70,7 +70,7 @@ declare namespace CliTable2 { } interface GenericTable extends Array { - options: CliTable2.TableInstanceOptions; + options: TableInstanceOptions; readonly width: number; } diff --git a/types/co-views/index.d.ts b/types/co-views/index.d.ts index 3eda7191b1..db37de3611 100644 --- a/types/co-views/index.d.ts +++ b/types/co-views/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for co-views 2.1 // Project: https://github.com/tj/co-views/ -// Definitions by: devlee , Joshua DeVinney +// Definitions by: devlee , Joshua DeVinney // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace CoViews { diff --git a/types/command-line-args/index.d.ts b/types/command-line-args/index.d.ts index 33af16bcf5..442ee5cb93 100644 --- a/types/command-line-args/index.d.ts +++ b/types/command-line-args/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for command-line-args 4.0.6 // Project: https://github.com/75lb/command-line-args -// Definitions by: CzBuCHi +// Definitions by: CzBuCHi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** diff --git a/types/command-line-commands/index.d.ts b/types/command-line-commands/index.d.ts index cf69198dac..8cfc9c094d 100644 --- a/types/command-line-commands/index.d.ts +++ b/types/command-line-commands/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for command-line-commands 2.0.0 // Project: https://github.com/75lb/command-line-commands -// Definitions by: CzBuCHi +// Definitions by: CzBuCHi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** diff --git a/types/compare-version/index.d.ts b/types/compare-version/index.d.ts index 1807abe537..5a2639a7c8 100644 --- a/types/compare-version/index.d.ts +++ b/types/compare-version/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for compare-version v0.1.2 // Project: https://www.npmjs.com/package/compare-version -// Definitions by: Jonathan Pevarnek +// Definitions by: Jonathan Pevarnek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/component-emitter/index.d.ts b/types/component-emitter/index.d.ts index 52f8f05655..95682f6ca4 100644 --- a/types/component-emitter/index.d.ts +++ b/types/component-emitter/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for component-emitter v1.2.1 // Project: https://www.npmjs.com/package/component-emitter -// Definitions by: Peter Snider +// Definitions by: Peter Snider // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/emitter-component diff --git a/types/compression/index.d.ts b/types/compression/index.d.ts index 5099a3fb1b..75c37d4374 100644 --- a/types/compression/index.d.ts +++ b/types/compression/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for compression // Project: https://github.com/expressjs/compression -// Definitions by: Santi Albo +// Definitions by: Santi Albo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as express from 'express'; diff --git a/types/confit/index.d.ts b/types/confit/index.d.ts index b78bd88727..14e2940ad4 100644 --- a/types/confit/index.d.ts +++ b/types/confit/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Confit 2.x // Project: https://github.com/krakenjs/confit -// Definitions by: Ethan Resnick +// Definitions by: Ethan Resnick // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "confit" { diff --git a/types/connect-flash/index.d.ts b/types/connect-flash/index.d.ts index 1a10aae6db..edee056b1a 100644 --- a/types/connect-flash/index.d.ts +++ b/types/connect-flash/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for connect-flash // Project: https://github.com/jaredhanson/connect-flash -// Definitions by: Andreas Gassmann +// Definitions by: Andreas Gassmann // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/connect-livereload/index.d.ts b/types/connect-livereload/index.d.ts index 993e610b04..b0dadcfcc8 100644 --- a/types/connect-livereload/index.d.ts +++ b/types/connect-livereload/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for connect-livereload v0.5.3 // Project: https://github.com/intesso/connect-livereload -// Definitions by: Maxime LUCE +// Definitions by: Maxime LUCE // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/connect-modrewrite/index.d.ts b/types/connect-modrewrite/index.d.ts index 00a8b4fe46..41372046d1 100644 --- a/types/connect-modrewrite/index.d.ts +++ b/types/connect-modrewrite/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for connect-modrewrite // Project: https://github.com/tinganho/connect-modrewrite -// Definitions by: Tingan Ho +// Definitions by: Tingan Ho // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/connect/index.d.ts b/types/connect/index.d.ts index 66c5b7562c..8cebd6ba78 100644 --- a/types/connect/index.d.ts +++ b/types/connect/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for connect v3.4.0 // Project: https://github.com/senchalabs/connect -// Definitions by: Maxime LUCE +// Definitions by: Maxime LUCE // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/console-stamp/index.d.ts b/types/console-stamp/index.d.ts index ff6571330d..c7b9547cc8 100644 --- a/types/console-stamp/index.d.ts +++ b/types/console-stamp/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for console-stamp 0.2.0 // Project: https://github.com/starak/node-console-stamp -// Definitions by: Eric Byers +// Definitions by: Eric Byers // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/convert-source-map/index.d.ts b/types/convert-source-map/index.d.ts index 9576e5a08f..77b8d5d84d 100644 --- a/types/convert-source-map/index.d.ts +++ b/types/convert-source-map/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for convert-source-map 1.3 // Project: https://github.com/thlorenz/convert-source-map -// Definitions by: Andrew Gaspar , Melvin Groenhoff , TeamworkGuy2 +// Definitions by: Andrew Gaspar , Melvin Groenhoff , TeamworkGuy2 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** Converts a source-map from/to different formats and allows adding/changing properties. diff --git a/types/convict/convict-tests.ts b/types/convict/convict-tests.ts index 08bac59825..98a107d8e8 100644 --- a/types/convict/convict-tests.ts +++ b/types/convict/convict-tests.ts @@ -100,7 +100,7 @@ const conf = convict({ const env = conf.get('env'); const dbip = conf.get('db.ip'); -conf.loadFile('./config/' + env + '.json'); +conf.loadFile(`./config/${env}.json`); conf.loadFile(['./configs/always.json', './configs/sometimes.json']); // perform validation @@ -113,7 +113,7 @@ conf.validate({ allowed: 'warn' }); conf .loadFile(['./configs/always.json', './configs/sometimes.json']) - .loadFile('./config/' + env + '.json') + .loadFile(`./config/${env}.json`) .load({ jsonKey: 'jsonValue' }) .set('key', 'value') .validate({ allowed: 'warn' }) diff --git a/types/convict/index.d.ts b/types/convict/index.d.ts index 183d91ed91..d7904ec5d6 100644 --- a/types/convict/index.d.ts +++ b/types/convict/index.d.ts @@ -28,7 +28,7 @@ declare namespace convict { } interface Schema { - [name: string]: convict.Schema | { + [name: string]: Schema | { default: any; doc?: string; /** diff --git a/types/cookie-parser/index.d.ts b/types/cookie-parser/index.d.ts index b2520080b0..9d0c6c1f0a 100644 --- a/types/cookie-parser/index.d.ts +++ b/types/cookie-parser/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cookie-parser 1.4 // Project: https://github.com/expressjs/cookie-parser -// Definitions by: Santi Albo +// Definitions by: Santi Albo // BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/cookie-session/index.d.ts b/types/cookie-session/index.d.ts index b0f4a1060e..29562d0320 100644 --- a/types/cookie-session/index.d.ts +++ b/types/cookie-session/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cookie-session 2.0 // Project: https://github.com/expressjs/cookie-session -// Definitions by: Borislav Zhivkov +// Definitions by: Borislav Zhivkov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/cookies/cookies-tests.ts b/types/cookies/cookies-tests.ts index 2cdbfa51fe..2f78f8ad49 100644 --- a/types/cookies/cookies-tests.ts +++ b/types/cookies/cookies-tests.ts @@ -32,7 +32,8 @@ const server = http.createServer((req, res) => { .set("samesite", "same", {sameSite: false}); res.writeHead(302, { Location: "/" }); - return res.end("Now let's check."); + res.end("Now let's check."); + return; } unsigned = cookies.get("unsigned"); @@ -41,13 +42,19 @@ const server = http.createServer((req, res) => { res.writeHead(200, { "Content-Type": "text/plain" }); res.end( - "unsigned expected: foo\n\n" + - "unsigned actual: " + unsigned + "\n\n" + - "signed expected: bar\n\n" + - "signed actual: " + signed + "\n\n" + - "tampered expected: undefined\n\n" + - "tampered: " + tampered + "\n\n" - ); + `unsigned expected: foo + +unsigned actual: ${unsigned} + +signed expected: bar + +signed actual: ${signed} + +tampered expected: undefined + +tampered: ${tampered} + +`); }); const eApp = express(); diff --git a/types/cookies/index.d.ts b/types/cookies/index.d.ts index ce9ed05eb5..8a897cfeae 100644 --- a/types/cookies/index.d.ts +++ b/types/cookies/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cookies 0.7 // Project: https://github.com/pillarjs/cookies -// Definitions by: Wang Zishi +// Definitions by: Wang Zishi // jKey Lu // BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/cordova-plugin-app-version/index.d.ts b/types/cordova-plugin-app-version/index.d.ts index b30beef9c6..ea727815a4 100644 --- a/types/cordova-plugin-app-version/index.d.ts +++ b/types/cordova-plugin-app-version/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cordova-plugin-app-version v0.1.7 // Project: https://github.com/whiteoctober/cordova-plugin-app-version -// Definitions by: Markus Wagner +// Definitions by: Markus Wagner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Cordova { diff --git a/types/cordova-plugin-ibeacon/index.d.ts b/types/cordova-plugin-ibeacon/index.d.ts index 3530ccb70d..eb2115448d 100644 --- a/types/cordova-plugin-ibeacon/index.d.ts +++ b/types/cordova-plugin-ibeacon/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cordova-plugin-ibeacon v3.3.0 // Project: https://github.com/petermetz/cordova-plugin-ibeacon -// Definitions by: Markus Wagner +// Definitions by: Markus Wagner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Q from "q"; diff --git a/types/cordova-plugin-inappbrowser/tslint.json b/types/cordova-plugin-inappbrowser/tslint.json index 3db14f85ea..946c3b6691 100644 --- a/types/cordova-plugin-inappbrowser/tslint.json +++ b/types/cordova-plugin-inappbrowser/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} diff --git a/types/cordova-plugin-insomnia/index.d.ts b/types/cordova-plugin-insomnia/index.d.ts index 3b5fbd9e4d..122511e519 100644 --- a/types/cordova-plugin-insomnia/index.d.ts +++ b/types/cordova-plugin-insomnia/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Insomnia-PhoneGap-Plugin v4.0.1 // Project: https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin/ -// Definitions by: Markus Wagner +// Definitions by: Markus Wagner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Window { diff --git a/types/cordova-plugin-mapsforge/index.d.ts b/types/cordova-plugin-mapsforge/index.d.ts index e4c5d02eee..79f3ac6735 100644 --- a/types/cordova-plugin-mapsforge/index.d.ts +++ b/types/cordova-plugin-mapsforge/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cordova-plugin-mapsforge // Project: https://github.com/afsuarez/mapsforge-cordova-plugin -// Definitions by: rafw87 +// Definitions by: rafw87 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Window { diff --git a/types/cordova-plugin-qrscanner/index.d.ts b/types/cordova-plugin-qrscanner/index.d.ts index 0f2a498a9c..d61777f3a4 100644 --- a/types/cordova-plugin-qrscanner/index.d.ts +++ b/types/cordova-plugin-qrscanner/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cordova-plugin-qrscanner v1.0.1 // Project: https://github.com/bitpay/cordova-plugin-qrscanner -// Definitions by: Jason Dreyzehner +// Definitions by: Jason Dreyzehner // Josh Bronson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/cordova-plugin-vibration/index.d.ts b/types/cordova-plugin-vibration/index.d.ts index 192c4781f5..317576a523 100644 --- a/types/cordova-plugin-vibration/index.d.ts +++ b/types/cordova-plugin-vibration/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Apache Cordova Vibration plugin // Project: https://github.com/apache/cordova-plugin-vibration -// Definitions by: Microsoft Open Technologies Inc , Louis Lagrange +// Definitions by: Microsoft Open Technologies Inc , Louis Lagrange // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies Inc diff --git a/types/cordova-plugin-x-socialsharing/index.d.ts b/types/cordova-plugin-x-socialsharing/index.d.ts index 4560dd3f1a..a5105c898c 100644 --- a/types/cordova-plugin-x-socialsharing/index.d.ts +++ b/types/cordova-plugin-x-socialsharing/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for SocialSharing-PhoneGap-Plugin v5.1.8 // Project: https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin -// Definitions by: Markus Wagner , Larry Bahr +// Definitions by: Markus Wagner , Larry Bahr // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Window { diff --git a/types/cordova-sqlite-storage/index.d.ts b/types/cordova-sqlite-storage/index.d.ts index 2f78c908ff..6ba48b08d2 100644 --- a/types/cordova-sqlite-storage/index.d.ts +++ b/types/cordova-sqlite-storage/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cordova-sqlite-storage 1.5 // Project: https://github.com/litehelpers/Cordova-sqlite-storage -// Definitions by: rafw87 +// Definitions by: rafw87 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Window { diff --git a/types/cordova.plugins.diagnostic/index.d.ts b/types/cordova.plugins.diagnostic/index.d.ts index 5952b41851..e9ad96deb2 100644 --- a/types/cordova.plugins.diagnostic/index.d.ts +++ b/types/cordova.plugins.diagnostic/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cordova.plugins.diagnostic v3.4.x // Project: https://github.com/dpa99c/cordova-diagnostic-plugin -// Definitions by: Dave Alden +// Definitions by: Dave Alden // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/core-decorators/tslint.json b/types/core-decorators/tslint.json index e14af8449b..bade6d465f 100644 --- a/types/core-decorators/tslint.json +++ b/types/core-decorators/tslint.json @@ -1,7 +1,9 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs "callable-types": false, - "ban-types": false + "ban-types": false, + "no-duplicate-imports": false } } diff --git a/types/crypto-js/index.d.ts b/types/crypto-js/index.d.ts index 07a8d18dfc..64b61a4514 100644 --- a/types/crypto-js/index.d.ts +++ b/types/crypto-js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for crypto-js v3.1.4 // Project: https://github.com/evanvosberg/crypto-js -// Definitions by: Michael Zabka +// Definitions by: Michael Zabka // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = CryptoJS; diff --git a/types/csurf/index.d.ts b/types/csurf/index.d.ts index 53b86392f1..362b4c6e8e 100644 --- a/types/csurf/index.d.ts +++ b/types/csurf/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for csurf 1.9.0 // Project: https://www.npmjs.org/package/csurf -// Definitions by: Hiroki Horiuchi +// Definitions by: Hiroki Horiuchi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/cucumber/cucumber-tests.ts b/types/cucumber/cucumber-tests.ts index 141a201f89..46531711f3 100644 --- a/types/cucumber/cucumber-tests.ts +++ b/types/cucumber/cucumber-tests.ts @@ -26,9 +26,11 @@ function StepSample() { }); Around((scenarioResult: HookScenarioResult, runScenario: (error: string | null, callback?: () => void) => void) => { - scenarioResult.status === "failed" && runScenario(null, () => { - console.log('finish tasks'); - }); + if (scenarioResult.status === "failed") { + runScenario(null, () => { + console.log('finish tasks'); + }); + } }); After((scenarioResult: HookScenarioResult, callback: Callback) => { @@ -123,13 +125,13 @@ function StepSample() { }); }); - let fns: cucumber.SupportCodeConsumer[] = cucumber.getSupportCodeFns(); + const fns: cucumber.SupportCodeConsumer[] = cucumber.getSupportCodeFns(); cucumber.clearSupportCodeFns(); } function registerListener(): cucumber.EventListener { - let listener = Object.assign(cucumber.Listener(), { + const listener = Object.assign(cucumber.Listener(), { handleBeforeScenarioEvent: (scenario: cucumber.events.ScenarioPayload, callback: () => void) => { // do some interesting stuff ... diff --git a/types/d3-array/d3-array-tests.ts b/types/d3-array/d3-array-tests.ts index 7ce3d6354d..42bf95bcfe 100644 --- a/types/d3-array/d3-array-tests.ts +++ b/types/d3-array/d3-array-tests.ts @@ -54,12 +54,12 @@ let mixedOrUndefinedExtent: [d3Array.Primitive | NumCoercible, d3Array.Primitive let dateOrUndefinedExtent: [Date, Date] | [undefined, undefined]; let numbersArray = [10, 20, 30, 40, 50]; -let numbersOrUndefinedArray = [10, 20, undefined, null, 40, 50]; +const numbersOrUndefinedArray = [10, 20, undefined, null, 40, 50]; let stringyNumbersArray = ['10', '20', '30', '40', '50']; -let numericArray = [new NumCoercible(10), new NumCoercible(20), new NumCoercible(30), new NumCoercible(40), new NumCoercible(50)]; +const numericArray = [new NumCoercible(10), new NumCoercible(20), new NumCoercible(30), new NumCoercible(40), new NumCoercible(50)]; let dateArray = [new Date(2016, 6, 1), new Date(2016, 7, 30), new Date(2015, 3, 15)]; -let mixedObjectArray = [ +const mixedObjectArray = [ new MixedObject(10, new Date(2016, 6, 1)), new MixedObject(20, new Date(2016, 7, 30)), new MixedObject(30, new Date(2015, 3, 15)), @@ -67,16 +67,16 @@ let mixedObjectArray = [ new MixedObject(50, new Date(2017, 4, 15)) ]; -let mixedObjectOrUndefinedArray = [...mixedObjectArray, undefined]; +const mixedObjectOrUndefinedArray = [...mixedObjectArray, undefined]; let typedArray = Uint8Array.from(numbersArray); let readonlyNumbersArray = numbersArray as ReadonlyArray; -let readonlyNumbersOrUndefinedArray = numbersOrUndefinedArray as ReadonlyArray; -let readonlyStringyNumbersArray = stringyNumbersArray as ReadonlyArray; -let readonlyNumericArray = numericArray as ReadonlyArray; -let readonlyDateArray = dateArray as ReadonlyArray; -let readonlyMixedObjectArray = mixedObjectArray as ReadonlyArray; -let readonlyMixedObjectOrUndefinedArray = mixedObjectOrUndefinedArray as ReadonlyArray; +const readonlyNumbersOrUndefinedArray = numbersOrUndefinedArray as ReadonlyArray; +const readonlyStringyNumbersArray = stringyNumbersArray as ReadonlyArray; +const readonlyNumericArray = numericArray as ReadonlyArray; +const readonlyDateArray = dateArray as ReadonlyArray; +const readonlyMixedObjectArray = mixedObjectArray as ReadonlyArray; +const readonlyMixedObjectOrUndefinedArray = mixedObjectOrUndefinedArray as ReadonlyArray; function accessorMixedObjectToNum(datum: MixedObject, index: number, array: MixedObject[]): number { return datum.num; @@ -457,7 +457,7 @@ num = d3Array.descending(new Date(2016, 6, 13), new Date(2016, 6, 14)); // merge() --------------------------------------------------------------------- -let testArray1 = [ +const testArray1 = [ new MixedObject(10, new Date(2016, 6, 1)), new MixedObject(20, new Date(2016, 7, 30)), new MixedObject(30, new Date(2015, 3, 15)), @@ -465,16 +465,16 @@ let testArray1 = [ new MixedObject(50, new Date(2017, 4, 15)) ]; -let testArray2 = [ +const testArray2 = [ new MixedObject(40, new Date(2016, 3, 1)), new MixedObject(50, new Date(2016, 9, 30)), ]; let testArrays: MixedObject[][] = [testArray1, testArray2]; -let readonlyTestArray1 = testArray1 as ReadonlyArray; -let readonlyTestArray2 = testArray2 as ReadonlyArray; -let readonlyTestArrays = [testArray1, testArray2] as ReadonlyArray>; +const readonlyTestArray1 = testArray1 as ReadonlyArray; +const readonlyTestArray2 = testArray2 as ReadonlyArray; +const readonlyTestArrays = [testArray1, testArray2] as ReadonlyArray>; let mergedArray: MixedObject[]; @@ -572,15 +572,15 @@ mergedArray = d3Array.shuffle(mergedArray, 1, 3); // mergedArray = d3Array.shuffle(readonlyMergedArray); // fails, shuffle mutates input array in-place // Test each TypedArray explicitly. Can't use ArrayLike in this case because shuffle is mutable and ArrayLike would include ReadonlyArray -let resultInt8: Int8Array = d3Array.shuffle(new Int8Array(numbersArray)); -let resultUint8: Uint8Array = d3Array.shuffle(new Uint8Array(numbersArray)); -let resultUint8Clamped: Uint8ClampedArray = d3Array.shuffle(new Uint8ClampedArray(numbersArray)); -let resultInt16: Int16Array = d3Array.shuffle(new Int16Array(numbersArray)); -let resultUint6: Uint16Array = d3Array.shuffle(new Uint16Array(numbersArray)); -let resultInt32: Int32Array = d3Array.shuffle(new Int32Array(numbersArray)); -let resultUint32: Uint32Array = d3Array.shuffle(new Uint32Array(numbersArray)); -let resultFloat32: Float32Array = d3Array.shuffle(new Float32Array(numbersArray)); -let resultFloat64: Float64Array = d3Array.shuffle(new Float64Array(numbersArray)); +const resultInt8: Int8Array = d3Array.shuffle(new Int8Array(numbersArray)); +const resultUint8: Uint8Array = d3Array.shuffle(new Uint8Array(numbersArray)); +const resultUint8Clamped: Uint8ClampedArray = d3Array.shuffle(new Uint8ClampedArray(numbersArray)); +const resultInt16: Int16Array = d3Array.shuffle(new Int16Array(numbersArray)); +const resultUint6: Uint16Array = d3Array.shuffle(new Uint16Array(numbersArray)); +const resultInt32: Int32Array = d3Array.shuffle(new Int32Array(numbersArray)); +const resultUint32: Uint32Array = d3Array.shuffle(new Uint32Array(numbersArray)); +const resultFloat32: Float32Array = d3Array.shuffle(new Float32Array(numbersArray)); +const resultFloat64: Float64Array = d3Array.shuffle(new Float64Array(numbersArray)); // ticks() --------------------------------------------------------------------- diff --git a/types/d3-geo/d3-geo-tests.ts b/types/d3-geo/d3-geo-tests.ts index 8b8f9557e9..f698193878 100644 --- a/types/d3-geo/d3-geo-tests.ts +++ b/types/d3-geo/d3-geo-tests.ts @@ -607,7 +607,7 @@ let customTransformProto: CustomTranformProto; customTransformProto = { point(x, y) { - return this.stream.point(x + this.a, -y); + this.stream.point(x + this.a, -y); }, a: 10 }; diff --git a/types/d3-hexbin/index.d.ts b/types/d3-hexbin/index.d.ts index 61d7330ca6..dba33cb292 100644 --- a/types/d3-hexbin/index.d.ts +++ b/types/d3-hexbin/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for D3JS d3-hexbin module v0.2.1 // Project: https://github.com/d3/d3-hexbin/ -// Definitions by: UNCOVER TRUTH Inc. , Tom Wanzek +// Definitions by: UNCOVER TRUTH Inc. , Tom Wanzek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface HexbinBin extends Array { diff --git a/types/datatables.net/index.d.ts b/types/datatables.net/index.d.ts index 8017017d8c..85f6d05857 100644 --- a/types/datatables.net/index.d.ts +++ b/types/datatables.net/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for JQuery DataTables 1.10.9 // Project: http://www.datatables.net -// Definitions by: Kiarash Ghiaseddin , Omid Rad , Armin Sander , Denise Mauldin +// Definitions by: Kiarash Ghiaseddin , Omid Rad , Armin Sander , Denise Mauldin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/daterangepicker/index.d.ts b/types/daterangepicker/index.d.ts index f31f9fee6e..f01ffd59a3 100644 --- a/types/daterangepicker/index.d.ts +++ b/types/daterangepicker/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for Date Range Picker v2.1.25 // Project: http://www.daterangepicker.com/ -// Definitions by: SirMartin -// Steven Masala +// Definitions by: SirMartin +// Steven Masala // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/deep-diff/index.d.ts b/types/deep-diff/index.d.ts index f07fc39ef6..de17a03bc8 100644 --- a/types/deep-diff/index.d.ts +++ b/types/deep-diff/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for deep-diff // Project: https://github.com/flitbit/diff/ -// Definitions by: ZauberNerd +// Definitions by: ZauberNerd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace deepDiff { diff --git a/types/defaults/index.d.ts b/types/defaults/index.d.ts index 024df0558b..717f80a5a7 100644 --- a/types/defaults/index.d.ts +++ b/types/defaults/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for defaults 1.0.3 // Project: https://github.com/tmpvar/defaults/ -// Definitions by: Ibtihel CHNAB +// Definitions by: Ibtihel CHNAB // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function defaults(options: any, defaultOptions: any): any; diff --git a/types/deku/index.d.ts b/types/deku/index.d.ts index ff5a68f8bb..595e2521e9 100644 --- a/types/deku/index.d.ts +++ b/types/deku/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for deku v2.0 // Project: https://github.com/anthonyshort/deku -// Definitions by: Sho Fuji +// Definitions by: Sho Fuji // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = deku; diff --git a/types/del/tslint.json b/types/del/tslint.json index 3db14f85ea..26bcea6634 100644 --- a/types/del/tslint.json +++ b/types/del/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false + } +} diff --git a/types/delaunator/tslint.json b/types/delaunator/tslint.json index 3db14f85ea..f2ffe2445b 100644 --- a/types/delaunator/tslint.json +++ b/types/delaunator/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-duplicate-imports": false + } +} diff --git a/types/delay/tslint.json b/types/delay/tslint.json index 3db14f85ea..21fecfef93 100644 --- a/types/delay/tslint.json +++ b/types/delay/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "await-promise": false + } +} diff --git a/types/denodeify/index.d.ts b/types/denodeify/index.d.ts index d5283bf777..4c180e63d8 100644 --- a/types/denodeify/index.d.ts +++ b/types/denodeify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for denodeify 1.2.1 // Project: https://github.com/matthew-andrews/denodeify -// Definitions by: joaomoreno +// Definitions by: joaomoreno // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/depd/index.d.ts b/types/depd/index.d.ts index 147393a332..0db1d877f6 100644 --- a/types/depd/index.d.ts +++ b/types/depd/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for depd 1.1.0 // Project: https://github.com/dougwilson/nodejs-depd -// Definitions by: Zhiyuan Wang +// Definitions by: Zhiyuan Wang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/diacritics/index.d.ts b/types/diacritics/index.d.ts index 3031c5f493..c25988cb37 100644 --- a/types/diacritics/index.d.ts +++ b/types/diacritics/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for diacritics 1.3 // Project: https://github.com/andrewrk/node-diacritics -// Definitions by: Oto Ciulis +// Definitions by: Oto Ciulis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export function remove(str: string): string; diff --git a/types/diff/index.d.ts b/types/diff/index.d.ts index 03228269e0..49975756f4 100644 --- a/types/diff/index.d.ts +++ b/types/diff/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for diff 3.2 // Project: https://github.com/kpdecker/jsdiff -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/diff2html/index.d.ts b/types/diff2html/index.d.ts index 398cb1aba1..ce2522d444 100644 --- a/types/diff2html/index.d.ts +++ b/types/diff2html/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for diff2html // Project: https://github.com/rtfpessoa/diff2html -// Definitions by: rtfpessoa +// Definitions by: rtfpessoa // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Diff2Html { diff --git a/types/docopt/index.d.ts b/types/docopt/index.d.ts index a40904bf76..8d8b23a0c0 100644 --- a/types/docopt/index.d.ts +++ b/types/docopt/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Docopt v0.6.2 // Project: http://docopt.org/ -// Definitions by: Giovanni Bassi +// Definitions by: Giovanni Bassi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** diff --git a/types/donna/index.d.ts b/types/donna/index.d.ts index 0b47420998..7051c7e48c 100644 --- a/types/donna/index.d.ts +++ b/types/donna/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for donna // Project: https://github.com/atom/donna -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export function generateMetadata(modules: string[]): DonnaTypes.Metadata; diff --git a/types/dotenv/index.d.ts b/types/dotenv/index.d.ts index 92e15c1637..e29c04e8d7 100644 --- a/types/dotenv/index.d.ts +++ b/types/dotenv/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for dotenv 4.0 // Project: https://github.com/motdotla/dotenv -// Definitions by: Jussi Kinnula , Borek Bernard , Eric Naeseth +// Definitions by: Jussi Kinnula , Borek Bernard , Eric Naeseth // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/dottie/index.d.ts b/types/dottie/index.d.ts index 1c9f601380..d8fcba1397 100644 --- a/types/dottie/index.d.ts +++ b/types/dottie/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for dottie 2.0 // Project: https://github.com/mickhansen/dottie -// Definitions by: Dom Armstrong +// Definitions by: Dom Armstrong // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/draggabilly/draggabilly-tests.ts b/types/draggabilly/draggabilly-tests.ts index 6ab38e6c13..90ae7095ea 100644 --- a/types/draggabilly/draggabilly-tests.ts +++ b/types/draggabilly/draggabilly-tests.ts @@ -15,7 +15,7 @@ const draggie = new Draggabilly(elem, { const draggiePosX: number = draggie.position.x; const draggiePosY: number = draggie.position.y; -draggie.on( 'dragMove', (event, pointer, moveVector) => { +draggie.on('dragMove', (event, pointer, moveVector) => { const pointerPageX: number = pointer.pageX; const pointePageY: number = pointer.pageY; @@ -23,17 +23,17 @@ draggie.on( 'dragMove', (event, pointer, moveVector) => { const moveVectorY: number = moveVector.y; }); -draggie.on( 'dragStart', (event, pointer) => {}); +draggie.on('dragStart', (event, pointer) => {}); -draggie.on( 'dragEnd', (event, pointer) => {}); +draggie.on('dragEnd', (event, pointer) => {}); -draggie.on( 'pointerDown', (event, pointer) => {}); +draggie.on('pointerDown', (event, pointer) => {}); -draggie.on( 'pointerMove', (event, pointer, moveVector) => {}); +draggie.on('pointerMove', (event, pointer, moveVector) => {}); -draggie.on( 'pointerUp', (event, pointer) => {}); +draggie.on('pointerUp', (event, pointer) => {}); -draggie.on( 'staticClick', (event, pointer) => {}); +draggie.on('staticClick', (event, pointer) => {}); draggie.off('dragMove', (event, pointer, moveVector) => {}); diff --git a/types/draggabilly/index.d.ts b/types/draggabilly/index.d.ts index 6307c424ab..02cecbc4d2 100644 --- a/types/draggabilly/index.d.ts +++ b/types/draggabilly/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for draggabilly 2.1 // Project: http://draggabilly.desandro.com/ -// Definitions by: Jason Wu +// Definitions by: Jason Wu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/dragula/index.d.ts b/types/dragula/index.d.ts index 01420e9a29..f91e8b70ac 100644 --- a/types/dragula/index.d.ts +++ b/types/dragula/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for dragula v2.1.2 // Project: http://bevacqua.github.io/dragula/ -// Definitions by: Paul Welter -// Yang He +// Definitions by: Paul Welter +// Yang He // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var dragula: dragula.Dragula; diff --git a/types/dropkickjs/index.d.ts b/types/dropkickjs/index.d.ts index a7211070d4..94554a793a 100644 --- a/types/dropkickjs/index.d.ts +++ b/types/dropkickjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for dropkickjs 2.1 // Project: http://dropkickjs.com/ -// Definitions by: Dmitry Pesterev +// Definitions by: Dmitry Pesterev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface DropkickOptions { diff --git a/types/duplexer2/index.d.ts b/types/duplexer2/index.d.ts index a8b5e4c3a8..941a9ebe8b 100644 --- a/types/duplexer2/index.d.ts +++ b/types/duplexer2/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for duplexer2 0.1 // Project: https://github.com/deoxxa/duplexer2 -// Definitions by: Zlatko Andonovski +// Definitions by: Zlatko Andonovski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Definition file started by dts-gen diff --git a/types/dwt/index.d.ts b/types/dwt/index.d.ts index 460158afe1..423dab8824 100644 --- a/types/dwt/index.d.ts +++ b/types/dwt/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for dwt 12.3 // Project: http://www.dynamsoft.com/Products/WebTWAIN_Overview.aspx -// Definitions by: Xiao Ling +// Definitions by: Xiao Ling // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/dynatable/index.d.ts b/types/dynatable/index.d.ts index b9e1be607f..e4b3943fcb 100644 --- a/types/dynatable/index.d.ts +++ b/types/dynatable/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jquery.dynatable v0.3.1 // Project: http://www.dynatable.com/ -// Definitions by: François Massart +// Definitions by: François Massart // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/each/index.d.ts b/types/each/index.d.ts index 2dd71d25e5..b53a12d01f 100644 --- a/types/each/index.d.ts +++ b/types/each/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for NodeEach v0.4.9 // Project: http://www.adaltas.com/projects/node-each/ -// Definitions by: Michael Zabka +// Definitions by: Michael Zabka // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Each { diff --git a/types/easy-api-request/index.d.ts b/types/easy-api-request/index.d.ts index 1b3606ccb1..cc3fc85810 100644 --- a/types/easy-api-request/index.d.ts +++ b/types/easy-api-request/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for easy-api-request // Project: https://github.com/DeadAlready/easy-api-request -// Definitions by: Karl Düüna +// Definitions by: Karl Düüna // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/easy-jsend/index.d.ts b/types/easy-jsend/index.d.ts index e433dc1630..6cf9f48d03 100644 --- a/types/easy-jsend/index.d.ts +++ b/types/easy-jsend/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for easy-jsend // Project: https://github.com/DeadAlready/easy-jsend -// Definitions by: Karl Düüna +// Definitions by: Karl Düüna // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/easy-session/index.d.ts b/types/easy-session/index.d.ts index 9a449b5322..904b74d23f 100644 --- a/types/easy-session/index.d.ts +++ b/types/easy-session/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for easy-session // Project: https://github.com/DeadAlready/node-easy-session -// Definitions by: Karl Düüna +// Definitions by: Karl Düüna // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/easy-x-headers/index.d.ts b/types/easy-x-headers/index.d.ts index 54faf1c2a1..35ede3ef2e 100644 --- a/types/easy-x-headers/index.d.ts +++ b/types/easy-x-headers/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for easy-x-headers // Project: https://github.com/DeadAlready/easy-x-headers -// Definitions by: Karl Düüna +// Definitions by: Karl Düüna // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/easy-xapi-supertest/index.d.ts b/types/easy-xapi-supertest/index.d.ts index df7eda856a..f67dc4345b 100644 --- a/types/easy-xapi-supertest/index.d.ts +++ b/types/easy-xapi-supertest/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for easy-x-headers // Project: https://github.com/DeadAlready/easy-x-headers -// Definitions by: Karl Düüna +// Definitions by: Karl Düüna // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/easy-xapi-utils/index.d.ts b/types/easy-xapi-utils/index.d.ts index a4b219bf43..5085af7551 100644 --- a/types/easy-xapi-utils/index.d.ts +++ b/types/easy-xapi-utils/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for easy-xapi-utils // Project: https://github.com/DeadAlready/easy-xapi-utils -// Definitions by: Karl Düüna +// Definitions by: Karl Düüna // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/easy-xapi/index.d.ts b/types/easy-xapi/index.d.ts index aa4c0286cf..aa7316288b 100644 --- a/types/easy-xapi/index.d.ts +++ b/types/easy-xapi/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for easy-xapi // Project: https://github.com/DeadAlready/easy-xapi -// Definitions by: Karl Düüna +// Definitions by: Karl Düüna // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/egg-mock/index.d.ts b/types/egg-mock/index.d.ts index 51198aed42..9ccf6989dd 100644 --- a/types/egg-mock/index.d.ts +++ b/types/egg-mock/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Egg-mock 3.x // Project: https://github.com/eggjs/egg-mock -// Definitions by: Eward Song +// Definitions by: Eward Song // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Application, Context } from 'egg'; diff --git a/types/egg.js/index.d.ts b/types/egg.js/index.d.ts index 61f1541bfd..1e0329fc73 100644 --- a/types/egg.js/index.d.ts +++ b/types/egg.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Egg.js 0.0.1 // Project: https://github.com/mikeflynn/egg.js/ -// Definitions by: Markus Peloso +// Definitions by: Markus Peloso // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var egg: Egg; diff --git a/types/egg/index.d.ts b/types/egg/index.d.ts index b7746bca0b..abf8d5db38 100644 --- a/types/egg/index.d.ts +++ b/types/egg/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Egg 1.x // Project: https://github.com/eggjs/egg -// Definitions by: Eward Song +// Definitions by: Eward Song // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/ej.web.all/index.d.ts b/types/ej.web.all/index.d.ts index a3b46472a9..a483889c0f 100644 --- a/types/ej.web.all/index.d.ts +++ b/types/ej.web.all/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ej.web.all 15.3 // Project: http://help.syncfusion.com/js/typescript -// Definitions by: Syncfusion +// Definitions by: Syncfusion // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/electron-packager/index.d.ts b/types/electron-packager/index.d.ts index df5a10eb92..de33fa3499 100644 --- a/types/electron-packager/index.d.ts +++ b/types/electron-packager/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for electron-packager 8.7 // Project: https://github.com/electron-userland/electron-packager -// Definitions by: Maxime LUCE +// Definitions by: Maxime LUCE // Juan Jimenez-Anca // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/ember/ember-tests.ts b/types/ember/ember-tests.ts index 0ce8667862..f2d8805864 100644 --- a/types/ember/ember-tests.ts +++ b/types/ember/ember-tests.ts @@ -15,7 +15,7 @@ App.president = Ember.Object.create({ firstName: 'Barack', lastName: 'Obama', fullName: Ember.computed(function() { - return this.get('firstName') + ' ' + this.get('lastName'); + return `${this.get('firstName')} ${this.get('lastName')}`; }), }); App.president.get('fullName'); diff --git a/types/ember/tslint.json b/types/ember/tslint.json index b361418966..7c941bb9c6 100644 --- a/types/ember/tslint.json +++ b/types/ember/tslint.json @@ -6,6 +6,7 @@ "jsdoc-format": false, "no-misused-new": false, // not sure what this means - "no-single-declare-module": false + "no-single-declare-module": false, + "no-unnecessary-qualifier": false } } diff --git a/types/emissary/index.d.ts b/types/emissary/index.d.ts index e8de4ff94a..6ac5e13ba0 100644 --- a/types/emissary/index.d.ts +++ b/types/emissary/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for emissary // Project: https://github.com/atom/emissary -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/emojione/index.d.ts b/types/emojione/index.d.ts index 22f3f0b191..f343a7d3e3 100644 --- a/types/emojione/index.d.ts +++ b/types/emojione/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for emojione 2.2 // Project: https://github.com/Ranks/emojione -// Definitions by: Danilo Bargen +// Definitions by: Danilo Bargen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export as namespace emojione; diff --git a/types/engine.io-client/index.d.ts b/types/engine.io-client/index.d.ts index 0407c86fed..2f1d69a1d6 100644 --- a/types/engine.io-client/index.d.ts +++ b/types/engine.io-client/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for engine.io-client 3.1 // Project: https://github.com/socketio/engine.io-client -// Definitions by: KentarouTakeda +// Definitions by: KentarouTakeda // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/engine.io/engine.io-tests.ts b/types/engine.io/engine.io-tests.ts index 4199393b5d..1deaa5b5f2 100644 --- a/types/engine.io/engine.io-tests.ts +++ b/types/engine.io/engine.io-tests.ts @@ -38,7 +38,7 @@ attachOptions.handlePreflightRequest = (server, req, res) => { console.log(req.httpVersion); console.log(res.finished); }; -serverAttachOptions = Object.assign({}, serverOptions, attachOptions); +serverAttachOptions = { ...serverOptions, ...attachOptions }; console.log(engine.protocol); diff --git a/types/engine.io/index.d.ts b/types/engine.io/index.d.ts index 2d1be7643e..d0190ad625 100644 --- a/types/engine.io/index.d.ts +++ b/types/engine.io/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for engine.io 3.1 // Project: https://github.com/socketio/engine.io -// Definitions by: KentarouTakeda +// Definitions by: KentarouTakeda // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -46,7 +46,7 @@ declare namespace engine { /** * to allow connections to (['polling', 'websocket']) */ - transports?: engine.Transport[]; + transports?: Transport[]; /** * whether to allow transport upgrades (true) */ @@ -127,7 +127,7 @@ declare namespace engine { /** * Initializes the server */ - constructor(opts?: engine.ServerOptions); + constructor(opts?: ServerOptions); /** * Fired when a new connection is established. */ @@ -219,8 +219,8 @@ declare namespace engine { */ on(ev: "packet" | "packetCreate", fn: (packet: Packet) => void): this; } - function attach(http: net.Server, opyts?: engine.ServerAttachOptions): engine.Server; - function listen(port: number, opts?: engine.ServerOptions, fn?: () => void): engine.Server; + function attach(http: net.Server, opts?: ServerAttachOptions): Server; + function listen(port: number, opts?: ServerOptions, fn?: () => void): Server; const protocol: number; } diff --git a/types/enzyme/enzyme-tests.tsx b/types/enzyme/enzyme-tests.tsx index 6fe8edfd44..4087c539a7 100644 --- a/types/enzyme/enzyme-tests.tsx +++ b/types/enzyme/enzyme-tests.tsx @@ -35,7 +35,7 @@ function ShallowWrapperTest() { let boolVal: boolean; let stringVal: string; let numOrStringVal: number | string; - let elementWrapper: ShallowWrapper, {}>; + let elementWrapper: ShallowWrapper>; let statelessWrapper: ShallowWrapper; function test_props_state_inferring() { @@ -374,7 +374,7 @@ function ReactWrapperTest() { let domElement: Element; let boolVal: boolean; let stringVal: string; - let elementWrapper: ReactWrapper, {}>; + let elementWrapper: ReactWrapper>; let statelessWrapper: ReactWrapper; function test_prop_state_inferring() { diff --git a/types/enzyme/tslint.json b/types/enzyme/tslint.json index 3db14f85ea..1c1a051bd3 100644 --- a/types/enzyme/tslint.json +++ b/types/enzyme/tslint.json @@ -1 +1,8 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "dt-header": false, + "no-duplicate-imports": false + } +} diff --git a/types/errorhandler/index.d.ts b/types/errorhandler/index.d.ts index f9fcf71327..aa6664553b 100644 --- a/types/errorhandler/index.d.ts +++ b/types/errorhandler/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for errorhandler // Project: https://github.com/expressjs/errorhandler -// Definitions by: Santi Albo +// Definitions by: Santi Albo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/es6-promise/index.d.ts b/types/es6-promise/index.d.ts index 4af46edfa6..56e0682491 100644 --- a/types/es6-promise/index.d.ts +++ b/types/es6-promise/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for es6-promise // Project: https://github.com/jakearchibald/ES6-Promise -// Definitions by: François de Campredon , vvakame +// Definitions by: François de Campredon , vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Thenable { diff --git a/types/escape-html/index.d.ts b/types/escape-html/index.d.ts index fc81a2179a..52ad538e5e 100644 --- a/types/escape-html/index.d.ts +++ b/types/escape-html/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for escape-html // Project: https://github.com/component/escape-html -// Definitions by: Elisée MAURER +// Definitions by: Elisée MAURER // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/escape-string-regexp/index.d.ts b/types/escape-string-regexp/index.d.ts index 4e3ac47458..1ef18aedb1 100644 --- a/types/escape-string-regexp/index.d.ts +++ b/types/escape-string-regexp/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for escape-string-regexp // Project: https://github.com/sindresorhus/escape-string-regexp -// Definitions by: kruncher +// Definitions by: kruncher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/esri-leaflet-geocoder/esri-leaflet-geocoder-tests.ts b/types/esri-leaflet-geocoder/esri-leaflet-geocoder-tests.ts index 92eae70b0c..a79e8f068f 100644 --- a/types/esri-leaflet-geocoder/esri-leaflet-geocoder-tests.ts +++ b/types/esri-leaflet-geocoder/esri-leaflet-geocoder-tests.ts @@ -21,7 +21,7 @@ const gisDay = L.esri.Geocoding.featureLayerProvider({ searchFields: ['Name', 'Organization'], // Search these fields for text matches label: 'GIS Day Events', // Group suggestions under this header formatSuggestion(feature) { - return feature.properties.Name + ' - ' + feature.properties.Organization; // format suggestions like this. + return `${feature.properties.Name} - ${feature.properties.Organization}`; // format suggestions like this. } }); diff --git a/types/esri-leaflet-geocoder/index.d.ts b/types/esri-leaflet-geocoder/index.d.ts index 59040f5458..50c1ff779b 100644 --- a/types/esri-leaflet-geocoder/index.d.ts +++ b/types/esri-leaflet-geocoder/index.d.ts @@ -12,9 +12,9 @@ export = L; declare global { namespace L.esri.Geocoding { type GeosearchConstructor = new (options?: GeosearchObject) => Geosearch; - type Geosearch = GeosearchControl & leaflet.Evented; + type Geosearch = GeosearchControl & Evented; - interface GeosearchControl extends leaflet.Control { + interface GeosearchControl extends Control { clear(): this; clearSuggestions(): this; disable(): this; @@ -26,7 +26,7 @@ declare global { function geosearch(options?: GeosearchObject): Geosearch; interface GeosearchObject { - position?: leaflet.ControlPosition; + position?: ControlPosition; zoomToResult?: boolean; useMapBounds?: boolean | number; collapseAfterResult?: boolean; @@ -35,10 +35,10 @@ declare global { providers?: GeosearchProvider[]; placeholder?: string; title?: string; - searchBounds?: leaflet.LatLngBoundsExpression | null; + searchBounds?: LatLngBoundsExpression | null; } - class GeocodeService extends esriLeaflet.Service { + class GeocodeService extends Service { constructor(options?: GeocodeServiceOptions); geocode(): Geocode; suggest(): Suggest; @@ -47,12 +47,12 @@ declare global { function geocodeService(options?: GeocodeServiceOptions): GeocodeService; - interface GeocodeServiceOptions extends esriLeaflet.ServiceOptions { + interface GeocodeServiceOptions extends ServiceOptions { supportsSuggest?: boolean; } - class Geocode extends esriLeaflet.Task { - constructor(options?: esriLeaflet.TaskOptions | esriLeaflet.Service); + class Geocode extends Task { + constructor(options?: TaskOptions | Service); text(text: string): this; address(text: string): this; neighborhood(text: string): this; @@ -62,37 +62,37 @@ declare global { postal(text: string): this; country(text: string): this; category(text: string): this; - within(bounds: leaflet.LatLngBoundsExpression): this; - nearby(latlng: leaflet.LatLngExpression, distance: number): this; + within(bounds: LatLngBoundsExpression): this; + nearby(latlng: LatLngExpression, distance: number): this; run(callback: (error: any | undefined, results: { results: any[] }, response: any) => void, context?: any): this; } - function geocode(options?: esriLeaflet.TaskOptions | esriLeaflet.Service): Geocode; + function geocode(options?: TaskOptions | Service): Geocode; - class Suggest extends esriLeaflet.Task { - constructor(options?: esriLeaflet.TaskOptions | esriLeaflet.Service); + class Suggest extends Task { + constructor(options?: TaskOptions | Service); text(text: string): this; category(text: string): this; - within(bounds: leaflet.LatLngBoundsExpression): this; - nearby(latlng: leaflet.LatLngExpression, distance: number): this; + within(bounds: LatLngBoundsExpression): this; + nearby(latlng: LatLngExpression, distance: number): this; run(callback: (error: any | undefined, results: any, response: any) => void, context?: any): this; } - function suggest(options?: esriLeaflet.TaskOptions | esriLeaflet.Service): Suggest; + function suggest(options?: TaskOptions | Service): Suggest; - class ReverseGeocode extends esriLeaflet.Task { - constructor(options?: esriLeaflet.TaskOptions | esriLeaflet.Service); - latlng(latlng: leaflet.LatLngExpression): this; + class ReverseGeocode extends Task { + constructor(options?: TaskOptions | Service); + latlng(latlng: LatLngExpression): this; distance(distance: number): this; language(language: string): this; - run(callback: (error: any | undefined, results: { latlng: leaflet.LatLng; address: string; }, response: any) => void, context?: any): this; + run(callback: (error: any | undefined, results: { latlng: LatLng; address: string; }, response: any) => void, context?: any): this; } - function reverseGeocode(options?: esriLeaflet.TaskOptions | esriLeaflet.Service): ReverseGeocode; + function reverseGeocode(options?: TaskOptions | Service): ReverseGeocode; interface GeosearchProvider { - suggestions(text: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Task; - results(text: string, key: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Task; + suggestions(text: string, bounds: LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Task; + results(text: string, key: string, bounds: LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Task; } type GeosearchCallback = (error: any | undefined, results: any) => void; @@ -105,8 +105,8 @@ declare global { class ArcgisOnlineProvider extends GeocodeService implements GeosearchProvider { constructor(options?: ArcgisOnlineProviderOptions); - suggestions(text: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Suggest; - results(text: string, key: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Geocode; + suggestions(text: string, bounds: LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Suggest; + results(text: string, key: string, bounds: LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Geocode; } function arcgisOnlineProvider(options?: ArcgisOnlineProviderOptions): ArcgisOnlineProvider; @@ -119,8 +119,8 @@ declare global { class GeocodeServiceProvider extends GeocodeService implements GeosearchProvider { constructor(options?: GeocodeServiceProviderOptions); - suggestions(text: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Suggest; - results(text: string, key: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Geocode; + suggestions(text: string, bounds: LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Suggest; + results(text: string, key: string, bounds: LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Geocode; } function geocodeServiceProvider(options?: GeocodeServiceProviderOptions): GeocodeServiceProvider; @@ -129,10 +129,10 @@ declare global { url: string; } - class FeatureLayerProvider extends esriLeaflet.FeatureLayerService implements GeosearchProvider { + class FeatureLayerProvider extends FeatureLayerService implements GeosearchProvider { constructor(options?: FeatureLayerProviderOptions); - suggestions(text: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Query; - results(text: string, key: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Query; + suggestions(text: string, bounds: LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Query; + results(text: string, key: string, bounds: LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Query; } function featureLayerProvider(options?: FeatureLayerProviderOptions): FeatureLayerProvider; @@ -144,10 +144,10 @@ declare global { formatSuggestion?(featureInformation: any): string; } - class MapServiceProvider extends esriLeaflet.MapService implements GeosearchProvider { + class MapServiceProvider extends MapService implements GeosearchProvider { constructor(options?: MapServiceProviderOptions); - suggestions(text: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Find; - results(text: string, key: string, bounds: leaflet.LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): esriLeaflet.Query | esriLeaflet.Find; + suggestions(text: string, bounds: LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Find; + results(text: string, key: string, bounds: LatLngBoundsExpression | undefined | null, callback: GeosearchCallback): Query | Find; } function mapServiceProvider(options?: MapServiceProviderOptions): MapServiceProvider; @@ -162,16 +162,16 @@ declare global { interface ResultObject { text?: string; - bounds?: leaflet.LatLngBoundsExpression; - latlng?: leaflet.LatLngExpression; + bounds?: LatLngBoundsExpression; + latlng?: LatLngExpression; properties?: any; - geojson?: leaflet.GeoJSON; + geojson?: GeoJSON; [key: string]: any; } interface Results { - bounds: leaflet.LatLngBoundsExpression; - latlng: leaflet.LatLngExpression; + bounds: LatLngBoundsExpression; + latlng: LatLngExpression; results: ResultObject[]; } } diff --git a/types/esri-leaflet-geocoder/tslint.json b/types/esri-leaflet-geocoder/tslint.json index 3db14f85ea..fd2834499c 100644 --- a/types/esri-leaflet-geocoder/tslint.json +++ b/types/esri-leaflet-geocoder/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-object-literal-type-assertion": false + } +} diff --git a/types/evaporate/index.d.ts b/types/evaporate/index.d.ts index df34a35388..bf4b52aae3 100644 --- a/types/evaporate/index.d.ts +++ b/types/evaporate/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for EvaporateJS // Project: https://github.com/TTLabs/EvaporateJS -// Definitions by: Andrew Kuklewicz , Chris Rhoden +// Definitions by: Andrew Kuklewicz , Chris Rhoden // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = Evaporate; diff --git a/types/event-kit/index.d.ts b/types/event-kit/index.d.ts index 0e2efc1e65..74f270c40f 100644 --- a/types/event-kit/index.d.ts +++ b/types/event-kit/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for event-kit v1.2.0 // Project: https://github.com/atom/event-kit -// Definitions by: Vadim Macagon +// Definitions by: Vadim Macagon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = AtomEventKit; diff --git a/types/event-stream/index.d.ts b/types/event-stream/index.d.ts index 55624833b4..f7b10b34a2 100644 --- a/types/event-stream/index.d.ts +++ b/types/event-stream/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for event-stream v3.3.2 // Project: https://github.com/dominictarr/event-stream -// Definitions by: David Gardiner +// Definitions by: David Gardiner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/evernote/index.d.ts b/types/evernote/index.d.ts index 6a28d2e627..65765259c3 100644 --- a/types/evernote/index.d.ts +++ b/types/evernote/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for evernote v 1.25.8 // Project: https://www.npmjs.com/package/evernote -// Definitions by: Zachary Collins +// Definitions by: Zachary Collins // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Thrift from 'thrift'; diff --git a/types/expect/index.d.ts b/types/expect/index.d.ts index 8e3422a4d9..a37e8366f1 100644 --- a/types/expect/index.d.ts +++ b/types/expect/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Expect 1.20 // Project: https://github.com/mjackson/expect -// Definitions by: Justin Reidy , Risto Keravuori +// Definitions by: Justin Reidy , Risto Keravuori // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace expect { diff --git a/types/expect/tslint.json b/types/expect/tslint.json index 3db14f85ea..420d80e8f3 100644 --- a/types/expect/tslint.json +++ b/types/expect/tslint.json @@ -1 +1,8 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-void-expression": false, + "no-duplicate-imports": false + } +} diff --git a/types/express-brute-memcached/index.d.ts b/types/express-brute-memcached/index.d.ts index 8930045ee3..dd7f2d2573 100644 --- a/types/express-brute-memcached/index.d.ts +++ b/types/express-brute-memcached/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for express-brute-memcached // Project: https://github.com/AdamPflug/express-brute-memcached -// Definitions by: Cyril Schumacher +// Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** diff --git a/types/express-brute-mongo/index.d.ts b/types/express-brute-mongo/index.d.ts index 9714fedd5d..33ea0adcb5 100644 --- a/types/express-brute-mongo/index.d.ts +++ b/types/express-brute-mongo/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for express-brute-mongo // Project: https://github.com/auth0/express-brute-mongo -// Definitions by: Cyril Schumacher +// Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/express-brute/index.d.ts b/types/express-brute/index.d.ts index b6a60d4247..d948eb7bf6 100644 --- a/types/express-brute/index.d.ts +++ b/types/express-brute/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for express-brute // Project: https://github.com/AdamPflug/express-brute -// Definitions by: Cyril Schumacher +// Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/express-debug/index.d.ts b/types/express-debug/index.d.ts index 546e26fbf4..b5cfb43c97 100644 --- a/types/express-debug/index.d.ts +++ b/types/express-debug/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for express-debug 1.1.1 // Project: https://github.com/devoidfury/express-debug -// Definitions by: Federico Bond +// Definitions by: Federico Bond // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/express-flash-2/index.d.ts b/types/express-flash-2/index.d.ts index 5c8960277f..f5bd168191 100644 --- a/types/express-flash-2/index.d.ts +++ b/types/express-flash-2/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for express-flash-2 1.0 // Project: https://github.com/jack2gs/express-flash-2 -// Definitions by: Matheus Salmi +// Definitions by: Matheus Salmi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Express { diff --git a/types/express-jwt/index.d.ts b/types/express-jwt/index.d.ts index ec7aeb64f7..300e20a311 100644 --- a/types/express-jwt/index.d.ts +++ b/types/express-jwt/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for express-jwt // Project: https://www.npmjs.org/package/express-jwt -// Definitions by: Wonshik Kim , Kacper Polak , Sl1MBoy +// Definitions by: Wonshik Kim , Kacper Polak , Sl1MBoy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import express = require('express'); diff --git a/types/express-minify/index.d.ts b/types/express-minify/index.d.ts index f6f3d895b3..c4fe760c58 100644 --- a/types/express-minify/index.d.ts +++ b/types/express-minify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for express-minify v0.1.6 // Project: https://github.com/SummerWish/express-minify -// Definitions by: Borislav Zhivkov +// Definitions by: Borislav Zhivkov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/express-myconnection/index.d.ts b/types/express-myconnection/index.d.ts index 404db9991f..1f789eed09 100644 --- a/types/express-myconnection/index.d.ts +++ b/types/express-myconnection/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for express-myconnection v1.0.4 // Project: https://www.npmjs.org/package/express-myconnection -// Definitions by: Michael Ferris +// Definitions by: Michael Ferris // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/express-openapi/index.d.ts b/types/express-openapi/index.d.ts index c60c4f0a8a..cfb38fee5c 100644 --- a/types/express-openapi/index.d.ts +++ b/types/express-openapi/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for express-openapi 0.11.x // Project: https://github.com/kogosoftwarellc/express-openapi -// Definitions by: TANAKA Koichi +// Definitions by: TANAKA Koichi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/express-sanitized/index.d.ts b/types/express-sanitized/index.d.ts index bbd750ebe3..abb6be788a 100644 --- a/types/express-sanitized/index.d.ts +++ b/types/express-sanitized/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for express-sanitized 0.5 // Project: https://github.com/askhogan/express-sanitized -// Definitions by: Chris Barth +// Definitions by: Chris Barth // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as express from "express"; diff --git a/types/express-serve-static-core/index.d.ts b/types/express-serve-static-core/index.d.ts index 5e4491c9a1..d03194b119 100644 --- a/types/express-serve-static-core/index.d.ts +++ b/types/express-serve-static-core/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Express 4.x // Project: http://expressjs.com -// Definitions by: Boris Yankov , Michał Lytek , Kacper Polak +// Definitions by: Boris Yankov , Michał Lytek , Kacper Polak // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // This extracts the core definitions from express to prevent a circular dependency between express and serve-static /// diff --git a/types/express-session/express-session-tests.ts b/types/express-session/express-session-tests.ts index e348086a72..fdb77caedb 100644 --- a/types/express-session/express-session-tests.ts +++ b/types/express-session/express-session-tests.ts @@ -29,8 +29,8 @@ app.use((req, res, next) => { if (sess.views) { sess.views++; res.setHeader('Content-Type', 'text/html'); - res.write('

    views: ' + sess.views + '

    '); - res.write('

    expires in: ' + (sess.cookie.maxAge / 1000) + 's

    '); + res.write(`

    views: ${sess.views}

    `); + res.write(`

    expires in: ${(sess.cookie.maxAge / 1000)}s

    `); res.end(); } else { sess.views = 1; diff --git a/types/express-session/index.d.ts b/types/express-session/index.d.ts index ac7ea271f9..1a4d473a44 100644 --- a/types/express-session/index.d.ts +++ b/types/express-session/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for express-session 1.15 // Project: https://www.npmjs.org/package/express-session -// Definitions by: Hiroki Horiuchi +// Definitions by: Hiroki Horiuchi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Definitions by: Jacob Bogers +// Definitions by: Wonshik Kim // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/express/index.d.ts b/types/express/index.d.ts index d48d58c0c9..e127d6d5ed 100644 --- a/types/express/index.d.ts +++ b/types/express/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Express 4.x // Project: http://expressjs.com -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/extjs/index.d.ts b/types/extjs/index.d.ts index 5beb1c3f89..224cd37eba 100644 --- a/types/extjs/index.d.ts +++ b/types/extjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ExtJS 4.2.1 // Project: http://www.sencha.com/products/extjs/ -// Definitions by: Brian Kotek +// Definitions by: Brian Kotek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Ext { diff --git a/types/f1/f1-tests.ts b/types/f1/f1-tests.ts index 0934b097e3..18516809b4 100644 --- a/types/f1/f1-tests.ts +++ b/types/f1/f1-tests.ts @@ -23,7 +23,7 @@ ui.states({ } }); -ui.transitions( [ +ui.transitions([ { from: 'idle', to: 'rollOver', animation: { duration: 0.25 } }, { from: 'rollOver', to: 'idle', animation: { duration: 0.1 } } ]); diff --git a/types/fabric/fabric-tests.ts b/types/fabric/fabric-tests.ts index 5e51bb8035..2f7d1a7d37 100644 --- a/types/fabric/fabric-tests.ts +++ b/types/fabric/fabric-tests.ts @@ -63,7 +63,7 @@ function sample2() { }); canvas1.add(dot); } - results1.innerHTML = 'Regular rendering of 100 elements in ' + stopTimer() + 'ms'; + results1.innerHTML = `Regular rendering of 100 elements in ${stopTimer()}ms`; // // Rendering canvas #2 @@ -82,7 +82,7 @@ function sample2() { canvas2.add(dot); } canvas2.renderAll(); // Note, calling renderAll() is important in this case - results2.innerHTML = 'Rendering 1000 elements using canvas.renderOnAddRemove = false in ' + stopTimer() + 'ms'; + results2.innerHTML = `Rendering 1000 elements using canvas.renderOnAddRemove = false in ${stopTimer()}ms`; } function sample3() { @@ -507,7 +507,7 @@ function sample8() { const id: any = element.id; const match = /\d+$/.exec(id); if (match) { - fabric.loadSVGFromURL('../assets/' + match[0] + '.svg', (objects, options) => { + fabric.loadSVGFromURL(`../assets/${match[0]}.svg`, (objects, options) => { const loadedObject = fabric.util.groupSVGElements(objects, options); loadedObject.set({ @@ -778,8 +778,13 @@ function sample8() { canvas.freeDrawingColor = drawingColorEl.value; canvas.freeDrawingLineWidth = parseInt(drawingLineWidthEl.value, 10) || 1; - const text = 'Lorem ipsum dolor sit amet,\nconsectetur adipisicing elit,\nsed do eiusmod tempor incididunt\nut labore et dolore magna aliqua.\n' + - 'Ut enim ad minim veniam,\nquis nostrud exercitation ullamco\nlaboris nisi ut aliquip ex ea commodo consequat.'; + const text = `Lorem ipsum dolor sit amet, +consectetur adipisicing elit, +sed do eiusmod tempor incididunt +ut labore et dolore magna aliqua. +Ut enim ad minim veniam, +quis nostrud exercitation ullamco +laboris nisi ut aliquip ex ea commodo consequat.`; document.getElementById('add-text').onclick = () => { const textSample = new fabric.Text(text.slice(0, getRandomInt(0, text.length)), { diff --git a/types/fabric/index.d.ts b/types/fabric/index.d.ts index 96c4ec4e5a..c24a413b40 100644 --- a/types/fabric/index.d.ts +++ b/types/fabric/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for FabricJS 1.5 // Project: http://fabricjs.com/ -// Definitions by: Oliver Klemencic , Joseph Livecchi , Michael Randolph +// Definitions by: Oliver Klemencic , Joseph Livecchi , Michael Randolph // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export as namespace fabric; diff --git a/types/fabric/tslint.json b/types/fabric/tslint.json index 73c89a8576..8697a364c3 100644 --- a/types/fabric/tslint.json +++ b/types/fabric/tslint.json @@ -1,10 +1,12 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs "adjacent-overload-signatures": false, "ban-types": false, "interface-name": false, "no-empty-interface": false, + "space-within-parens": false, "strict-export-declare-modifiers": false, "unified-signatures": false } diff --git a/types/facebook-js-sdk/index.d.ts b/types/facebook-js-sdk/index.d.ts index 300eeb3ec0..c380ee004d 100644 --- a/types/facebook-js-sdk/index.d.ts +++ b/types/facebook-js-sdk/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for the Facebook Javascript SDK 2.8 // Project: https://developers.facebook.com/docs/javascript -// Definitions by: Amrit Kahlon +// Definitions by: Amrit Kahlon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import fb = facebook; diff --git a/types/facebook-pixel/index.d.ts b/types/facebook-pixel/index.d.ts index ff01fb0ddc..3ed7934abc 100644 --- a/types/facebook-pixel/index.d.ts +++ b/types/facebook-pixel/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for the Facebook Pixel Tag API // Project: https://developers.facebook.com/docs/ads-for-websites/tag-api/ -// Definitions by: Noctis Hsu +// Definitions by: Noctis Hsu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var fbq:facebook.Pixel.Event; diff --git a/types/faker/index.d.ts b/types/faker/index.d.ts index ccca40e51a..eda944d515 100644 --- a/types/faker/index.d.ts +++ b/types/faker/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for faker v4.1.0 // Project: http://marak.com/faker.js/ -// Definitions by: Ben Swartz , Bas Pennings , Yuki Kokubun +// Definitions by: Ben Swartz , Bas Pennings , Yuki Kokubun // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var fakerStatic: Faker.FakerStatic; diff --git a/types/falcor-express/index.d.ts b/types/falcor-express/index.d.ts index c8a65e9f6c..172813baa1 100644 --- a/types/falcor-express/index.d.ts +++ b/types/falcor-express/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for falcor-express 0.1.2 // Project: https://github.com/Netflix/falcor-express -// Definitions by: Quramy +// Definitions by: Quramy // Definitions: https://github.com/borisyankov/DefinitelyTyped /// diff --git a/types/falcor-http-datasource/index.d.ts b/types/falcor-http-datasource/index.d.ts index e1e76ba043..1b57c4329f 100644 --- a/types/falcor-http-datasource/index.d.ts +++ b/types/falcor-http-datasource/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for falcor-http-datasource 0.1.3 // Project: https://github.com/Netflix/falcor-http-datasource -// Definitions by: Quramy +// Definitions by: Quramy // Definitions: https://github.com/borisyankov/DefinitelyTyped /// diff --git a/types/falcor-json-graph/index.d.ts b/types/falcor-json-graph/index.d.ts index d2bb47563b..359e2976c2 100644 --- a/types/falcor-json-graph/index.d.ts +++ b/types/falcor-json-graph/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for falcor-json-graph 1.1.7 // Project: https://github.com/Netflix/falcor-json-graph -// Definitions by: Quramy +// Definitions by: Quramy // Definitions: https://github.com/borisyankov/DefinitelyTyped export = FalcorJsonGraph; diff --git a/types/falcor-router/index.d.ts b/types/falcor-router/index.d.ts index daef26f379..38da98a0a7 100644 --- a/types/falcor-router/index.d.ts +++ b/types/falcor-router/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for falcor-router 0.4.0 // Project: https://github.com/Netflix/falcor-router -// Definitions by: Quramy , cdhgee +// Definitions by: Quramy , cdhgee // Definitions: https://github.com/borisyankov/DefinitelyTyped /// diff --git a/types/falcor/index.d.ts b/types/falcor/index.d.ts index 463683f40f..683f040d3f 100644 --- a/types/falcor/index.d.ts +++ b/types/falcor/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for falcor 0.1 // Project: http://netflix.github.io/falcor/ -// Definitions by: Quramy +// Definitions by: Quramy // Definitions: https://github.com/borisyankov/DefinitelyTyped import { Path, PathSet, PathValue, JSONEnvelope, JSONGraph, JSONGraphEnvelope } from 'falcor-json-graph'; @@ -231,21 +231,21 @@ export interface Thenable { // Observable ///////////////////////////////////////////////////// -export class Observable{ +export class Observable { /** * The forEach method is a synonym for {@link Observable.prototype.subscribe} and triggers the execution of the Observable, causing the values within to be pushed to a callback. * An Observable is like a pipe of water that is closed. * When forEach is called, we open the valve and the values within are pushed at us. * These values can be received using either callbacks or an {@link Observer} object. */ - forEach(onNext?: ObservableOnNextCallback, onError?: ObservableOnErrorCallback , onCompleted?: ObservableOnCompletedCallback ): Subscription; + forEach(onNext?: ObservableOnNextCallback, onError?: ObservableOnErrorCallback , onCompleted?: ObservableOnCompletedCallback): Subscription; /** * The subscribe method is a synonym for {@link Observable.prototype.forEach} and triggers the execution of the Observable, causing the values within to be pushed to a callback. * An Observable is like a pipe of water that is closed. * When forEach is called, we open the valve and the values within are pushed at us. These values can be received using either callbacks or an {@link Observer} object. */ - subscribe(onNext?: ObservableOnNextCallback, onError?: ObservableOnErrorCallback , onCompleted?: ObservableOnCompletedCallback ): Subscription; + subscribe(onNext?: ObservableOnNextCallback, onError?: ObservableOnErrorCallback , onCompleted?: ObservableOnCompletedCallback): Subscription; } /** diff --git a/types/famous/index.d.ts b/types/famous/index.d.ts index 2c1ed62ed3..0dcbc82206 100644 --- a/types/famous/index.d.ts +++ b/types/famous/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Famous Engine v0.7.1 // Project: http://famous.org/ -// Definitions by: Boris Vasilenko +// Definitions by: Boris Vasilenko // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "famous/core" { diff --git a/types/fancybox/index.d.ts b/types/fancybox/index.d.ts index cb37de2098..b2e563c367 100644 --- a/types/fancybox/index.d.ts +++ b/types/fancybox/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for fancyBox 2.1 // Project: https://github.com/fancyapps/fancyBox -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/fetch-mock/fetch-mock-tests.ts b/types/fetch-mock/fetch-mock-tests.ts index 02e360026e..cfd595cb16 100644 --- a/types/fetch-mock/fetch-mock-tests.ts +++ b/types/fetch-mock/fetch-mock-tests.ts @@ -1,5 +1,4 @@ import * as fetchMock from "fetch-mock"; -import { MockResponse } from "fetch-mock"; fetchMock.mock("http://test.com", 200); fetchMock.mock(/test\.com/, 200); diff --git a/types/file-type/index.d.ts b/types/file-type/index.d.ts index a3de4e99e8..c7f95c256e 100644 --- a/types/file-type/index.d.ts +++ b/types/file-type/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for file-type 5.2 // Project: https://github.com/sindresorhus/file-type -// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk +// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk // BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/filenamify/index.d.ts b/types/filenamify/index.d.ts index 981b04443d..99eb7f89f7 100644 --- a/types/filenamify/index.d.ts +++ b/types/filenamify/index.d.ts @@ -9,7 +9,7 @@ declare namespace filenamify { interface Options { replacement: string; } - function path(input: string, options?: filenamify.Options): string; + function path(input: string, options?: Options): string; } export = filenamify; diff --git a/types/find-up/index.d.ts b/types/find-up/index.d.ts index d882992283..e83510cac7 100644 --- a/types/find-up/index.d.ts +++ b/types/find-up/index.d.ts @@ -8,7 +8,7 @@ export = findUp; declare function findUp(filename: string | string[], options?: findUp.Options): Promise; declare namespace findUp { - function sync(filename: string | string[], options?: findUp.Options): string | null; + function sync(filename: string | string[], options?: Options): string | null; interface Options { cwd?: string; diff --git a/types/fingerprintjs2/fingerprintjs2-tests.ts b/types/fingerprintjs2/fingerprintjs2-tests.ts index 172dc1b801..d295ab7aab 100644 --- a/types/fingerprintjs2/fingerprintjs2-tests.ts +++ b/types/fingerprintjs2/fingerprintjs2-tests.ts @@ -3,7 +3,7 @@ function defaultCallback(result: string, components: [{ key: string, value: stri } function test_default_settings() { - const fingerprint = new Fingerprint2().get( defaultCallback); + const fingerprint = new Fingerprint2().get(defaultCallback); } function test_get_exclude_swfContainerId() { diff --git a/types/firebase-client/index.d.ts b/types/firebase-client/index.d.ts index b766fc2478..fe5dd5b9e7 100644 --- a/types/firebase-client/index.d.ts +++ b/types/firebase-client/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Firebase Client 0.1.0 // Project: https://www.github.com/jpstevens/firebase-client -// Definitions by: Andrew Breen +// Definitions by: Andrew Breen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Q from "q"; diff --git a/types/firebase/index.d.ts b/types/firebase/index.d.ts index 132973e916..af121a0d02 100644 --- a/types/firebase/index.d.ts +++ b/types/firebase/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Firebase API 2.4.1 // Project: https://www.firebase.com/docs/javascript/firebase -// Definitions by: Vincent Botone , Shin1 Kashimura , Sebastien Dubois , Szymon Stasik +// Definitions by: Vincent Botone , Shin1 Kashimura , Sebastien Dubois , Szymon Stasik // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface FirebaseAuthResult { diff --git a/types/firebird/index.d.ts b/types/firebird/index.d.ts index ad1093ef55..430a3b3b60 100644 --- a/types/firebird/index.d.ts +++ b/types/firebird/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for firebird 0.1 // Project: https://github.com/xdenser/node-firebird-libfbclient -// Definitions by: Yasushi Kato +// Definitions by: Yasushi Kato // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/firefox/index.d.ts b/types/firefox/index.d.ts index 95b61cbb6c..917280a158 100644 --- a/types/firefox/index.d.ts +++ b/types/firefox/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Mozilla Web API // Project: https://developer.mozilla.org/en-US/docs/Web/API -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // required lib.d.ts diff --git a/types/firmata/index.d.ts b/types/firmata/index.d.ts index 8f0457d46e..b89402b9d4 100644 --- a/types/firmata/index.d.ts +++ b/types/firmata/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for firmata.js 0.15 // Project: https://github.com/firmata/firmata.js -// Definitions by: Troy W. +// Definitions by: Troy W. // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/first-mate/index.d.ts b/types/first-mate/index.d.ts index e46811aa85..8087fe06f4 100644 --- a/types/first-mate/index.d.ts +++ b/types/first-mate/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for first-mate v4.1.7 // Project: https://github.com/atom/first-mate/ -// Definitions by: Vadim Macagon +// Definitions by: Vadim Macagon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/flatbuffers/index.d.ts b/types/flatbuffers/index.d.ts index 4f75a7cc30..44455a1ee0 100644 --- a/types/flatbuffers/index.d.ts +++ b/types/flatbuffers/index.d.ts @@ -572,7 +572,7 @@ declare global { * @param {number} offset * @returns {flatbuffers.Table} */ - __union(t: T, offset: number): T; + __union(t: T, offset: number): T; /** * Create a JavaScript string from UTF-8 data stored inside the FlatBuffer. diff --git a/types/flatbuffers/tslint.json b/types/flatbuffers/tslint.json index 3db14f85ea..26bcea6634 100644 --- a/types/flatbuffers/tslint.json +++ b/types/flatbuffers/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false + } +} diff --git a/types/flight/index.d.ts b/types/flight/index.d.ts index da88eaa53d..b3e487064e 100644 --- a/types/flight/index.d.ts +++ b/types/flight/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Flight 1.1.4 // Project: http://flightjs.github.com/flight/ -// Definitions by: Jonathan Hedrén +// Definitions by: Jonathan Hedrén // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index 7a660d1767..e1380dc78e 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for node-fluent-ffmpeg 2.1 // Project: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg -// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk , DingWeizhe +// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk , DingWeizhe // Definitions: https://github.com/DefinitelyType/DefinitelyTyped /// diff --git a/types/flux/index.d.ts b/types/flux/index.d.ts index 096c9516e6..9a95368afb 100644 --- a/types/flux/index.d.ts +++ b/types/flux/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for Flux 3.1 // Project: http://facebook.github.io/flux/ -// Definitions by: Steve Baker -// Giedrius Grabauskas +// Definitions by: Steve Baker +// Giedrius Grabauskas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/fm-websync/fm-websync-tests.ts b/types/fm-websync/fm-websync-tests.ts index 6bdfd5de95..4501ee784c 100644 --- a/types/fm-websync/fm-websync-tests.ts +++ b/types/fm-websync/fm-websync-tests.ts @@ -1,19 +1,19 @@ -const client = fm.websync.client.initialize( { +const client = fm.websync.client.initialize({ requestUrl: "", - onSuccess: args => console.log( `Init success: {args.clientId}` ), - onFailure: args => console.log( `Init failure: {args.clientId}` ), - onComplete: args => console.log( `Init complete: {args.clientId}` ) -} ); + onSuccess: args => console.log(`Init success: {args.clientId}`), + onFailure: args => console.log(`Init failure: {args.clientId}`), + onComplete: args => console.log(`Init complete: {args.clientId}`) +}); -client.subscribe( { +client.subscribe({ channel: "/my/channel", - onReceive: args => console.log( `Receive data: {args.data}` ), - onFailure: args => console.log( `Subscribe failure: {args.data}` ), - onComplete: args => console.log( `Subscribe complete` ) -} ); + onReceive: args => console.log(`Receive data: {args.data}`), + onFailure: args => console.log(`Subscribe failure: {args.data}`), + onComplete: args => console.log(`Subscribe complete`) +}); -client.disconnect( { - onSuccess: args => console.log( `Disconnect success: {args.clientId}` ), - onFailure: args => console.log( `Disconnect failure: {args.clientId}` ), - onComplete: args => console.log( `Disconnect complete: {args.clientId}` ) -} ); +client.disconnect({ + onSuccess: args => console.log(`Disconnect success: {args.clientId}`), + onFailure: args => console.log(`Disconnect failure: {args.clientId}`), + onComplete: args => console.log(`Disconnect complete: {args.clientId}`) +}); diff --git a/types/fm-websync/index.d.ts b/types/fm-websync/index.d.ts index 1e1abc2083..ef5d51d64b 100644 --- a/types/fm-websync/index.d.ts +++ b/types/fm-websync/index.d.ts @@ -253,7 +253,7 @@ declare namespace fm { /** * Subscribers extension. The active subscribed clients on the just-subscribed channel(s). */ - subscribedClients: fm.websync.subscribedClient[]; + subscribedClients: subscribedClient[]; } interface subscribeCompleteArgs extends baseResponseArgs { @@ -281,7 +281,7 @@ declare namespace fm { /** * The singleton client. */ - client: fm.websync.client; + client: client; /** * The ID of the singleton client. @@ -356,14 +356,14 @@ declare namespace fm { /** * Details about the client publishing the data. */ - publishingClient: fm.websync.publishingClient; + publishingClient: publishingClient; } interface subscribersChangeArgs extends baseResponseArgs { /** * The details of the change that occurred. */ - change?: fm.websync.subscribersChange; + change?: subscribersChange; /** * The channel on which the change occurred. @@ -387,7 +387,7 @@ declare namespace fm { /** * The clients who subscribed to or unsubscribed from the channel. */ - clients: fm.websync.subscribedClient[]; + clients: subscribedClient[]; /** * The type of the change, either "subscribe" or "unsubscribe". @@ -493,7 +493,7 @@ declare namespace fm { * This method should only be called from the callback specified by onSreamFailure and only if the args.willReconnect flag is set to false. * Otherwise, the client will reconnect automatically. */ - reconnect( config?: connectConfig ): client; + reconnect(config?: connectConfig): client; /** * Subscribes the client to receive messages on one or more channels. diff --git a/types/forge-di/index.d.ts b/types/forge-di/index.d.ts index 90d50bfdfb..87814004d4 100644 --- a/types/forge-di/index.d.ts +++ b/types/forge-di/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for forge-di v0.9.5 // Project: https://github.com/nkohari/forge -// Definitions by: Adam Carr +// Definitions by: Adam Carr // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/form-data/form-data-tests.ts b/types/form-data/form-data-tests.ts index 526fb5bce9..86f2a49937 100644 --- a/types/form-data/form-data-tests.ts +++ b/types/form-data/form-data-tests.ts @@ -72,7 +72,7 @@ import * as ImportUsingES6Syntax from 'form-data'; const buffer = new Buffer(''); const options = { - header: CRLF + '--' + form.getBoundary() + CRLF + 'X-Custom-Header: 123' + CRLF + CRLF, + header: `${CRLF}--${form.getBoundary()}${CRLF}X-Custom-Header: 123${CRLF}${CRLF}`, knownLength: 1 }; @@ -114,7 +114,8 @@ import * as ImportUsingES6Syntax from 'form-data'; request.post({ url: 'http://service.com/upload', formData }, (err, httpResponse, body) => { if (err) { - return console.error('upload failed:', err); + console.error('upload failed:', err); + return; } console.log('Upload successful! Server responded with:', body); }); diff --git a/types/format-unicorn/index.d.ts b/types/format-unicorn/index.d.ts index 0890597b96..932e426091 100644 --- a/types/format-unicorn/index.d.ts +++ b/types/format-unicorn/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for format-unicorn 1.1 // Project: https://github.com/tallesl/format-unicorn -// Definitions by: kruncher +// Definitions by: kruncher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface String { diff --git a/types/fossil-delta/index.d.ts b/types/fossil-delta/index.d.ts index c72e914df6..98ab4cc600 100644 --- a/types/fossil-delta/index.d.ts +++ b/types/fossil-delta/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for fossil-delta 0.2.5 // Project: https://github.com/dchest/fossil-delta-js -// Definitions by: Endel Dreyer +// Definitions by: Endel Dreyer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/foundation-sites/index.d.ts b/types/foundation-sites/index.d.ts index 7209a9060f..e9f42f6db5 100644 --- a/types/foundation-sites/index.d.ts +++ b/types/foundation-sites/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Foundation Sites v6.1.1 // Project: http://foundation.zurb.com/ -// Definitions by: Sam Vloeberghs +// Definitions by: Sam Vloeberghs // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/foundation/index.d.ts b/types/foundation/index.d.ts index 73608604b5..14523084ac 100644 --- a/types/foundation/index.d.ts +++ b/types/foundation/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Foundation v5.5.1 // Project: http://foundation.zurb.com/ -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/fpsmeter/index.d.ts b/types/fpsmeter/index.d.ts index 25bc6296d2..57e6b4515d 100644 --- a/types/fpsmeter/index.d.ts +++ b/types/fpsmeter/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for FPSmeter v0.3.0 // Project: http://darsa.in/fpsmeter/ -// Definitions by: Aaron Lampros +// Definitions by: Aaron Lampros // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface FPSMeterOptions { diff --git a/types/freedom/index.d.ts b/types/freedom/index.d.ts index cc425dc733..c2fb38deff 100644 --- a/types/freedom/index.d.ts +++ b/types/freedom/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for freedom v0.6.29 // Project: https://github.com/freedomjs/freedom -// Definitions by: Jonathan Pevarnek +// Definitions by: Jonathan Pevarnek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace freedom { diff --git a/types/fresh/fresh-tests.ts b/types/fresh/fresh-tests.ts index bc62065b07..7d452e6db8 100644 --- a/types/fresh/fresh-tests.ts +++ b/types/fresh/fresh-tests.ts @@ -2,8 +2,8 @@ import fresh = require('fresh'); import * as http from 'http'; -let reqHeaders = { 'if-none-match': '"foo"' }; -let resHeaders = { etag: '"bar"' }; +const reqHeaders = { 'if-none-match': '"foo"' }; +const resHeaders = { etag: '"bar"' }; // $ExpectType boolean fresh(reqHeaders, resHeaders); diff --git a/types/frisby/index.d.ts b/types/frisby/index.d.ts index 449a73ead0..523c72e6db 100644 --- a/types/frisby/index.d.ts +++ b/types/frisby/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Frisby v0.8.5 // Project: https://github.com/vlucas/frisby -// Definitions by: Johnny Li +// Definitions by: Johnny Li // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/from2/from2-tests.ts b/types/from2/from2-tests.ts index 8ad402c2ed..ee6902b9cf 100644 --- a/types/from2/from2-tests.ts +++ b/types/from2/from2-tests.ts @@ -3,7 +3,8 @@ import from = require('from2'); function fromString(str: string) { return from((size, next) => { if (str.length <= 0) { - return next(null, null); + next(null, null); + return; } const chunk = str.slice(0, size); diff --git a/types/fs-finder/index.d.ts b/types/fs-finder/index.d.ts index 28073d06ba..10de7a7b0b 100644 --- a/types/fs-finder/index.d.ts +++ b/types/fs-finder/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for fs-finder v1.8.0 // Project: https://github.com/sakren/node-fs-finder -// Definitions by: Michael Zabka +// Definitions by: Michael Zabka // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace FsFinder { diff --git a/types/fullname/index.d.ts b/types/fullname/index.d.ts index 0d3fba6c4b..d39da6f6db 100644 --- a/types/fullname/index.d.ts +++ b/types/fullname/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for fullname v2.1.0 // Project: https://www.npmjs.com/package/fullname -// Definitions by: Klaus Reimer +// Definitions by: Klaus Reimer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/fuse/index.d.ts b/types/fuse/index.d.ts index 996eaacba2..9442e43490 100644 --- a/types/fuse/index.d.ts +++ b/types/fuse/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Fuse.js 2.5.0 // Project: https://github.com/krisk/Fuse -// Definitions by: Greg Smith +// Definitions by: Greg Smith // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class Fuse { diff --git a/types/gamequery/index.d.ts b/types/gamequery/index.d.ts index e45e7f761c..0b232d0697 100644 --- a/types/gamequery/index.d.ts +++ b/types/gamequery/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for gameQuery 0.7.0 // Project: http://gamequeryjs.com/ -// Definitions by: David Laubreiter +// Definitions by: David Laubreiter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/gandi-livedns/index.d.ts b/types/gandi-livedns/index.d.ts index 8c2ef60e24..574b0ca916 100644 --- a/types/gandi-livedns/index.d.ts +++ b/types/gandi-livedns/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Gandi LiveDNS // Project: http://doc.livedns.gandi.net/ -// Definitions by: Xavier Stouder +// Definitions by: Xavier Stouder // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Zone { diff --git a/types/gapi.auth2/gapi.auth2-tests.ts b/types/gapi.auth2/gapi.auth2-tests.ts index 75d35737df..16818e414e 100644 --- a/types/gapi.auth2/gapi.auth2-tests.ts +++ b/types/gapi.auth2/gapi.auth2-tests.ts @@ -148,7 +148,7 @@ function makeApiCall() { }).then((resp) => { const p = document.createElement('p'); const name = resp.result.names[0].givenName; - p.appendChild(document.createTextNode('Hello, ' + name + '!')); + p.appendChild(document.createTextNode(`Hello, ${name}!`)); document.getElementById('content').appendChild(p); }); } diff --git a/types/gapi.auth2/tslint.json b/types/gapi.auth2/tslint.json index 5cd702e55e..30a0f2e5b0 100644 --- a/types/gapi.auth2/tslint.json +++ b/types/gapi.auth2/tslint.json @@ -3,6 +3,8 @@ "rules": { "indent": { "options": [true, "spaces", 2] - } + }, + // TODO + "no-mergeable-namespace": false } } diff --git a/types/generic-pool/generic-pool-tests.ts b/types/generic-pool/generic-pool-tests.ts index f990f19a72..970e83d870 100644 --- a/types/generic-pool/generic-pool-tests.ts +++ b/types/generic-pool/generic-pool-tests.ts @@ -7,7 +7,7 @@ class Connection { const factory = { create: (): Promise => { return new Promise(resolve => { - let conn = new Connection(); + const conn = new Connection(); resolve(conn); }); }, @@ -24,7 +24,7 @@ const factory = { } }; -let opts = { +const opts = { max: 10, min: 2, maxWaitingClients: 2, @@ -39,7 +39,7 @@ let opts = { idleTimeoutMillis: 5000 }; -let pool = genericPool.createPool(factory, opts); +const pool = genericPool.createPool(factory, opts); pool.acquire() .then((conn: Connection) => { diff --git a/types/generic-pool/tslint.json b/types/generic-pool/tslint.json index 3db14f85ea..26a0c302a8 100644 --- a/types/generic-pool/tslint.json +++ b/types/generic-pool/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-void-expression": false + } +} diff --git a/types/geojson/index.d.ts b/types/geojson/index.d.ts index 9902b974cd..acee02d863 100644 --- a/types/geojson/index.d.ts +++ b/types/geojson/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for GeoJSON Format Specification Revision 1.0 // Project: http://geojson.org/ -// Definitions by: Jacob Bruun +// Definitions by: Jacob Bruun // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export as namespace GeoJSON; diff --git a/types/glidejs/index.d.ts b/types/glidejs/index.d.ts index d6ceea389a..59a0264d81 100644 --- a/types/glidejs/index.d.ts +++ b/types/glidejs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Glide.js v1.0.6 // Project: http://glide.jedrzejchalubek.com/ -// Definitions by: Milan Jaros +// Definitions by: Milan Jaros // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/glob-expand/index.d.ts b/types/glob-expand/index.d.ts index 65f88983c1..977a985e5e 100644 --- a/types/glob-expand/index.d.ts +++ b/types/glob-expand/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for glob-expand // Project: https://github.com/anodynos/node-glob-expand -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/glob/index.d.ts b/types/glob/index.d.ts index 228592523d..6687c79570 100644 --- a/types/glob/index.d.ts +++ b/types/glob/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for Glob 5.0.10 // Project: https://github.com/isaacs/node-glob -// Definitions by: vvakame -// voy +// Definitions by: vvakame +// voy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/globalize/index.d.ts b/types/globalize/index.d.ts index 4fdff6bac8..c0fbbd3d0d 100644 --- a/types/globalize/index.d.ts +++ b/types/globalize/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Globalize // Project: https://github.com/jquery/globalize -// Definitions by: Grégoire Castre , Aram Taieb +// Definitions by: Grégoire Castre , Aram Taieb // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Note: You'll need the cldr.js definition file to use the globalize (https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/cldr.js) diff --git a/types/gm/gm-tests.ts b/types/gm/gm-tests.ts index 2ac631ee55..9f59854467 100644 --- a/types/gm/gm-tests.ts +++ b/types/gm/gm-tests.ts @@ -1,67 +1,67 @@ import gm = require('gm'); import stream = require('stream'); -let src: string; -let matrix: string; -let enable: boolean; -let ltr: boolean; -let password: string; -let bits: number; -let intensity: number; -let r: number; -let g: number; -let b: number; -let opacity: number; -let x: number; -let y: number; -let radius: number; -let sigma: number; -let width: number; -let height: number; -let color: string; -let channel: gm.ChannelType; -let type: string; -let factor: number; -let numColors: number; -let operator: string; -let multiplier: number; -let kernel: string; -let usePercent: boolean; -let time: number; -let server: string; -let method: string; -let percent: number; -let encoding: string; -let options: gm.ResizeOption; -let file: string; -let distance: number; -let geometry: string; -let direction: string; -let name: string; -let offset: number; -let blackPoint: number; -let gamma: number; -let whitePoint: number; -let limit: string; -let format: string; -let iterations: number; -let count: number; -let s: number; -let h: number; -let dest: string; -let images: string[]; -let angle: number; -let NxN: string; -let size: number; -let command: string; -let index: number; -let threshold: number; -let attribute: string; -let attrValue: string; -let font: string; -let quality: number; -let align: string; -let depth: number; +declare const src: string; +declare const matrix: string; +declare const enable: boolean; +declare const ltr: boolean; +declare const password: string; +declare const bits: number; +declare const intensity: number; +declare const r: number; +declare const g: number; +declare const b: number; +declare const opacity: number; +declare const x: number; +declare const y: number; +declare const radius: number; +declare const sigma: number; +declare const width: number; +declare const height: number; +declare const color: string; +declare const channel: gm.ChannelType; +declare const type: string; +declare const factor: number; +declare const numColors: number; +declare const operator: string; +declare const multiplier: number; +declare const kernel: string; +declare const usePercent: boolean; +declare const time: number; +declare const server: string; +declare const method: string; +declare const percent: number; +declare const encoding: string; +declare const options: gm.ResizeOption; +declare const file: string; +declare const distance: number; +declare const geometry: string; +declare const direction: string; +declare const name: string; +declare const offset: number; +declare const blackPoint: number; +declare const gamma: number; +declare const whitePoint: number; +declare const limit: string; +declare const format: string; +declare const iterations: number; +declare const count: number; +declare const s: number; +declare const h: number; +declare const dest: string; +declare const images: string[]; +declare const angle: number; +declare const NxN: string; +declare const size: number; +declare const command: string; +declare const index: number; +declare const threshold: number; +declare const attribute: string; +declare const attrValue: string; +declare const font: string; +declare const quality: number; +declare const align: string; +declare const depth: number; let readStream: stream.PassThrough; gm(src) @@ -356,16 +356,16 @@ gm(src).toBuffer((err, buffer) => { gm(src).toBuffer(format, (err, buffer) => { }); -let imageMagick = gm.subClass({ imageMagick: true }); +const imageMagick = gm.subClass({ imageMagick: true }); readStream = imageMagick(src) .adjoin() .stream(); -let passStream = imageMagick(readStream).stream(); +const passStream = imageMagick(readStream).stream(); -let buffers: Buffer[] = []; +const buffers: Buffer[] = []; let buffer: Buffer; passStream.on('data', (chunk) => buffers.push(chunk as Buffer)).on('close', () => { buffer = Buffer.concat(buffers); - let readstream = imageMagick(buffer).stream(); + const readstream = imageMagick(buffer).stream(); }); diff --git a/types/google-cloud__storage/index.d.ts b/types/google-cloud__storage/index.d.ts index 1d6bde527a..55f3b0d3d2 100644 --- a/types/google-cloud__storage/index.d.ts +++ b/types/google-cloud__storage/index.d.ts @@ -16,26 +16,26 @@ declare namespace Storage { */ class Bucket { constructor(storage: Storage, name: string); - acl: Storage.Acl; - combine(sources: string[] | File[], destination: string[] | File[]): Promise<[File, Storage.ApiResponse]>; - create(config?: BucketConfig): Promise<[Bucket, Storage.ApiResponse]>; - createChannel(id: string, config: ChannelConfig): Promise<[Channel, Storage.ApiResponse]>; - delete(): Promise<[Storage.ApiResponse]>; + acl: Acl; + combine(sources: string[] | File[], destination: string[] | File[]): Promise<[File, ApiResponse]>; + create(config?: BucketConfig): Promise<[Bucket, ApiResponse]>; + createChannel(id: string, config: ChannelConfig): Promise<[Channel, ApiResponse]>; + delete(): Promise<[ApiResponse]>; deleteFiles(query?: BucketQuery): Promise; exists(): Promise<[boolean]>; file(name: string, options?: BucketFileOptions): File; - get(options?: BucketGetOptions): Promise<[Bucket, Storage.ApiResponse]>; + get(options?: BucketGetOptions): Promise<[Bucket, ApiResponse]>; getFiles(query?: BucketQuery): Promise<[File[]]>; getFilesStream(query?: BucketQuery): ReadStream; - getMetadata(): Promise<[BucketMetadata, Storage.ApiResponse]>; + getMetadata(): Promise<[BucketMetadata, ApiResponse]>; id: string; iam: Iam; makePrivate(options?: BucketPrivacyOptions): Promise<[File[]]>; makePublic(options?: BucketPrivacyOptions): Promise<[File[]]>; metadata: BucketMetadata; name: string; - setMetadata(metadata?: BucketMetadata): Promise<[Storage.ApiResponse]>; - upload(localPath: string, options?: Storage.UploadOptions): Promise<[File]>; + setMetadata(metadata?: BucketMetadata): Promise<[ApiResponse]>; + upload(localPath: string, options?: UploadOptions): Promise<[File]>; } /** @@ -350,7 +350,7 @@ declare namespace Storage { */ class Channel { constructor(storage: Storage, id: string, resourceId: string); - stop(): Promise<[Storage.ApiResponse]>; + stop(): Promise<[ApiResponse]>; } /** diff --git a/types/google-cloud__storage/tslint.json b/types/google-cloud__storage/tslint.json index 2750cc0197..b3dfb39122 100644 --- a/types/google-cloud__storage/tslint.json +++ b/types/google-cloud__storage/tslint.json @@ -1 +1,8 @@ -{ "extends": "dtslint/dt.json" } \ No newline at end of file +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "no-duplicate-imports": false, + "prefer-object-spread": false + } +} diff --git a/types/google-earth/index.d.ts b/types/google-earth/index.d.ts index d0adc8c04e..4efc385cc6 100644 --- a/types/google-earth/index.d.ts +++ b/types/google-earth/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Google Earth Plugin // Project: https://developers.google.com/earth/ -// Definitions by: Ilia Choly +// Definitions by: Ilia Choly // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace google { diff --git a/types/google-protobuf/google/protobuf/compiler/plugin_pb.d.ts b/types/google-protobuf/google/protobuf/compiler/plugin_pb.d.ts index bc4a15554f..0beb947c82 100644 --- a/types/google-protobuf/google/protobuf/compiler/plugin_pb.d.ts +++ b/types/google-protobuf/google/protobuf/compiler/plugin_pb.d.ts @@ -105,7 +105,7 @@ export class CodeGeneratorResponse extends jspb.Message { export namespace CodeGeneratorResponse { export type AsObject = { error?: string, - fileList: Array, + fileList: Array, } export class File extends jspb.Message { diff --git a/types/google-protobuf/google/protobuf/descriptor_pb.d.ts b/types/google-protobuf/google/protobuf/descriptor_pb.d.ts index 920850a8d8..d6e1d78c67 100644 --- a/types/google-protobuf/google/protobuf/descriptor_pb.d.ts +++ b/types/google-protobuf/google/protobuf/descriptor_pb.d.ts @@ -176,12 +176,12 @@ export namespace DescriptorProto { name?: string, fieldList: Array, extensionList: Array, - nestedTypeList: Array, + nestedTypeList: Array, enumTypeList: Array, - extensionRangeList: Array, + extensionRangeList: Array, oneofDeclList: Array, options: MessageOptions.AsObject, - reservedRangeList: Array, + reservedRangeList: Array, reservedNameList: Array, } @@ -307,8 +307,8 @@ export namespace FieldDescriptorProto { export type AsObject = { name?: string, number?: number, - label?: FieldDescriptorProto.Label, - type?: FieldDescriptorProto.Type, + label?: Label, + type?: Type, typeName?: string, extendee?: string, defaultValue?: string, @@ -625,7 +625,7 @@ export namespace FileOptions { javaMultipleFiles?: boolean, javaGenerateEqualsAndHash?: boolean, javaStringCheckUtf8?: boolean, - optimizeFor?: FileOptions.OptimizeMode, + optimizeFor?: OptimizeMode, goPackage?: string, ccGenericServices?: boolean, javaGenericServices?: boolean, @@ -739,9 +739,9 @@ export class FieldOptions extends jspb.Message { export namespace FieldOptions { export type AsObject = { - ctype?: FieldOptions.CType, + ctype?: CType, packed?: boolean, - jstype?: FieldOptions.JSType, + jstype?: JSType, lazy?: boolean, deprecated?: boolean, weak?: boolean, @@ -902,7 +902,7 @@ export class MethodOptions extends jspb.Message { export namespace MethodOptions { export type AsObject = { deprecated?: boolean, - idempotencyLevel?: MethodOptions.IdempotencyLevel, + idempotencyLevel?: IdempotencyLevel, uninterpretedOptionList: Array, } @@ -963,7 +963,7 @@ export class UninterpretedOption extends jspb.Message { export namespace UninterpretedOption { export type AsObject = { - nameList: Array, + nameList: Array, identifierValue?: string, positiveIntValue?: number, negativeIntValue?: number, @@ -1019,7 +1019,7 @@ export class SourceCodeInfo extends jspb.Message { export namespace SourceCodeInfo { export type AsObject = { - locationList: Array, + locationList: Array, } export class Location extends jspb.Message { @@ -1087,7 +1087,7 @@ export class GeneratedCodeInfo extends jspb.Message { export namespace GeneratedCodeInfo { export type AsObject = { - annotationList: Array, + annotationList: Array, } export class Annotation extends jspb.Message { diff --git a/types/google-protobuf/google/protobuf/type_pb.d.ts b/types/google-protobuf/google/protobuf/type_pb.d.ts index cb330a9318..563418e109 100644 --- a/types/google-protobuf/google/protobuf/type_pb.d.ts +++ b/types/google-protobuf/google/protobuf/type_pb.d.ts @@ -95,8 +95,8 @@ export class Field extends jspb.Message { export namespace Field { export type AsObject = { - kind: Field.Kind, - cardinality: Field.Cardinality, + kind: Kind, + cardinality: Cardinality, number: number, name: string, typeUrl: string, diff --git a/types/google-protobuf/index.d.ts b/types/google-protobuf/index.d.ts index bb1d2fb3a5..441f5f0098 100644 --- a/types/google-protobuf/index.d.ts +++ b/types/google-protobuf/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for google-protobuf 3.2 // Project: https://github.com/google/google-protobuf -// Definitions by: Marcus Longmuir +// Definitions by: Marcus Longmuir // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped type ByteSource = ArrayBuffer | Uint8Array | number[] | string; diff --git a/types/google.analytics/index.d.ts b/types/google.analytics/index.d.ts index 9614d26746..c6d188d1cb 100644 --- a/types/google.analytics/index.d.ts +++ b/types/google.analytics/index.d.ts @@ -608,14 +608,14 @@ declare namespace UniversalAnalytics { (command: string, ...fields: any[]): void; - (readyCallback: (defaultTracker?: UniversalAnalytics.Tracker) => void): void; + (readyCallback: (defaultTracker?: Tracker) => void): void; - create(trackingId: string, cookieDomain: string, name: string, fieldsObject?: FieldsObject): UniversalAnalytics.Tracker; - create(trackingId: string, cookieDomain: string, fieldsObject?: FieldsObject): UniversalAnalytics.Tracker; - create(trackingId: string, fieldsObject?: FieldsObject): UniversalAnalytics.Tracker; + create(trackingId: string, cookieDomain: string, name: string, fieldsObject?: FieldsObject): Tracker; + create(trackingId: string, cookieDomain: string, fieldsObject?: FieldsObject): Tracker; + create(trackingId: string, fieldsObject?: FieldsObject): Tracker; - getAll(): UniversalAnalytics.Tracker[]; - getByName(name: string): UniversalAnalytics.Tracker; + getAll(): Tracker[]; + getByName(name: string): Tracker; remove(name: string): void; } diff --git a/types/google.geolocation/index.d.ts b/types/google.geolocation/index.d.ts index 9154d0f530..e9f993ba04 100644 --- a/types/google.geolocation/index.d.ts +++ b/types/google.geolocation/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Google Geolocation 0.4.8 // Project: https://code.google.com/p/geo-location-javascript/ -// Definitions by: Vincent Bortone +// Definitions by: Vincent Bortone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface GeolocationStatic { diff --git a/types/graphite-udp/index.d.ts b/types/graphite-udp/index.d.ts index 30b5bdb1f5..167b85673a 100644 --- a/types/graphite-udp/index.d.ts +++ b/types/graphite-udp/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for graphite-udp 1.2 // Project: https://github.com/fermads/graphite-udp -// Definitions by: Eric Byers +// Definitions by: Eric Byers // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface ClientOptions { diff --git a/types/graphviz/index.d.ts b/types/graphviz/index.d.ts index f8f6107cee..f0296df2bb 100644 --- a/types/graphviz/index.d.ts +++ b/types/graphviz/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Graphviz 0.0.8 // Project: https://github.com/glejeune/node-graphviz -// Definitions by: Matt Frantz +// Definitions by: Matt Frantz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // graphviz.d.ts diff --git a/types/grecaptcha/tslint.json b/types/grecaptcha/tslint.json index f93cf8562a..bafaae7817 100644 --- a/types/grecaptcha/tslint.json +++ b/types/grecaptcha/tslint.json @@ -1,3 +1,7 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } } diff --git a/types/gridfs-stream/index.d.ts b/types/gridfs-stream/index.d.ts index 80f87bb6c5..be056a3cef 100644 --- a/types/gridfs-stream/index.d.ts +++ b/types/gridfs-stream/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for gridfs-stream 0.5.0 // Project: https://github.com/aheckmann/gridfs-stream -// Definitions by: Lior Mualem +// Definitions by: Lior Mualem // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/gridstack/index.d.ts b/types/gridstack/index.d.ts index fa0c99463c..20f01186c6 100644 --- a/types/gridstack/index.d.ts +++ b/types/gridstack/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Gridstack // Project: http://troolee.github.io/gridstack.js/ -// Definitions by: Pascal Senn , Ricky Blankenaufulland , Sl1MBoy +// Definitions by: Pascal Senn , Ricky Blankenaufulland , Sl1MBoy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/grunt/index.d.ts b/types/grunt/index.d.ts index 73436b67fd..34e5b7e3cb 100644 --- a/types/grunt/index.d.ts +++ b/types/grunt/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Grunt 0.4.x // Project: http://gruntjs.com -// Definitions by: Jeff May , Basarat Ali Syed +// Definitions by: Jeff May , Basarat Ali Syed // Definitions: https://github.com/jeffmay/DefinitelyTyped /// diff --git a/types/gsap/tslint.json b/types/gsap/tslint.json index 075fa88707..25953ef466 100644 --- a/types/gsap/tslint.json +++ b/types/gsap/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "dt-header": false, "no-single-declare-module": false } } diff --git a/types/gulp-modernizr/gulp-modernizr-tests.ts b/types/gulp-modernizr/gulp-modernizr-tests.ts index 86b953b65c..a29f642d7f 100644 --- a/types/gulp-modernizr/gulp-modernizr-tests.ts +++ b/types/gulp-modernizr/gulp-modernizr-tests.ts @@ -1,8 +1,8 @@ import { src, dest } from 'gulp'; import * as gulpModernizr from 'gulp-modernizr'; -let s1 = gulpModernizr(); -let s2 = gulpModernizr('filename.js', {}); -let s3 = gulpModernizr({cache: false}); +const s1 = gulpModernizr(); +const s2 = gulpModernizr('filename.js', {}); +const s3 = gulpModernizr({cache: false}); src('fixtures.js').pipe(s1).pipe(s2); diff --git a/types/gulp-mustache/tslint.json b/types/gulp-mustache/tslint.json index 3db14f85ea..946c3b6691 100644 --- a/types/gulp-mustache/tslint.json +++ b/types/gulp-mustache/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} diff --git a/types/gulp-pug/gulp-pug-tests.ts b/types/gulp-pug/gulp-pug-tests.ts index 1820c2c375..0ec83a248f 100644 --- a/types/gulp-pug/gulp-pug-tests.ts +++ b/types/gulp-pug/gulp-pug-tests.ts @@ -1,8 +1,8 @@ import { src, dest } from 'gulp'; import * as gulpPug from 'gulp-pug'; -let s1 = gulpPug(); -let s2 = gulpPug({}); -let s3 = gulpPug({ basedir: '.' }); +const s1 = gulpPug(); +const s2 = gulpPug({}); +const s3 = gulpPug({ basedir: '.' }); src('fixtures.js').pipe(s1).pipe(s2).pipe(s3); diff --git a/types/gulp-size/gulp-size-tests.ts b/types/gulp-size/gulp-size-tests.ts index 4a325abe27..bd53018d6a 100644 --- a/types/gulp-size/gulp-size-tests.ts +++ b/types/gulp-size/gulp-size-tests.ts @@ -9,7 +9,7 @@ gulp.task('default', () => ); gulp.task('default', () => { - let s = size(); + const s = size(); return gulp.src('fixture.js') .pipe(s) diff --git a/types/gulp-uglify/index.d.ts b/types/gulp-uglify/index.d.ts index 4b86c2f2e0..823ce28e67 100644 --- a/types/gulp-uglify/index.d.ts +++ b/types/gulp-uglify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for gulp-uglify 3.0 // Project: https://github.com/terinjokes/gulp-uglify -// Definitions by: Christopher Haws +// Definitions by: Christopher Haws // Leonard Thieu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gulp/test/index.ts b/types/gulp/test/index.ts index e59d721669..72239a7151 100644 --- a/types/gulp/test/index.ts +++ b/types/gulp/test/index.ts @@ -126,11 +126,11 @@ gulp.watch('js/**/*.js', gulp.parallel('concat', 'uglify')); const watcher = gulp.watch('js/**/*.js', gulp.parallel('concat', 'uglify')); // watcher.close watcher.on('change', (path, stats) => { - console.log('File ' + path + ' was changed'); + console.log(`File ${path} was changed`); }); watcher.on('unlink', (path: string) => { - console.log('File ' + path + ' was removed'); + console.log(`File ${path} was removed`); }); gulp.task('one', (done) => { diff --git a/types/gulp/tslint.json b/types/gulp/tslint.json index f93cf8562a..9e23990c45 100644 --- a/types/gulp/tslint.json +++ b/types/gulp/tslint.json @@ -1,3 +1,7 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-object-literal-type-assertion": false + } } diff --git a/types/hammerjs/index.d.ts b/types/hammerjs/index.d.ts index 45108c27bc..587a3c89a0 100644 --- a/types/hammerjs/index.d.ts +++ b/types/hammerjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Hammer.js 2.0.8 // Project: http://hammerjs.github.io/ -// Definitions by: Philip Bulley , Han Lin Yap +// Definitions by: Philip Bulley , Han Lin Yap // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var Hammer:HammerStatic; diff --git a/types/handlebars/index.d.ts b/types/handlebars/index.d.ts index 006ef242c3..eb5958f6db 100644 --- a/types/handlebars/index.d.ts +++ b/types/handlebars/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Handlebars v4.0.5 // Project: http://handlebarsjs.com/ -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/handsontable/tslint.json b/types/handsontable/tslint.json index 4d660d9edd..40e100fc9e 100644 --- a/types/handsontable/tslint.json +++ b/types/handsontable/tslint.json @@ -1,7 +1,9 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs "ban-types": false, + "dt-header": false, "no-single-declare-module": false } } diff --git a/types/hapi-auth-jwt2/hapi-auth-jwt2-tests.ts b/types/hapi-auth-jwt2/hapi-auth-jwt2-tests.ts index 640706f856..fa28253a88 100644 --- a/types/hapi-auth-jwt2/hapi-auth-jwt2-tests.ts +++ b/types/hapi-auth-jwt2/hapi-auth-jwt2-tests.ts @@ -21,11 +21,7 @@ const users: Users = { }; function validate(decoded: User, request: Hapi.Request, callback: hapiAuthJwt2.ValidateCallback) { - if (!users[decoded.id]) { - return callback(null, false); - } - - return callback(null, true); + callback(null, !!users[decoded.id]); } server.register(hapiAuthJwt2, err => { diff --git a/types/harmony-proxy/index.d.ts b/types/harmony-proxy/index.d.ts index 734c752084..996b020176 100644 --- a/types/harmony-proxy/index.d.ts +++ b/types/harmony-proxy/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for harmony-proxy 1.0.0 // Project: https://www.npmjs.com/package/harmony-proxy -// Definitions by: Remo Jansen +// Definitions by: Remo Jansen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace harmonyProxy { diff --git a/types/hasher/index.d.ts b/types/hasher/index.d.ts index 180290145a..da2e32109a 100644 --- a/types/hasher/index.d.ts +++ b/types/hasher/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Hasher.js // Project: https://github.com/millermedeiros/hasher/ -// Definitions by: flyfishMT +// Definitions by: flyfishMT // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/hashids/index.d.ts b/types/hashids/index.d.ts index 8a3456a1f8..dd40978f60 100644 --- a/types/hashids/index.d.ts +++ b/types/hashids/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Hashids.js 1.x // Project: https://github.com/ivanakimov/hashids.node.js -// Definitions by: Paulo Cesar +// Definitions by: Paulo Cesar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/headroom/index.d.ts b/types/headroom/index.d.ts index 32e46c8b80..91ba992d18 100644 --- a/types/headroom/index.d.ts +++ b/types/headroom/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for headroom.js v0.7.0 // Project: http://wicky.nillia.ms/headroom.js/ -// Definitions by: Jakub Olek +// Definitions by: Jakub Olek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface HeadroomOptions { diff --git a/types/hellojs/hellojs-tests.ts b/types/hellojs/hellojs-tests.ts index 478e67fa94..e5b76d3ceb 100644 --- a/types/hellojs/hellojs-tests.ts +++ b/types/hellojs/hellojs-tests.ts @@ -13,11 +13,11 @@ hello.init({ refresh: true, scope_delim: ' ', logout: () => { - let id_token = hello('networkName').getAuthResponse().id_token; + const id_token = hello('networkName').getAuthResponse().id_token; hello.utils.store('networkName', null); }, xhr: (p) => { - let token = p.query.access_token; + const token = p.query.access_token; delete p.query.access_token; if (token) { p.headers = { @@ -25,16 +25,20 @@ hello.init({ }; } - if (p.method === 'post' || p.method === 'put') { - if (typeof (p.data) === 'object') { - try { - p.data = JSON.stringify(p.data); - p.headers['content-type'] = 'application/json'; - } catch (e) { } - } - } else if (p.method === 'patch') { - hello.utils.extend(p.query, p.data); - p.data = null; + switch (p.method) { + case 'post': + case 'put': + if (typeof (p.data) === 'object') { + try { + p.data = JSON.stringify(p.data); + p.headers['content-type'] = 'application/json'; + } catch (e) { } + } + break; + case 'patch': + hello.utils.extend(p.query, p.data); + p.data = null; + break; } return true; }, @@ -110,7 +114,7 @@ hello.init({ } }, xhr: (p, qs) => { - let token = qs.access_token; + const token = qs.access_token; delete qs.access_token; p.headers.Authorization = 'Bearer ' + token; } @@ -142,7 +146,7 @@ hello.on('auth.login', auth => { hello.getAuthResponse('facebook'); hello.login('facebook', null, () => { - let req = hello.getAuthResponse('facebook'); + const req = hello.getAuthResponse('facebook'); }); hello.logout('facebook'); @@ -153,7 +157,7 @@ hello("facebook").api("me").then((json) => { alert("Whoops!"); }); -let sessionstart = () => { +const sessionstart = () => { alert("Session has started"); }; hello.on("auth.login", sessionstart); diff --git a/types/hellosign-embedded/index.d.ts b/types/hellosign-embedded/index.d.ts index e7a94beaf0..b49db738a9 100644 --- a/types/hellosign-embedded/index.d.ts +++ b/types/hellosign-embedded/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for hellosign-embedded v1.2.0 // Project: https://github.com/HelloFax/hellosign-embedded -// Definitions by: Brian Surowiec +// Definitions by: Brian Surowiec // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export declare module HelloSign { interface SignedMessageEvent { diff --git a/types/heredatalens/index.d.ts b/types/heredatalens/index.d.ts index e9861713e3..1e80ac29ba 100644 --- a/types/heredatalens/index.d.ts +++ b/types/heredatalens/index.d.ts @@ -5,944 +5,938 @@ /// -declare namespace H { +/** + * Data Lens REST API connector for HERE Maps API + * Data Lens JavaScript API is a module for HERE Maps API. + * It connects Data Lens REST API and provides data-driven styling of data on a map. + */ +declare namespace H.datalens { /** - * Data Lens REST API connector for HERE Maps API - * Data Lens JavaScript API is a module for HERE Maps API. - * It connects Data Lens REST API and provides data-driven styling of data on a map. + * HERE Maps API and Data Lens JavaScript API can be used to visualize data from different network sources. + * For each network source type, a service class is required. The service also stores API connection credentials. + * The service instance must be configured with a service.Platform instance. */ - namespace datalens { + class Service implements service.IConfigurable { /** - * HERE Maps API and Data Lens JavaScript API can be used to visualize data from different network sources. - * For each network source type, a service class is required. The service also stores API connection credentials. - * The service instance must be configured with a service.Platform instance. + * Constructor + * @param options {Service.Options=} - Overrides the configuration from the service.Platform instance */ - class Service implements service.IConfigurable { - /** - * Constructor - * @param options {datalens.Service.Options=} - Overrides the configuration from the service.Platform instance - */ - constructor(options?: datalens.Service.Options); + constructor(options?: Service.Options); - /** - * This method makes an HTTP request to the Data Lens REST API. - * It makes any CRUD request (GET, PUT, POST, DELETE). - * This method can be used when implementing a custom provider or implementing data management. - * Otherwise existing providers are used to get data from the Data Lens REST API. - * @param method {string} - Any HTTP method (GET, PUT, POST, etc.) - * @param endpoint {string} - The REST API endpoint - * @param params {any=} - URL parameters - * @param body {any=} - The payload of the request - * @param onResult {function(any)=} - Callback called on a successful request with response data - * @param onError {function(Error)=} - Callback called on an unsuccessful request with the Error object - * @returns {Promise} - Response Promise - */ - request(method: string, endpoint: string, params?: any, body?: any, onResult?: (result: any) => void, onError?: (error: any) => void): Promise; + /** + * This method makes an HTTP request to the Data Lens REST API. + * It makes any CRUD request (GET, PUT, POST, DELETE). + * This method can be used when implementing a custom provider or implementing data management. + * Otherwise existing providers are used to get data from the Data Lens REST API. + * @param method {string} - Any HTTP method (GET, PUT, POST, etc.) + * @param endpoint {string} - The REST API endpoint + * @param params {any=} - URL parameters + * @param body {any=} - The payload of the request + * @param onResult {function(any)=} - Callback called on a successful request with response data + * @param onError {function(Error)=} - Callback called on an unsuccessful request with the Error object + * @returns {Promise} - Response Promise + */ + request(method: string, endpoint: string, params?: any, body?: any, onResult?: (result: any) => void, onError?: (error: any) => void): Promise; - /** - * This method fetches query data for a given query ID. - * This method can be used when implementing a custom provider. - * Otherwise existing providers are used to get data from the Data Lens REST API. - * @param queryId {string} - The ID of the Data Lens REST API query - * @param params {any=} - Query dynamic parameters - * @param onResult {function(any)=} - Callback called on a successful request with response data - * @param onError {function(Error)=} - Callback called on an unsuccessful request with the Error object - * @returns {Promise} - Response Promise - */ - fetchQueryData(queryId: string, params?: any, onResult?: (result: any) => void, onError?: (error: any) => void): Promise; + /** + * This method fetches query data for a given query ID. + * This method can be used when implementing a custom provider. + * Otherwise existing providers are used to get data from the Data Lens REST API. + * @param queryId {string} - The ID of the Data Lens REST API query + * @param params {any=} - Query dynamic parameters + * @param onResult {function(any)=} - Callback called on a successful request with response data + * @param onError {function(Error)=} - Callback called on an unsuccessful request with the Error object + * @returns {Promise} - Response Promise + */ + fetchQueryData(queryId: string, params?: any, onResult?: (result: any) => void, onError?: (error: any) => void): Promise; - /** - * This method fetches statistical data for the Data Lens query (eg minimum and maximum values for the query metric). - * It can be used to define visualization boundaries, scales and legends. - * @param queryId {string} - The ID of the Data Lens REST API query - * @param statsQuery {any} - A JSON object which defines a statistics query for the Data Lens query - * @param onResult {function(any)=} - Callback called on a successful request with response data - * @param onError {function(Error)=} - Callback called on an unsuccessful request with the Error object - * @returns {Promise} - Response Promise - */ - fetchQueryStats(queryId: string, statsQuery: any, onResult?: (result: any) => void, onError?: (error: any) => void): Promise; + /** + * This method fetches statistical data for the Data Lens query (eg minimum and maximum values for the query metric). + * It can be used to define visualization boundaries, scales and legends. + * @param queryId {string} - The ID of the Data Lens REST API query + * @param statsQuery {any} - A JSON object which defines a statistics query for the Data Lens query + * @param onResult {function(any)=} - Callback called on a successful request with response data + * @param onError {function(Error)=} - Callback called on an unsuccessful request with the Error object + * @returns {Promise} - Response Promise + */ + fetchQueryStats(queryId: string, statsQuery: any, onResult?: (result: any) => void, onError?: (error: any) => void): Promise; - /** - * This method fetches a layer of geometries (eg buildings or administrative boundaries). - * @param layerName {string} - The name of the layer - * @param params {any=} - URL parameters (eg bounding box) - * @param onResult {function(any)=} - Callback called on a successful request with response data - * @param onError {function(Error)=} - Callback called on an unsuccessful request with the Error object - * @returns {Promise} - Response Promise - */ - fetchLayer(layerName: string, params?: any, onResult?: (result: any) => void, onError?: (error: any) => void): Promise; + /** + * This method fetches a layer of geometries (eg buildings or administrative boundaries). + * @param layerName {string} - The name of the layer + * @param params {any=} - URL parameters (eg bounding box) + * @param onResult {function(any)=} - Callback called on a successful request with response data + * @param onError {function(Error)=} - Callback called on an unsuccessful request with the Error object + * @returns {Promise} - Response Promise + */ + fetchLayer(layerName: string, params?: any, onResult?: (result: any) => void, onError?: (error: any) => void): Promise; - /** - * This method fetches vector tile data from the layer. - * @param layerName {string} - * @param x {datalens.QueryTileProvider.X} - Tile columns - * @param y {datalens.QueryTileProvider.Y} - Tile row - * @param z {datalens.QueryTileProvider.Zoom} - zoom level - * @param params {any=} - URL parameters (eg bounding box) - * @param onResult {function(any)=} - Callback called on a successful request with response data - * @param onError {function(Error)=} - Callback called on an unsuccessful request with the Error object - * @returns {Promise} - Typed array with tile data - */ - fetchLayerTile(layerName: string, x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, z: datalens.QueryTileProvider.Zoom, - params?: any, onResult?: (result: any) => void, onError?: (error: any) => void): Promise; + /** + * This method fetches vector tile data from the layer. + * @param layerName {string} + * @param x {QueryTileProvider.X} - Tile columns + * @param y {QueryTileProvider.Y} - Tile row + * @param z {QueryTileProvider.Zoom} - zoom level + * @param params {any=} - URL parameters (eg bounding box) + * @param onResult {function(any)=} - Callback called on a successful request with response data + * @param onError {function(Error)=} - Callback called on an unsuccessful request with the Error object + * @returns {Promise} - Typed array with tile data + */ + fetchLayerTile(layerName: string, x: QueryTileProvider.X, y: QueryTileProvider.Y, z: QueryTileProvider.Zoom, + params?: any, onResult?: (result: any) => void, onError?: (error: any) => void): Promise; - /** - * Sets the access and refresh tokens used to authenticate all requests against the Data Lens REST API. - * Use this method to implement custom authentication to the Data Lens REST API. - * @param accessToken {string} - The token used to authenticate all requests - * @param refreshToken {string} - The token used to fetch a new access token after the previous access token has expired. - * When refreshToken is provided, Service will automatically update the expired accessToken. - */ - setTokens(accessToken: string, refreshToken: string): void; + /** + * Sets the access and refresh tokens used to authenticate all requests against the Data Lens REST API. + * Use this method to implement custom authentication to the Data Lens REST API. + * @param accessToken {string} - The token used to authenticate all requests + * @param refreshToken {string} - The token used to fetch a new access token after the previous access token has expired. + * When refreshToken is provided, Service will automatically update the expired accessToken. + */ + setTokens(accessToken: string, refreshToken: string): void; - /** - * This method implements service.IConfigurable interface. It is called by the service.Platform instance. - * @param appId {string} - The appId - * @param appCode {string} - The appCode - * @param useHTTPS {boolean} - A flag to use HTTPS or not - * @param useCIT {boolean} - A flag to use the staging server (CIT) or not - * @param baseUrl {service.Url=} - The base URL for all requests to the Data Lens REST API - * @returns {datalens.Service} - */ - configure(appId: string, appCode: string, useHTTPS: boolean, useCIT: boolean, baseUrl?: service.Url): datalens.Service; - } + /** + * This method implements service.IConfigurable interface. It is called by the service.Platform instance. + * @param appId {string} - The appId + * @param appCode {string} - The appCode + * @param useHTTPS {boolean} - A flag to use HTTPS or not + * @param useCIT {boolean} - A flag to use the staging server (CIT) or not + * @param baseUrl {service.Url=} - The base URL for all requests to the Data Lens REST API + * @returns {Service} + */ + configure(appId: string, appCode: string, useHTTPS: boolean, useCIT: boolean, baseUrl?: service.Url): Service; + } - namespace Service { - /** - * Overrides the datalens.Service configuration - * Normally the datalens.Service instance is configured with the service.Platform instance. - * This configuration can be overridden by specifying these options. - * It can be useful when the Data Lens environment is different from the HERE Platform environment. - * @property subDomain {string=} - Subdomain of the Data Lens REST API URL - * @property version {string=} - Pathname prefix of the Data Lens REST API endpoints - * @property access_token {string=} - The token used to authenticate all requests - * @property refresh_token {string=} - The token used to fetch a new access token after the previous access token has expired. - * When refresh_token is provided, Service will automatically update the expired access_token. - * @property domainSharding {string[]=} - To increase the number of simultaneous requests to the Data Lens REST API, domain sharding is used. - * This option can be used when the Data Lens environment does not support domain sharding. - * @property baseUrl {string=} - Defines an alternative host for the Data Lens REST API URL - */ - interface Options { - subDomain?: string; - version?: string; - access_token?: string; - refresh_token?: string; - domainSharding?: string[]; - baseUrl?: string; - } - - /** - * The format of Data Lens query data. - * The Data Lens query data has a table-like structure with named columns and rows. - * @property columns {string[]} - Column names - * @property rows {Array} - Rows of data - */ - interface Data { - columns: string[]; - rows: [any[]]; // rows : { Array. } - } + namespace Service { + /** + * Overrides the Service configuration + * Normally the Service instance is configured with the service.Platform instance. + * This configuration can be overridden by specifying these options. + * It can be useful when the Data Lens environment is different from the HERE Platform environment. + * @property subDomain {string=} - Subdomain of the Data Lens REST API URL + * @property version {string=} - Pathname prefix of the Data Lens REST API endpoints + * @property access_token {string=} - The token used to authenticate all requests + * @property refresh_token {string=} - The token used to fetch a new access token after the previous access token has expired. + * When refresh_token is provided, Service will automatically update the expired access_token. + * @property domainSharding {string[]=} - To increase the number of simultaneous requests to the Data Lens REST API, domain sharding is used. + * This option can be used when the Data Lens environment does not support domain sharding. + * @property baseUrl {string=} - Defines an alternative host for the Data Lens REST API URL + */ + interface Options { + subDomain?: string; + version?: string; + access_token?: string; + refresh_token?: string; + domainSharding?: string[]; + baseUrl?: string; } /** - * Providers define interfaces for layers to access data. - * The input data can be stored locally or loaded from the network. Data can be loaded by tiles or in one chunk. - * This provider allows you to supply data stored locally or fetched using external tools. + * The format of Data Lens query data. + * The Data Lens query data has a table-like structure with named columns and rows. + * @property columns {string[]} - Column names + * @property rows {Array} - Rows of data */ - class Provider extends map.provider.Provider { - /** - * Constructor - * @param data {datalens.Service.Data=} - JSON object - * @param options {map.provider.Provider.Options=} - Configures data accessibility parameters - */ - constructor(data?: datalens.Service.Data, options?: map.provider.Provider.Options); + interface Data { + columns: string[]; + rows: [any[]]; // rows : { Array. } + } + } - /** - * Updates the provider data. When data is updated, the update event is triggered so that the consuming layers are redrawn. - * @param data {datalens.Service.Data} - JSON object - */ - setData(data: datalens.Service.Data): void; + /** + * Providers define interfaces for layers to access data. + * The input data can be stored locally or loaded from the network. Data can be loaded by tiles or in one chunk. + * This provider allows you to supply data stored locally or fetched using external tools. + */ + class Provider extends map.provider.Provider { + /** + * Constructor + * @param data {Service.Data=} - JSON object + * @param options {map.provider.Provider.Options=} - Configures data accessibility parameters + */ + constructor(data?: Service.Data, options?: map.provider.Provider.Options); - /** - * Retrieves the provider data. - * @returns {datalens.Service.Data} - JSON object - */ - getData(): datalens.Service.Data; + /** + * Updates the provider data. When data is updated, the update event is triggered so that the consuming layers are redrawn. + * @param data {Service.Data} - JSON object + */ + setData(data: Service.Data): void; + + /** + * Retrieves the provider data. + * @returns {Service.Data} - JSON object + */ + getData(): Service.Data; + } + + /** + * Defines the source of the data for layers from a Data Lens query. + * Providers define interfaces for layers to access data. The input data can be stored locally or loaded from the network. + * Data can be loaded by tiles or in one chunk. This provider loads query data with the Data Lens REST API. + * Note that this provider must be used only for non-tiled queries. + */ + class QueryProvider extends Provider { + /** + * Constructor + * @param service {Service} - Data Lens REST API service + * @param options {QueryProvider.Options=} - Configures source query and data accessibility parameters + */ + constructor(data: Service.Data, options?: QueryProvider.Options); + + /** + * Updates the query ID to be used in the next call of the Data Lens REST API. + * Note that new data will be fetched only after the reload method is called. + * @param queryId {string} + */ + setQueryId(queryId: string): void; + + /** + * Updates the query's dynamic parameters to be used in the next call of the Data Lens REST API. + * Note that new data will be fetched only after the reload method is called. + * This method is normally used when updating your visualization. + * @param queryParams {any|null} - Query dynamic parameters + */ + setQueryParams(queryParams: any|null): void; + + /** + * Fetches new data from the Data Lens REST API. + * When data is fetched, the update event is triggered so that the consuming layers are redrawn. + */ + reload(): void; + + /** + * Updates the provider data. + * When data is updated, the update event is triggered so that the consuming layers are redrawn. + * @param data {Service.Data} - JSON object + */ + setData(data: Service.Data): void; + + /** + * Retrieves the provider data. + * @returns {Service.Data} - JSON object + */ + getData(): Service.Data; + } + + namespace QueryProvider { + /** + * Configures source query and data accessibility parameters for QueryProvider + * Specifies the query credentials and dynamic parameters required for fetching query data with the Data Lens REST API. Other options from Provider.Options are available. + * @property queryId {string} - The ID of the Data Lens REST API query + * @property queryParams {any=} - The query's dynamic parameters. The dynamic parameters can be used to filter data provided by the query. + */ + interface Options { + queryId: string; + queryParams?: any; + } + } + + /** + * Providers define interfaces for layers to access data. + * The input data can be stored locally or loaded from the network. Data can be loaded by tiles or in one chunk. + * This provider loads tiled query data with the Data Lens REST API. Tiled queries are used to load data only for the current viewport. + * This optimizes memory and network usage and enables progressive rendering. + */ + class QueryTileProvider extends map.provider.RemoteTileProvider { + /** + * Constructor + * @param service {Service} - Data Lens REST API service + * @param options {QueryTileProvider.Options} - Configures source query and data accessibility parameters + */ + constructor(service: Service, options: QueryTileProvider.Options); + + /** + * Updates the query ID to be used in the next call of the Data Lens REST API. + * Note that new data will be fetched only after the reload method is called. + * @param queryId {string} + */ + setQueryId(queryId: string): void; + + /** + * Updates the query's dynamic parameters to be used in the next call of the Data Lens REST API. + * Note that new data will be fetched only after the reload method is called. This method is normally used when updating your visualization. + * @param queryParams {any|null} + */ + setQueryParams(queryParams: any|null): void; + + /** + * Updates the names of the dynamic parameters that defines tiles. This method is only needed when the query ID is updated. + * Note that new data will be fetched only after the reload method is called. + * @param tileParamNames {QueryTileProvider.TileParamNames} - Names of the URI parameters that control the x/y/z of a tiled query + */ + setTileParamNames(tileParamNames: QueryTileProvider.TileParamNames): void; + } + + namespace QueryTileProvider { + /** + * Represents the names of the URI parameters that control the x/y/z of tiled query. + * When defining the Data Lens query, dynamic parameters that control tiling can be arbitrarily named. + * Names of these parameters must be specified to fetch tiles. + * @property x {string} - Name of the dynamic parameter that defines tile column + * @property y {string} - Name of the dynamic parameter that defines tile row + * @property z {string} - Name of the dynamic parameter that defines zoom level + */ + interface TileParamNames { + x: string; + y: string; + z: string; } /** - * Defines the source of the data for layers from a Data Lens query. - * Providers define interfaces for layers to access data. The input data can be stored locally or loaded from the network. - * Data can be loaded by tiles or in one chunk. This provider loads query data with the Data Lens REST API. - * Note that this provider must be used only for non-tiled queries. + * Configures source query and data accessibility parameters for QueryTileProvider + * Specifies the query credentials and dynamic parameters required for fetching tiled query data with the Data Lens REST API. + * Other options from Provider.Options are available. + * @property tileParamNames {QueryTileProvider.TileParamNames=} - Names of the URI parameters that control the x/y/z of a tiled query + * @property queryId {string} - The ID for the Data Lens REST API query + * @property queryParams {any=} - The query's dynamic parameters. The dynamic parameters can be used to filter data provided by the query. */ - class QueryProvider extends datalens.Provider { - /** - * Constructor - * @param service {datalens.Service} - Data Lens REST API service - * @param options {datalens.QueryProvider.Options=} - Configures source query and data accessibility parameters - */ - constructor(data: datalens.Service.Data, options?: datalens.QueryProvider.Options); - - /** - * Updates the query ID to be used in the next call of the Data Lens REST API. - * Note that new data will be fetched only after the reload method is called. - * @param queryId {string} - */ - setQueryId(queryId: string): void; - - /** - * Updates the query's dynamic parameters to be used in the next call of the Data Lens REST API. - * Note that new data will be fetched only after the reload method is called. - * This method is normally used when updating your visualization. - * @param queryParams {any|null} - Query dynamic parameters - */ - setQueryParams(queryParams: any|null): void; - - /** - * Fetches new data from the Data Lens REST API. - * When data is fetched, the update event is triggered so that the consuming layers are redrawn. - */ - reload(): void; - - /** - * Updates the provider data. - * When data is updated, the update event is triggered so that the consuming layers are redrawn. - * @param data {datalens.Service.Data} - JSON object - */ - setData(data: datalens.Service.Data): void; - - /** - * Retrieves the provider data. - * @returns {datalens.Service.Data} - JSON object - */ - getData(): datalens.Service.Data; - } - - namespace QueryProvider { - /** - * Configures source query and data accessibility parameters for datalens.QueryProvider - * Specifies the query credentials and dynamic parameters required for fetching query data with the Data Lens REST API. Other options from datalens.Provider.Options are available. - * @property queryId {string} - The ID of the Data Lens REST API query - * @property queryParams {any=} - The query's dynamic parameters. The dynamic parameters can be used to filter data provided by the query. - */ - interface Options { - queryId: string; - queryParams?: any; - } + interface Options { + tileParamNames: TileParamNames; + queryId: string; + queryParams?: string; } /** - * Providers define interfaces for layers to access data. - * The input data can be stored locally or loaded from the network. Data can be loaded by tiles or in one chunk. - * This provider loads tiled query data with the Data Lens REST API. Tiled queries are used to load data only for the current viewport. - * This optimizes memory and network usage and enables progressive rendering. + * Tile X coordinate (column) + * Coordinate in XYZ tile numbering scheme. */ - class QueryTileProvider extends map.provider.RemoteTileProvider { - /** - * Constructor - * @param service {datalens.Service} - Data Lens REST API service - * @param options {datalens.QueryTileProvider.Options} - Configures source query and data accessibility parameters - */ - constructor(service: datalens.Service, options: datalens.QueryTileProvider.Options); + type X = number; - /** - * Updates the query ID to be used in the next call of the Data Lens REST API. - * Note that new data will be fetched only after the reload method is called. - * @param queryId {string} - */ - setQueryId(queryId: string): void; + /** + * Tile Y coordinate (row) + * Coordinate in XYZ tile numbering scheme. + */ + type Y = number; - /** - * Updates the query's dynamic parameters to be used in the next call of the Data Lens REST API. - * Note that new data will be fetched only after the reload method is called. This method is normally used when updating your visualization. - * @param queryParams {any|null} - */ - setQueryParams(queryParams: any|null): void; + /** + * Zoom level + * Coordinate in XYZ tile numbering scheme. May vary within range 1 to 20. + */ + type Zoom = number; + } - /** - * Updates the names of the dynamic parameters that defines tiles. This method is only needed when the query ID is updated. - * Note that new data will be fetched only after the reload method is called. - * @param tileParamNames {datalens.QueryTileProvider.TileParamNames} - Names of the URI parameters that control the x/y/z of a tiled query - */ - setTileParamNames(tileParamNames: datalens.QueryTileProvider.TileParamNames): void; - } + /** + * Provides pixel-wise rendering of data. + * Layer used when you need to visualize more than 10k points. The layer requires source data to be located in pixel coordinates. + * The rendering is implemented by drawing directly on a canvas. The layer is often used together with a Data Lens query which groups rows by pixels. + * This reduces the amount of data delivered to the client. + */ + class RasterLayer extends map.layer.TileLayer { + /** + * Constructor + */ + constructor(); - namespace QueryTileProvider { - /** - * Represents the names of the URI parameters that control the x/y/z of tiled query. - * When defining the Data Lens query, dynamic parameters that control tiling can be arbitrarily named. - * Names of these parameters must be specified to fetch tiles. - * @property x {string} - Name of the dynamic parameter that defines tile column - * @property y {string} - Name of the dynamic parameter that defines tile row - * @property z {string} - Name of the dynamic parameter that defines zoom level - */ - interface TileParamNames { - x: string; - y: string; - z: string; - } + /** + * Default value for dataToRows callback option. + * It represents each row as an object where property names correspond to data column names. + */ + static defaultDataToRows: any; - /** - * Configures source query and data accessibility parameters for datalens.QueryTileProvider - * Specifies the query credentials and dynamic parameters required for fetching tiled query data with the Data Lens REST API. - * Other options from datalens.Provider.Options are available. - * @property tileParamNames {datalens.QueryTileProvider.TileParamNames=} - Names of the URI parameters that control the x/y/z of a tiled query - * @property queryId {string} - The ID for the Data Lens REST API query - * @property queryParams {any=} - The query's dynamic parameters. The dynamic parameters can be used to filter data provided by the query. - */ - interface Options { - tileParamNames: datalens.QueryTileProvider.TileParamNames; - queryId: string; - queryParams?: string; - } + /** + * Force re-rendering of the layer. + * In the case where the callbacks passed to the layer options are not pure functions, you can call this method to force re-rendering. + */ + redraw(): void; - /** - * Tile X coordinate (column) - * Coordinate in XYZ tile numbering scheme. - */ - type X = number; + /** + * This is a default implementation of renderTile callback. This method represents each point as a black 1x1 pixel square. + * @param points {Array} - Input data points within a tile + * @param canvas {HTMLCanvasElement} - The target canvas + */ + static defaultRenderTile(points: RasterLayer.TilePoint[], canvas: HTMLCanvasElement): void; + } - /** - * Tile Y coordinate (row) - * Coordinate in XYZ tile numbering scheme. - */ - type Y = number; - - /** - * Zoom level - * Coordinate in XYZ tile numbering scheme. May vary within range 1 to 20. - */ - type Zoom = number; + namespace RasterLayer { + /** + * Defines data processing and rendering options for RasterLayer. + * The initial step of rendering is to split the tile data by rows, where each row represents a bucket. + * By default this step is processed with RasterLayer.defaultDataToRows. + * This behavior can be changed by defining the dataToRows callback. + * To collect the rows for a tile including buffer, the rows must be translated to RasterLayer.TilePoint. + * This translation must be specified with the rowToTilePoint callback. The final rendering on the tile canvas must be defined in renderTile. + * @property dataToRows {function(Service.Data, QueryTileProvider.X, QueryTileProvider.Y, QueryTileProvider.Zoom)=} - + * Defines how the input tile data is split by rows. You can specify this callback to define client-side aggregation and filtering. This callback is called for each tile. + * @property rowToTilePoint {function(RasterLayer.Row, RasterLayer.X, RasterLayer.Y)=} - + * Defines how the row is translated to the RasterLayer.TilePoint. This callback is called for each row that is returned from dataToRows. + * @property buffer {function(QueryTileProvider.Zoom)=} - Defines the buffer as a function of the zoom level. + * The buffer is a value (in pixels) that defines an extra area around each tile to capture data points from. + * This is done to avoid drawing edges between tiles. For example, if data points represented with circles with a maximum radius of 10 pixels, then the buffer must be 10 pixels. + * @property renderTile {function(Array, HTMLCanvasElement, QueryTileProvider.Zoom)=} - + * Defines how tile data is represented on a canvas. Input points for each tile are collected with respect to the buffer. + * For progressive rendering this callback may be called more than once for the tile. + */ + interface Options { + dataToRows?(data: Service.Data, x: QueryTileProvider.X, y: QueryTileProvider.Y, zoom: QueryTileProvider.Zoom): Row[]; + rowToTilePoint?(row: Row, x: X, y: Y): TilePoint; + buffer?(zoom: QueryTileProvider.Zoom): number; + renderTile?(points: TilePoint[], canvas: HTMLCanvasElement, zoom: QueryTileProvider.Zoom): void; } /** - * Provides pixel-wise rendering of data. - * Layer used when you need to visualize more than 10k points. The layer requires source data to be located in pixel coordinates. - * The rendering is implemented by drawing directly on a canvas. The layer is often used together with a Data Lens query which groups rows by pixels. - * This reduces the amount of data delivered to the client. + * Defines the input data format for heat map rendering. + * To collect data rows for each tile with respect to the buffer, each row must be represented as a point within the map tile. + * @property x {number} - Row relative to tile + * @property y {number} - Column relative to tile + * @property data {RasterLayer.Row=} - Reference to source data row */ - class RasterLayer extends map.layer.TileLayer { - /** - * Constructor - */ - constructor(); - - /** - * Default value for dataToRows callback option. - * It represents each row as an object where property names correspond to data column names. - */ - static defaultDataToRows: any; - - /** - * Force re-rendering of the layer. - * In the case where the callbacks passed to the layer options are not pure functions, you can call this method to force re-rendering. - */ - redraw(): void; - - /** - * This is a default implementation of renderTile callback. This method represents each point as a black 1x1 pixel square. - * @param points {Array} - Input data points within a tile - * @param canvas {HTMLCanvasElement} - The target canvas - */ - static defaultRenderTile(points: datalens.RasterLayer.TilePoint[], canvas: HTMLCanvasElement): void; - } - - namespace RasterLayer { - /** - * Defines data processing and rendering options for RasterLayer. - * The initial step of rendering is to split the tile data by rows, where each row represents a bucket. - * By default this step is processed with datalens.RasterLayer.defaultDataToRows. - * This behavior can be changed by defining the dataToRows callback. - * To collect the rows for a tile including buffer, the rows must be translated to datalens.RasterLayer.TilePoint. - * This translation must be specified with the rowToTilePoint callback. The final rendering on the tile canvas must be defined in renderTile. - * @property dataToRows {function(datalens.Service.Data, datalens.QueryTileProvider.X, datalens.QueryTileProvider.Y, datalens.QueryTileProvider.Zoom)=} - - * Defines how the input tile data is split by rows. You can specify this callback to define client-side aggregation and filtering. This callback is called for each tile. - * @property rowToTilePoint {function(datalens.RasterLayer.Row, datalens.RasterLayer.X, datalens.RasterLayer.Y)=} - - * Defines how the row is translated to the datalens.RasterLayer.TilePoint. This callback is called for each row that is returned from dataToRows. - * @property buffer {function(datalens.QueryTileProvider.Zoom)=} - Defines the buffer as a function of the zoom level. - * The buffer is a value (in pixels) that defines an extra area around each tile to capture data points from. - * This is done to avoid drawing edges between tiles. For example, if data points represented with circles with a maximum radius of 10 pixels, then the buffer must be 10 pixels. - * @property renderTile {function(Array, HTMLCanvasElement, datalens.QueryTileProvider.Zoom)=} - - * Defines how tile data is represented on a canvas. Input points for each tile are collected with respect to the buffer. - * For progressive rendering this callback may be called more than once for the tile. - */ - interface Options { - dataToRows?(data: datalens.Service.Data, x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, zoom: datalens.QueryTileProvider.Zoom): - datalens.RasterLayer.Row[]; - rowToTilePoint?(row: datalens.RasterLayer.Row, x: datalens.RasterLayer.X, y: datalens.RasterLayer.Y): datalens.RasterLayer.TilePoint; - buffer?(zoom: datalens.QueryTileProvider.Zoom): number; - renderTile?(points: datalens.RasterLayer.TilePoint[], canvas: HTMLCanvasElement, zoom: datalens.QueryTileProvider.Zoom): void; - } - - /** - * Defines the input data format for heat map rendering. - * To collect data rows for each tile with respect to the buffer, each row must be represented as a point within the map tile. - * @property x {number} - Row relative to tile - * @property y {number} - Column relative to tile - * @property data {datalens.RasterLayer.Row=} - Reference to source data row - */ - interface TilePoint { - x: number; - y: number; - data?: datalens.RasterLayer.Row; - } - - /** - * Tile X coordinate (column) - * Coordinate in XYZ tile numbering scheme. - */ - type X = number; - - /** - * Tile Y coordinate (row) - * Coordinate in XYZ tile numbering scheme. - */ - type Y = number; - - /** - * Slice of data (eg Data Lens query data row) that represents a data point. - * Each row is transformed into TilePoint and passed to renderTile callback. By default each row is an Object where property names correspond to data column names. - * This representation can be changed with the dataToRows callback. - */ - type Row = number; + interface TilePoint { + x: number; + y: number; + data?: Row; } /** - * Provides functionality of value-based heat map with density alpha mask. - * Layer support different types of blending, including weighted average. Also it allows to apply alpha mask calculated by density. - * In most cases, the layer consumes data grouped by 1x1 pixels buckets. For proper averaging it requires aggregated value and count (number of rows in bucket) for each bucket. - * Blending of buckets is implemented via kernel density estimation (KDE) with a Gaussian kernel. + * Tile X coordinate (column) + * Coordinate in XYZ tile numbering scheme. */ - class HeatmapLayer extends datalens.RasterLayer { - /** - * Constructor - * @param provider {datalens.QueryTileProvider} - Source of tiled data - * @param options {datalens.HeatmapLayer.Options} - Configuration for data processing and rendering - */ - constructor(provider: datalens.QueryTileProvider, options: datalens.HeatmapLayer.Options); + type X = number; - /** - * Default value for dataToRows callback option. It represents each row as an object where property names correspond to data column names. - * @param data {datalens.Service.Data} - * @param x {datalens.QueryTileProvider.X} - * @param y {datalens.QueryTileProvider.Y} - * @param zoom {datalens.QueryTileProvider.Zoom} - * @returns {Array} - */ - static defaultDataToRows: (data: datalens.Service.Data, x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, zoom: datalens.QueryTileProvider.Zoom) => - datalens.HeatmapLayer.Row[]; + /** + * Tile Y coordinate (row) + * Coordinate in XYZ tile numbering scheme. + */ + type Y = number; - /** - * Set of possible values for the inputScale option - * @type {datalens.HeatmapLayer.InputScale} - */ - static inputScale: datalens.HeatmapLayer.InputScale; + /** + * Slice of data (eg Data Lens query data row) that represents a data point. + * Each row is transformed into TilePoint and passed to renderTile callback. By default each row is an Object where property names correspond to data column names. + * This representation can be changed with the dataToRows callback. + */ + type Row = number; + } - /** - * Set of possible values for the aggregation option - * @type {datalens.HeatmapLayer.Aggregation} - */ - static aggregation: datalens.HeatmapLayer.Aggregation; + /** + * Provides functionality of value-based heat map with density alpha mask. + * Layer support different types of blending, including weighted average. Also it allows to apply alpha mask calculated by density. + * In most cases, the layer consumes data grouped by 1x1 pixels buckets. For proper averaging it requires aggregated value and count (number of rows in bucket) for each bucket. + * Blending of buckets is implemented via kernel density estimation (KDE) with a Gaussian kernel. + */ + class HeatmapLayer extends RasterLayer { + /** + * Constructor + * @param provider {QueryTileProvider} - Source of tiled data + * @param options {HeatmapLayer.Options} - Configuration for data processing and rendering + */ + constructor(provider: QueryTileProvider, options: HeatmapLayer.Options); - /** - * @param zoom {number} - zoom level - * @return {datalens.HeatmapLayer.Options} - */ - getOptionsPerZoom(zoom: number): datalens.HeatmapLayer.Options; + /** + * Default value for dataToRows callback option. It represents each row as an object where property names correspond to data column names. + * @param data {Service.Data} + * @param x {QueryTileProvider.X} + * @param y {QueryTileProvider.Y} + * @param zoom {QueryTileProvider.Zoom} + * @returns {Array} + */ + static defaultDataToRows: (data: Service.Data, x: QueryTileProvider.X, y: QueryTileProvider.Y, zoom: QueryTileProvider.Zoom) => + HeatmapLayer.Row[]; - /** - * Removes listeners, and references to memory consuming objects, from this layer. Call this method when you no longer need the layer. - */ - dispose(): void; + /** + * Set of possible values for the inputScale option + * @type {HeatmapLayer.InputScale} + */ + static inputScale: HeatmapLayer.InputScale; - /** - * Force re-rendering of the layer. In the case where the callbacks passed to the layer options are not pure functions, you can call this method to force re-rendering. - */ - redraw(): void; - } + /** + * Set of possible values for the aggregation option + * @type {HeatmapLayer.Aggregation} + */ + static aggregation: HeatmapLayer.Aggregation; - namespace HeatmapLayer { - /** - * Defines data processing and rendering options for HeatmapLayer. - * The data processing flow of HeatmapLayer is similar to RasterLayer. The initial step of rendering is to split the tile data by rows, where each row represents a bucket. - * By default this step is processed with datalens.HeatmapLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. - * To collect the rows for a tile including buffer, the rows must be translated to datalens.HeatmapLayer.TilePoint. This translation must be specified with the rowToTilePoint callback. - * Other options define the blending options for the heat map. - * @property dataToRows {function(datalens.Service.Data, datalens.QueryTileProvider.X, datalens.QueryTileProvider.Y, datalens.QueryTileProvider.Zoom)=} - - * Defines how the input tile data is split by rows. You can specify this callback to define client-side aggregation and filtering. This callback is called for each tile. - * @property rowToTilePoint {function(datalens.HeatmapLayer.Row, datalens.HeatmapLayer.X, datalens.HeatmapLayer.Y)=} - - * Defines how the row is translated to the datalens.HeatmapLayer.TilePoint. This callback is called for each row that is returned from dataToRows. - * @property bandwidth {datalens.HeatmapLayer~Bandwidth | datalens.HeatmapLayer~BandwidthStop | Array. | - * datalens.HeatmapLayer~BandwidthCallback=} - Describes the bandwidth behavior in relation to current zoom level A numeric value sets it static across all levels - * An Object with zoom, value and optional zoomIncrementFactor (1 equals doubling on every zoom increment) defines a behavior across all zoom levels - * An Array of one or more zoom, value objects describes the behavior between the two defined levels and extrapolates the implied change outside of the defined range - * Alternatively defines the level of smoothing as a function of the zoom level. The callback must return a value in pixels. - * The cut-off of the Gaussian kernel is defined as 3 * bandwidth , a multiple (default 3) of bandwidth. - * @property valueRange {function(datalens.QueryTileProvider.Zoom)} - Defines the range for the color scale as a function of the zoom level. - * The returned value must be an array of 2 numbers. - * @property countRange {function(datalens.QueryTileProvider.Zoom)} - Defines the range for the density alpha mask as a function of the zoom level. - * When defined, the density alpha mask is applied. The returned value must be an array of 2 numbers. - * @property colorScale {function(number)} - Defines a color palette as a function of the normalized value. You can use D3.js library scale functions with the domain [0, 1]. - * @property alphaScale {function(number)} - Defines the alpha mask value as a function of the normalized count. - * You can use D3.js library scale functions with the domain [0, 1] and the range [0, 1]. - * @property aggregation {datalens.HeatmapLayer.Aggregation} - Specifies which type of aggregation was applied (eg. type of aggregation function for bucket in the Data Lens query). - * Possible values are SUM or AVERAGE. If the aggregation type is AVERAGE , then an averaged heat map is rendered. - * @property inputScale {datalens.HeatmapLayer.InputScale} - Defines the scale (eg logarithmic scale) of the TilePoint value. - * Note: if the value is not in a linear scale, then the aggregation in the source query must be defined with respect to the scale type. - * For example, before applying the average aggregation function in a query, the value must be transformed to the linear scale. This guarantees correct linear averaging of values. - */ - interface Options { - dataToRows?(data: datalens.Service.Data, x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, zoom: datalens.QueryTileProvider.Zoom): - datalens.HeatmapLayer.Row[]; - rowToTilePoint(row: datalens.HeatmapLayer.Row, x: datalens.HeatmapLayer.X, y: datalens.HeatmapLayer.Y): datalens.HeatmapLayer.TilePoint; - bandwidth?: datalens.HeatmapLayer.Bandwidth | datalens.HeatmapLayer.BandwidthStop | datalens.HeatmapLayer.BandwidthStop[] | datalens.HeatmapLayer.BandwidthCallback; - valueRange?(zoom: datalens.QueryTileProvider.Zoom): number[]; - countRange?(zoom: datalens.QueryTileProvider.Zoom): number[]; - colorScale?(scale: number): string; - alphaScale?(scale: number): number; - aggregation?: datalens.HeatmapLayer.Aggregation; - inputScale?: datalens.HeatmapLayer.InputScale; - } + /** + * @param zoom {number} - zoom level + * @return {HeatmapLayer.Options} + */ + getOptionsPerZoom(zoom: number): HeatmapLayer.Options; - /** - * Tile X coordinate (column) - * Coordinate in XYZ tile numbering scheme. - */ - type X = number; + /** + * Removes listeners, and references to memory consuming objects, from this layer. Call this method when you no longer need the layer. + */ + dispose(): void; - /** - * Tile Y coordinate (row) - * Coordinate in XYZ tile numbering scheme. - */ - type Y = number; + /** + * Force re-rendering of the layer. In the case where the callbacks passed to the layer options are not pure functions, you can call this method to force re-rendering. + */ + redraw(): void; + } - /** - * Slice of data (eg Data Lens query data row) that represents a data point. - * Each row is transformed into TilePoint and then rendered on a heat map. By default each row is an Object where property names correspond to data column names. - * This representation can be changed with the dataToRows callback. - */ - interface Row { - tx?: number; - ty?: number; - count?: number; - } - - /** - * Defines a constant for the bandwidth - * A number that sets a constant for the bandwidth across all zoom levels. - */ - type Bandwidth = number; - - /** - * Sets the bandwidth for a given zoom level and uses this to calculate the increment or decrement of the bandwidth at other zoom levels - * This object defines the behavior of the bandwidth value across all zoom levels, initialized by a reference zoom level and its value at that level. - * The default behavior with zoomIncrementFactor = 1 doubles the bandwidth with every increasing zoom level and halves it on every decrease in zoom level. - * For example, a bandwidth of 10@zoom1 turns to 20@zoom2 and 5@zoom0. A zoomIncrementFactor of 0 effectively equals the bandwidth number, ignoring the provided zoom level. - * A zoomIncrementFactor of 0.5 mean a bandwidth increase of 50% compared to a factor of 1. So a bandwidth of 10@zoom1 computes to 15@zoom2. - */ - interface BandwidthStop { - zoom: number; - value: number; - zoomIncrementFactor?: number; - } - - /** - * TODO: this is missing in the documentation: https://developer.here.com/visualization/documentation/datalens/h-datalens-heatmaplayer-options.html - */ - type BandwidthCallback = () => void; - - /** - * Defines the input data format for heat map rendering. - * For heat map rendering, each row of data must be represented as a point within the map tile. - * @property x {number} - Row relative to tile - * @property y {number} - Column relative to tile - * @property value {number} - Value at the point (eg aggregated bucket value) - * @property count {number} - Number of contributors to the value at the point (eg number of rows in a bucket) - * @property data {datalens.HeatmapLayer.Row} - Reference to source data row - */ - interface TilePoint { - x: number; - y: number; - value: number; - count: number; - data?: datalens.HeatmapLayer.Row; - } - - /** - * Set of possible values for the aggregation option. - * If the heat map input data is buckets, then different types of aggregation can be applied to the rows in a bucket. - * The aggregation type is required for proper blending mode of the heat map. For the AVERAGE aggregation type, an averaged heat map is rendered. - * @property SUM {string} - Specifies that the sum aggregation was applied to the bucket value - * @property AVERAGE {string} - Specifies that the average aggregation was applied to the bucket value - */ - enum Aggregation { - SUM, - AVERAGE - } - - /** - * Set of possible values for the inputScale option. - * The input scale is required for proper heat map blending. If the input scale is not linear, then the TilePoint.value is converted to linear scale before calculating the sum or average. - * @property DB {string} - Decibel (dB) scale - * @property LINEAR {string} - Linear scale - * @property LOG {string} - Logarithmic scale - */ - enum InputScale { - DB, - LINEAR, - LOG - } + namespace HeatmapLayer { + /** + * Defines data processing and rendering options for HeatmapLayer. + * The data processing flow of HeatmapLayer is similar to RasterLayer. The initial step of rendering is to split the tile data by rows, where each row represents a bucket. + * By default this step is processed with HeatmapLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. + * To collect the rows for a tile including buffer, the rows must be translated to HeatmapLayer.TilePoint. This translation must be specified with the rowToTilePoint callback. + * Other options define the blending options for the heat map. + * @property dataToRows {function(Service.Data, QueryTileProvider.X, QueryTileProvider.Y, QueryTileProvider.Zoom)=} - + * Defines how the input tile data is split by rows. You can specify this callback to define client-side aggregation and filtering. This callback is called for each tile. + * @property rowToTilePoint {function(HeatmapLayer.Row, HeatmapLayer.X, HeatmapLayer.Y)=} - + * Defines how the row is translated to the HeatmapLayer.TilePoint. This callback is called for each row that is returned from dataToRows. + * @property bandwidth {HeatmapLayer~Bandwidth | HeatmapLayer~BandwidthStop | Array. | + * HeatmapLayer~BandwidthCallback=} - Describes the bandwidth behavior in relation to current zoom level A numeric value sets it static across all levels + * An Object with zoom, value and optional zoomIncrementFactor (1 equals doubling on every zoom increment) defines a behavior across all zoom levels + * An Array of one or more zoom, value objects describes the behavior between the two defined levels and extrapolates the implied change outside of the defined range + * Alternatively defines the level of smoothing as a function of the zoom level. The callback must return a value in pixels. + * The cut-off of the Gaussian kernel is defined as 3 * bandwidth , a multiple (default 3) of bandwidth. + * @property valueRange {function(QueryTileProvider.Zoom)} - Defines the range for the color scale as a function of the zoom level. + * The returned value must be an array of 2 numbers. + * @property countRange {function(QueryTileProvider.Zoom)} - Defines the range for the density alpha mask as a function of the zoom level. + * When defined, the density alpha mask is applied. The returned value must be an array of 2 numbers. + * @property colorScale {function(number)} - Defines a color palette as a function of the normalized value. You can use D3.js library scale functions with the domain [0, 1]. + * @property alphaScale {function(number)} - Defines the alpha mask value as a function of the normalized count. + * You can use D3.js library scale functions with the domain [0, 1] and the range [0, 1]. + * @property aggregation {HeatmapLayer.Aggregation} - Specifies which type of aggregation was applied (eg. type of aggregation function for bucket in the Data Lens query). + * Possible values are SUM or AVERAGE. If the aggregation type is AVERAGE , then an averaged heat map is rendered. + * @property inputScale {HeatmapLayer.InputScale} - Defines the scale (eg logarithmic scale) of the TilePoint value. + * Note: if the value is not in a linear scale, then the aggregation in the source query must be defined with respect to the scale type. + * For example, before applying the average aggregation function in a query, the value must be transformed to the linear scale. This guarantees correct linear averaging of values. + */ + interface Options { + dataToRows?(data: Service.Data, x: QueryTileProvider.X, y: QueryTileProvider.Y, zoom: QueryTileProvider.Zoom): Row[]; + rowToTilePoint(row: Row, x: X, y: Y): TilePoint; + bandwidth?: Bandwidth | BandwidthStop | BandwidthStop[] | BandwidthCallback; + valueRange?(zoom: QueryTileProvider.Zoom): number[]; + countRange?(zoom: QueryTileProvider.Zoom): number[]; + colorScale?(scale: number): string; + alphaScale?(scale: number): number; + aggregation?: Aggregation; + inputScale?: InputScale; } /** - * Presents data as points or spatial map objects with data-driven styles and client-side clustering. - * Applicable for drawing interactive map objects like markers, polygons, circles and other instances of map.Object. Source of data can be either tiled or not tiled. - * Styles for objects can be parametrized with data rows and zoom level. Allows to create data-driven icons for markers like donuts or bars. - * Also enables clustering and data domains for visualizing up to 100k points or more. + * Tile X coordinate (column) + * Coordinate in XYZ tile numbering scheme. */ - class ObjectLayer extends map.layer.ObjectLayer { - /** - * Constructor - * @param provider {map.provider.RemoteTileProvider | datalens.Provider | datalens.QueryProvider | datalens.QueryTileProvider} - Data source (tiled or not) - * @param options {datalens.ObjectLayer.Options} - Defines data processing, clustering and data-driven styling - */ - constructor(provider: map.provider.RemoteTileProvider | datalens.Provider | datalens.QueryProvider | datalens.QueryTileProvider, options: datalens.ObjectLayer.Options); + type X = number; - /** - * Default value for dataToRows callback option. It represents each row as an object where property names correspond to data column names. - * @property data {datalens.Service.Data} - * @returns {Array} - */ - static defaultDataToRows(data: datalens.Service.Data): datalens.ObjectLayer.Row[]; + /** + * Tile Y coordinate (row) + * Coordinate in XYZ tile numbering scheme. + */ + type Y = number; - /** - * A factory method for data-driven icons. The method allows you to build an icon from SVG markup or JsonML object. Provides caching of icons with the same markup. - * @param svg {string | Array} - SVG presented as markup or JsonML Array - * @param options {map.Icon.Options=} - Icon options (eg size and anchor). Note that the default anchor is in the middle. - * @param options.size {H.math.ISize | number} - When the icon is a square, you can define the size as a number in pixels - * @returns {map.Icon} - Icon which can be used for marker or cluster - */ - static createIcon(svg: string | any[], options?: map.Icon.Options): map.Icon; - - /** - * Returns cache of icons created with the createIcon method. Can be used to clean the icon cache. - * @return {util.Cache} - Icon cache - */ - static getIconCache(): util.Cache; - - /** - * Force re-rendering of the layer. In the case where the callbacks passed to the layer options are not pure functions, you can call this method to force re-rendering. - */ - redraw(): void; - - /** - * Recalculates the style and applies it to the map object based on the new StyleState - * @param object {map.Object} - Map object - * @param state {datalens.ObjectLayer.StyleState} - New state - */ - updateObjectStyle(any: map.Object, state: datalens.ObjectLayer.StyleState): void; - } - - namespace ObjectLayer { - /** - * Defines data processing and data-driven styling for ObjectLayer - * The initial step of rendering is to split the tile data by rows, where each row represents a bucket. - * By default this step is processed with datalens.ObjectLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. - * In the next step each row must be presented as a map object with the rowToMapObject callback. Data-driven styling can be provided with the rowToStyle callback. - * @property dataToRows {function(datalens.Service.Data)=} - Defines how the input data is split by rows. You can specify this callback to define client-side aggregation and filtering. - * @property rowToMapObject {function(datalens.ObjectLayer.Row, datalens.QueryTileProvider.Zoom)} - Defines how each row is presented on the map (eg marker, polygon) - * @property rowToStyle {function(datalens.ObjectLayer.Row, datalens.QueryTileProvider.Zoom, datalens.ObjectLayer.StyleState)=} - - * Defines map object style and icon according to data row and zoom level. Also it can define different styles depending on the StyleState (eg hovered, selected). - * @property dataDomains {datalens.ObjectLayer.DataDomains=} - Defines quantization of data for improving data-driven styling performance - * @property clustering {datalens.ObjectLayer.Clustering=} - When present, client-side clustering is applied - */ - interface Options { - dataToRows?(data: datalens.Service.Data): datalens.ObjectLayer.Row[]; - rowToMapObject(row: datalens.ObjectLayer.Row, z: datalens.QueryTileProvider.Zoom): map.Object; - rowToStyle?(row: datalens.ObjectLayer.Row, z: datalens.QueryTileProvider.Zoom, styleState: datalens.ObjectLayer.StyleState): datalens.ObjectLayer.ObjectStyleOptions; - dataDomains?: datalens.ObjectLayer.DataDomains; - clustering?: datalens.ObjectLayer.Clustering; - } - - /** - * Defines client-side clustering in the ObjectLayer. - * When the clustering option is provided, rows returned from dataToRows go to the clustering.rowToDataPoint callback to be transformed to data points. - * Then, the data points are clustered according to clustering.options. Clustering produces clusters and noise points (data points that are not clustered). - * Clusters and noise points must be presented as map objects with the rowToMapObject callback and can be styled with the rowToStyle callback. - * @property rowToDataPoint {datalens.ObjectLayer.Row} - Defines data points from rows - * @property options {function(datalens.QueryTileProvider.Zoom)} - Defines clustering options as a function of the zoom level - */ - interface Clustering { - rowToDataPoint(row: datalens.ObjectLayer.Row): clustering.DataPoint; - options(zoom: datalens.QueryTileProvider.Zoom): clustering.Provider.ClusteringOptions; - } - - /** - * Slice of data (eg Data Lens query data row) that represents a data point. - * Each row is translated to map objects with the rowToMapObject callback. By default each row is an Object where property names correspond to data column names. - * This representation can be changed with the dataToRows callback. - */ - interface Row { - getPosition(): geo.Point; - isCluster(): boolean; - lat: number; - lng: number; - } - - /** - * User defined modification of a data-driven style - * StyleState appears as a parameter in the rowToStyle callback. By default it is 'DEFAULT_STATE'. To change StyleState, use the ObjectLayer.updateObjectStyle method. - */ - type StyleState = any; - - /** - * Output from the rowToStyle callback. - * Defines the styles or the icon that is applied to the map object. - * @property icon {map.Icon} - Marker icon - * @property style {map.SpatialStyle.Options} - Spatial style - * @property arrows {map.ArrowStyle.Options} - Style of arrows to render along a polyline - * @property zIndex {number} - The z-index value of the map object, default is 0 - */ - interface ObjectStyleOptions { - icon: map.Icon; - style?: map.SpatialStyle.Options; - arrows?: map.ArrowStyle.Options; - zIndex?: number; - } - - /** - * Input data quantization domain, used to optimize styling performance. - * The option must have properties corresponding to the properties of datalens.ObjectLayer.Row. Values must be represented as an Array of Numbers that defines the quantization domain. - * When provided, the input data will be quantized, and rowToStyle will be called only for quantized values. - */ - type DataDomains = any; + /** + * Slice of data (eg Data Lens query data row) that represents a data point. + * Each row is transformed into TilePoint and then rendered on a heat map. By default each row is an Object where property names correspond to data column names. + * This representation can be changed with the dataToRows callback. + */ + interface Row { + tx?: number; + ty?: number; + count?: number; } /** - * Defines how to load data from a raw data file - * This provider defines the interface for loading data, such as geometries or coordinates, from a local or remote data file in GeoJSON or CSV format + * Defines a constant for the bandwidth + * A number that sets a constant for the bandwidth across all zoom levels. */ - class RawDataProvider extends map.provider.RemoteTileProvider { - /** - * Constructor - * @param options {datalens.RawDataProvider.Options} - Configures options - */ - constructor(options: datalens.RawDataProvider.Options); + type Bandwidth = number; - /** - * Updates the data url. Note that new data will be fetched only after the reload method is called. - * @param dataUrl {string} - */ - setDataUrl(dataUrl: string): void; - } - - namespace RawDataProvider { - /** - * Defines options for RawDataProvider - * Options for RawDataProvider - * @property dataUrl - The data url to fetch - * @property dataToFeatures {function(any)=} - Defines how the input data is mapped to an array of GeoJSON features - * @property featuresToRows {function(Array, datalens.QueryTileProvider.X, datalens.QueryTileProvider.Y, datalens.QueryTileProvider.Zoom, - * datalens.RawDataProvider.TileSize, datalens.RawDataProvider.Helpers)=} - - * Defines how GeoJSON features on a tile should be mapped to data rows, which are inputs to layers such as ObjectLayer and HeatmapLayer - */ - interface Options { - dataUrl?: string; - dataToFeatures?(obj: any): datalens.RawDataProvider.Feature[]; - featuresToRows?(features: datalens.RawDataProvider.Feature[], x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, z: datalens.QueryTileProvider.Zoom, - tileSize: datalens.RawDataProvider.TileSize, helpers: datalens.RawDataProvider.Helpers): datalens.ObjectLayer.Row[]; - } - - /** - * A GeoJSON feature - * A GeoJSON feature object which conforms to the standard GeoJSON spec - */ - type Feature = any; - - /** - * Tile size - * The tile size in pixels. - */ - type TileSize = any; - - /** - * A helper class used in the worker thread - * This helper class provides convenience functions you can use in the worker thread - * @property latLngToPixel {function(datalens.RawDataProvider.Latitude, datalens.RawDataProvider.Longitude, datalens.QueryTileProvider.Zoom, datalens.RawDataProvider.TileSize)=} - - * Translates geographical coordinates (latitude, longitude) to world pixel coordinates. - * @property pixelToLatLng {function(datalens.RawDataProvider.PX, datalens.RawDataProvider.PY, datalens.QueryTileProvider.Zoom, datalens.RawDataProvider.TileSize)=} - - * Translates world pixel coordinates to geographical coordinates (latitude, longitude). - * @property parseCSV {function(any)=} - Takes CSV data as input, parses it, and return the parsed result. - */ - interface Helpers { - latLngToPixel?(latitude: datalens.RawDataProvider.Latitude, longitude: datalens.RawDataProvider.Longitude, z: datalens.QueryTileProvider.Zoom, - tileSize: datalens.RawDataProvider.TileSize): datalens.RawDataProvider.PixelCoordinates; - pixelToLatLng?(x: datalens.RawDataProvider.PX, y: datalens.RawDataProvider.PY, z: datalens.QueryTileProvider.Zoom, tileSize: datalens.RawDataProvider.TileSize): - datalens.RawDataProvider.GeoCoordinates; - parseCSV?(obj: any): any[]; - } - - /** - * Geographic coordinates - * A geographic coordinates pair [lat, lng] - */ - type GeoCoordinates = [number, number]; - - /** - * Latitude coordinate - * The latitude in the geographic coordinates pair - */ - type Latitude = number; - - /** - * Longitude coordinate - * The longitude in the geographic coordinates pair - */ - type Longitude = number; - - /** - * Pixel coordinates - * Pixel coordinates [px, py] pair - */ - type PixelCoordinates = [number, number]; - - /** - * Pixel coordinate in the x direction - * The x coordinate of the pixel coordinates pair [px, py] - */ - type PX = number; - - /** - * Pixel coordinate in the y direction - * The y coordinate of the pixel coordinates pair [px, py] - */ - type PY = number; + /** + * Sets the bandwidth for a given zoom level and uses this to calculate the increment or decrement of the bandwidth at other zoom levels + * This object defines the behavior of the bandwidth value across all zoom levels, initialized by a reference zoom level and its value at that level. + * The default behavior with zoomIncrementFactor = 1 doubles the bandwidth with every increasing zoom level and halves it on every decrease in zoom level. + * For example, a bandwidth of 10@zoom1 turns to 20@zoom2 and 5@zoom0. A zoomIncrementFactor of 0 effectively equals the bandwidth number, ignoring the provided zoom level. + * A zoomIncrementFactor of 0.5 mean a bandwidth increase of 50% compared to a factor of 1. So a bandwidth of 10@zoom1 computes to 15@zoom2. + */ + interface BandwidthStop { + zoom: number; + value: number; + zoomIncrementFactor?: number; } /** - * Renders vector tiles using data-driven styles - * This layer binds the spatial data and user data, all provided by the Data Lens REST API. The layer renders geometry features using data-driven styles. + * TODO: this is missing in the documentation: https://developer.here.com/visualization/documentation/datalens/h-datalens-heatmaplayer-options.html */ - class SpatialLayer extends map.layer.TileLayer { - /** - * Constructor - * @param dataProvider {datalens.Provider} - Source of tiled data (pass in null if data come from feature properties) - * @param spatialProvider {datalens.SpatialTileProvider} - Source of geometry data - * @param options {datalens.SpatialLayer.Options} - Configuration for data processing and rendering - */ - constructor(dataProvider: datalens.Provider, spatialProvider: datalens.SpatialTileProvider, options: datalens.SpatialLayer.Options); + type BandwidthCallback = () => void; - static DEFAULT_STATE: any; - static Spatial: any; - - /** - * Default value for dataToRows callback option. It represents each row as an object where property names correspond to data column names. - */ - static defaultDataToRows: any; - - /** - * Forces re-rendering of the layer. When the callbacks passed to the layer options are not pure functions, you can call this method to force re-rendering. - */ - redraw(): void; - - /** - * This method changes the state of a map object; for example, style on mouse event. - * @param {map.Object} spatial - * @param {datalens.SpatialLayer.StyleState} state - */ - updateSpatialStyle(spatial: map.Object, state: datalens.SpatialLayer.StyleState): void; - } - - namespace SpatialLayer { - /** - * Defines data processing and rendering options for SpatialLayer - * The initial step of rendering is to split the tile data by rows, where each row represents a bucket. - * By default this step is processed with datalens.SpatialLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. - * @property dataToRows {function(datalens.Service.Data, datalens.QueryTileProvider.X, datalens.QueryTileProvider.Y, datalens.QueryTileProvider.Zoom)=} - - * Defines how the input tile data is split by rows. You can specify this callback to define client-side aggregation and filtering. This callback is called for each tile. - * @property rowToSpatialId {function(datalens.SpatialLayer.Row)} - - * Defines how to get the spatial ID from a data row. This callback is called for each row that is returned from dataToRows. - * @property featureToSpatialId {function(datalens.SpatialLayer.Feature)} - - * Defines how to get the spatial ID from a geometry feature. This callback is called for each geometry feature in the vector tile. - * @property rowToStyle {function(datalens.SpatialLayer.Row, datalens.QueryTileProvider.Zoom, datalens.SpatialLayer.StyleState)} - - * Defines how the row is translated to map object style. This callback is called for each row that is returned from dataToRows. - * @property defaultStyle {function(datalens.QueryTileProvider.Zoom, datalens.SpatialLayer.StyleState)} - Defines the default map object style. - * @property transformFeature {datalens.SpatialLayer.transformFeature} - Defines how to transform the features. - */ - interface Options { - dataToRows?(data: datalens.Service.Data, x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, z: datalens.QueryTileProvider.Zoom): - datalens.SpatialLayer.Row[]; - rowToSpatialId(row: datalens.SpatialLayer.Row): string; - featureToSpatialId(feature: datalens.SpatialLayer.Feature): string; - rowToStyle(row: datalens.SpatialLayer.Row, z: datalens.QueryTileProvider.Zoom, styleState: datalens.SpatialLayer.StyleState): any; - defaultStyle(z: datalens.QueryTileProvider.Zoom, styleState: datalens.SpatialLayer.StyleState): any; - transformFeature: datalens.SpatialLayer.transformFeature; - } - - /** - * Defines modification of a data-driven style - * StyleState appears as a parameter in the rowToStyle callback. By default it is 'DEFAULT_STATE'. To change StyleState, use the SpatialLayer.updateSpatialStyle method. - */ - type StyleState = any; - - /** - * Defines a slice of data (eg Data Lens query data row) that represents a data point - * By default each row is an object where property names correspond to data column names. This representation can be changed with the dataToRows callback. - */ - type Row = any; - - /** - * Defines a geometry in the vector tile - * Each geometry is described by various properties, including a unique identifier which must be used to map the geometry to user data. - */ - type Feature = any; - - /** - * TODO: missing in documentation: https://developer.here.com/visualization/documentation/datalens/h-datalens-spatiallayer-options.html - */ - type transformFeature = any; + /** + * Defines the input data format for heat map rendering. + * For heat map rendering, each row of data must be represented as a point within the map tile. + * @property x {number} - Row relative to tile + * @property y {number} - Column relative to tile + * @property value {number} - Value at the point (eg aggregated bucket value) + * @property count {number} - Number of contributors to the value at the point (eg number of rows in a bucket) + * @property data {HeatmapLayer.Row} - Reference to source data row + */ + interface TilePoint { + x: number; + y: number; + value: number; + count: number; + data?: Row; } /** - * Specifies how to access layer data (shapes, geometries) using the Data Lens REST API. - * This provider defines the interface for accessing shape layers via the Data Lens REST API. The input data is provided as vector tiles in the MapBox format (Protobuf). - * Data is loaded by tiles. + * Set of possible values for the aggregation option. + * If the heat map input data is buckets, then different types of aggregation can be applied to the rows in a bucket. + * The aggregation type is required for proper blending mode of the heat map. For the AVERAGE aggregation type, an averaged heat map is rendered. + * @property SUM {string} - Specifies that the sum aggregation was applied to the bucket value + * @property AVERAGE {string} - Specifies that the average aggregation was applied to the bucket value */ - class SpatialTileProvider extends map.provider.RemoteTileProvider { - /** - * Constructor - * @param service {datalens.Service} - Data Lens REST API service - * @param options {datalens.SpatialTileProvider.Options} - Configures layer name - */ - constructor(service: datalens.Service, options: datalens.SpatialTileProvider.Options); - - static VectorTile: any; - - /** - * Updates the layer name to be used in the next call of the Data Lens REST API. Note that new data will be fetched only after the reload method is called. - * @param {string} layerName - */ - setLayerName(layerName: string): void; - - /** - * Updates the query's dynamic parameters to be used in the next call of the Data Lens REST API. Note that new data will be fetched only after the reload method is called. - * This method is normally used when updating your visualization. - * @param {any|null} queryParams - */ - setQueryParams(queryParams: any | null): void; + enum Aggregation { + SUM, + AVERAGE } - namespace SpatialTileProvider { - /** - * Defines layer name and data accessibility parameters for datalens.SpatialTileProvider - * This defines the layer name and dynamic parameters required for fetching tiled geometry data with the Data Lens REST API. Other options from datalens.Provider.Options are available. - * @property layerName {string} - The name of the layer to fetch with the Data Lens REST API query - * @property queryParams {any} - The query's dynamic parameters. The dynamic parameters can be used to filter data provided by the query. - */ - interface Options { - layerName: string; - queryParams?: any; - } + /** + * Set of possible values for the inputScale option. + * The input scale is required for proper heat map blending. If the input scale is not linear, then the TilePoint.value is converted to linear scale before calculating the sum or average. + * @property DB {string} - Decibel (dB) scale + * @property LINEAR {string} - Linear scale + * @property LOG {string} - Logarithmic scale + */ + enum InputScale { + DB, + LINEAR, + LOG + } + } + + /** + * Presents data as points or spatial map objects with data-driven styles and client-side clustering. + * Applicable for drawing interactive map objects like markers, polygons, circles and other instances of map.Object. Source of data can be either tiled or not tiled. + * Styles for objects can be parametrized with data rows and zoom level. Allows to create data-driven icons for markers like donuts or bars. + * Also enables clustering and data domains for visualizing up to 100k points or more. + */ + class ObjectLayer extends map.layer.ObjectLayer { + /** + * Constructor + * @param provider {map.provider.RemoteTileProvider | Provider | QueryProvider | QueryTileProvider} - Data source (tiled or not) + * @param options {ObjectLayer.Options} - Defines data processing, clustering and data-driven styling + */ + constructor(provider: map.provider.RemoteTileProvider | Provider | QueryProvider | QueryTileProvider, options: ObjectLayer.Options); + + /** + * Default value for dataToRows callback option. It represents each row as an object where property names correspond to data column names. + * @property data {Service.Data} + * @returns {Array} + */ + static defaultDataToRows(data: Service.Data): ObjectLayer.Row[]; + + /** + * A factory method for data-driven icons. The method allows you to build an icon from SVG markup or JsonML object. Provides caching of icons with the same markup. + * @param svg {string | Array} - SVG presented as markup or JsonML Array + * @param options {map.Icon.Options=} - Icon options (eg size and anchor). Note that the default anchor is in the middle. + * @param options.size {H.math.ISize | number} - When the icon is a square, you can define the size as a number in pixels + * @returns {map.Icon} - Icon which can be used for marker or cluster + */ + static createIcon(svg: string | any[], options?: map.Icon.Options): map.Icon; + + /** + * Returns cache of icons created with the createIcon method. Can be used to clean the icon cache. + * @return {util.Cache} - Icon cache + */ + static getIconCache(): util.Cache; + + /** + * Force re-rendering of the layer. In the case where the callbacks passed to the layer options are not pure functions, you can call this method to force re-rendering. + */ + redraw(): void; + + /** + * Recalculates the style and applies it to the map object based on the new StyleState + * @param object {map.Object} - Map object + * @param state {ObjectLayer.StyleState} - New state + */ + updateObjectStyle(any: map.Object, state: ObjectLayer.StyleState): void; + } + + namespace ObjectLayer { + /** + * Defines data processing and data-driven styling for ObjectLayer + * The initial step of rendering is to split the tile data by rows, where each row represents a bucket. + * By default this step is processed with ObjectLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. + * In the next step each row must be presented as a map object with the rowToMapObject callback. Data-driven styling can be provided with the rowToStyle callback. + * @property dataToRows {function(Service.Data)=} - Defines how the input data is split by rows. You can specify this callback to define client-side aggregation and filtering. + * @property rowToMapObject {function(ObjectLayer.Row, QueryTileProvider.Zoom)} - Defines how each row is presented on the map (eg marker, polygon) + * @property rowToStyle {function(ObjectLayer.Row, QueryTileProvider.Zoom, ObjectLayer.StyleState)=} - + * Defines map object style and icon according to data row and zoom level. Also it can define different styles depending on the StyleState (eg hovered, selected). + * @property dataDomains {ObjectLayer.DataDomains=} - Defines quantization of data for improving data-driven styling performance + * @property clustering {ObjectLayer.Clustering=} - When present, client-side clustering is applied + */ + interface Options { + dataToRows?(data: Service.Data): Row[]; + rowToMapObject(row: Row, z: QueryTileProvider.Zoom): map.Object; + rowToStyle?(row: Row, z: QueryTileProvider.Zoom, styleState: StyleState): ObjectStyleOptions; + dataDomains?: DataDomains; + clustering?: Clustering; + } + + /** + * Defines client-side clustering in the ObjectLayer. + * When the clustering option is provided, rows returned from dataToRows go to the clustering.rowToDataPoint callback to be transformed to data points. + * Then, the data points are clustered according to clustering.options. Clustering produces clusters and noise points (data points that are not clustered). + * Clusters and noise points must be presented as map objects with the rowToMapObject callback and can be styled with the rowToStyle callback. + * @property rowToDataPoint {ObjectLayer.Row} - Defines data points from rows + * @property options {function(QueryTileProvider.Zoom)} - Defines clustering options as a function of the zoom level + */ + interface Clustering { + rowToDataPoint(row: Row): clustering.DataPoint; + options(zoom: QueryTileProvider.Zoom): clustering.Provider.ClusteringOptions; + } + + /** + * Slice of data (eg Data Lens query data row) that represents a data point. + * Each row is translated to map objects with the rowToMapObject callback. By default each row is an Object where property names correspond to data column names. + * This representation can be changed with the dataToRows callback. + */ + interface Row { + getPosition(): geo.Point; + isCluster(): boolean; + lat: number; + lng: number; + } + + /** + * User defined modification of a data-driven style + * StyleState appears as a parameter in the rowToStyle callback. By default it is 'DEFAULT_STATE'. To change StyleState, use the ObjectLayer.updateObjectStyle method. + */ + type StyleState = any; + + /** + * Output from the rowToStyle callback. + * Defines the styles or the icon that is applied to the map object. + * @property icon {map.Icon} - Marker icon + * @property style {map.SpatialStyle.Options} - Spatial style + * @property arrows {map.ArrowStyle.Options} - Style of arrows to render along a polyline + * @property zIndex {number} - The z-index value of the map object, default is 0 + */ + interface ObjectStyleOptions { + icon: map.Icon; + style?: map.SpatialStyle.Options; + arrows?: map.ArrowStyle.Options; + zIndex?: number; + } + + /** + * Input data quantization domain, used to optimize styling performance. + * The option must have properties corresponding to the properties of ObjectLayer.Row. Values must be represented as an Array of Numbers that defines the quantization domain. + * When provided, the input data will be quantized, and rowToStyle will be called only for quantized values. + */ + type DataDomains = any; + } + + /** + * Defines how to load data from a raw data file + * This provider defines the interface for loading data, such as geometries or coordinates, from a local or remote data file in GeoJSON or CSV format + */ + class RawDataProvider extends map.provider.RemoteTileProvider { + /** + * Constructor + * @param options {RawDataProvider.Options} - Configures options + */ + constructor(options: RawDataProvider.Options); + + /** + * Updates the data url. Note that new data will be fetched only after the reload method is called. + * @param dataUrl {string} + */ + setDataUrl(dataUrl: string): void; + } + + namespace RawDataProvider { + /** + * Defines options for RawDataProvider + * Options for RawDataProvider + * @property dataUrl - The data url to fetch + * @property dataToFeatures {function(any)=} - Defines how the input data is mapped to an array of GeoJSON features + * @property featuresToRows {function(Array, QueryTileProvider.X, QueryTileProvider.Y, QueryTileProvider.Zoom, + * RawDataProvider.TileSize, RawDataProvider.Helpers)=} - + * Defines how GeoJSON features on a tile should be mapped to data rows, which are inputs to layers such as ObjectLayer and HeatmapLayer + */ + interface Options { + dataUrl?: string; + dataToFeatures?(obj: any): Feature[]; + featuresToRows?(features: Feature[], x: QueryTileProvider.X, y: QueryTileProvider.Y, z: QueryTileProvider.Zoom, + tileSize: TileSize, helpers: Helpers): ObjectLayer.Row[]; + } + + /** + * A GeoJSON feature + * A GeoJSON feature object which conforms to the standard GeoJSON spec + */ + type Feature = any; + + /** + * Tile size + * The tile size in pixels. + */ + type TileSize = any; + + /** + * A helper class used in the worker thread + * This helper class provides convenience functions you can use in the worker thread + * @property latLngToPixel {function(RawDataProvider.Latitude, RawDataProvider.Longitude, QueryTileProvider.Zoom, RawDataProvider.TileSize)=} - + * Translates geographical coordinates (latitude, longitude) to world pixel coordinates. + * @property pixelToLatLng {function(RawDataProvider.PX, RawDataProvider.PY, QueryTileProvider.Zoom, RawDataProvider.TileSize)=} - + * Translates world pixel coordinates to geographical coordinates (latitude, longitude). + * @property parseCSV {function(any)=} - Takes CSV data as input, parses it, and return the parsed result. + */ + interface Helpers { + latLngToPixel?(latitude: Latitude, longitude: Longitude, z: QueryTileProvider.Zoom, + tileSize: TileSize): PixelCoordinates; + pixelToLatLng?(x: PX, y: PY, z: QueryTileProvider.Zoom, tileSize: TileSize): GeoCoordinates; + parseCSV?(obj: any): any[]; + } + + /** + * Geographic coordinates + * A geographic coordinates pair [lat, lng] + */ + type GeoCoordinates = [number, number]; + + /** + * Latitude coordinate + * The latitude in the geographic coordinates pair + */ + type Latitude = number; + + /** + * Longitude coordinate + * The longitude in the geographic coordinates pair + */ + type Longitude = number; + + /** + * Pixel coordinates + * Pixel coordinates [px, py] pair + */ + type PixelCoordinates = [number, number]; + + /** + * Pixel coordinate in the x direction + * The x coordinate of the pixel coordinates pair [px, py] + */ + type PX = number; + + /** + * Pixel coordinate in the y direction + * The y coordinate of the pixel coordinates pair [px, py] + */ + type PY = number; + } + + /** + * Renders vector tiles using data-driven styles + * This layer binds the spatial data and user data, all provided by the Data Lens REST API. The layer renders geometry features using data-driven styles. + */ + class SpatialLayer extends map.layer.TileLayer { + /** + * Constructor + * @param dataProvider {Provider} - Source of tiled data (pass in null if data come from feature properties) + * @param spatialProvider {SpatialTileProvider} - Source of geometry data + * @param options {SpatialLayer.Options} - Configuration for data processing and rendering + */ + constructor(dataProvider: Provider, spatialProvider: SpatialTileProvider, options: SpatialLayer.Options); + + static DEFAULT_STATE: any; + static Spatial: any; + + /** + * Default value for dataToRows callback option. It represents each row as an object where property names correspond to data column names. + */ + static defaultDataToRows: any; + + /** + * Forces re-rendering of the layer. When the callbacks passed to the layer options are not pure functions, you can call this method to force re-rendering. + */ + redraw(): void; + + /** + * This method changes the state of a map object; for example, style on mouse event. + * @param {map.Object} spatial + * @param {SpatialLayer.StyleState} state + */ + updateSpatialStyle(spatial: map.Object, state: SpatialLayer.StyleState): void; + } + + namespace SpatialLayer { + /** + * Defines data processing and rendering options for SpatialLayer + * The initial step of rendering is to split the tile data by rows, where each row represents a bucket. + * By default this step is processed with SpatialLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. + * @property dataToRows {function(Service.Data, QueryTileProvider.X, QueryTileProvider.Y, QueryTileProvider.Zoom)=} - + * Defines how the input tile data is split by rows. You can specify this callback to define client-side aggregation and filtering. This callback is called for each tile. + * @property rowToSpatialId {function(SpatialLayer.Row)} - + * Defines how to get the spatial ID from a data row. This callback is called for each row that is returned from dataToRows. + * @property featureToSpatialId {function(SpatialLayer.Feature)} - + * Defines how to get the spatial ID from a geometry feature. This callback is called for each geometry feature in the vector tile. + * @property rowToStyle {function(SpatialLayer.Row, QueryTileProvider.Zoom, SpatialLayer.StyleState)} - + * Defines how the row is translated to map object style. This callback is called for each row that is returned from dataToRows. + * @property defaultStyle {function(QueryTileProvider.Zoom, SpatialLayer.StyleState)} - Defines the default map object style. + * @property transformFeature {SpatialLayer.transformFeature} - Defines how to transform the features. + */ + interface Options { + dataToRows?(data: Service.Data, x: QueryTileProvider.X, y: QueryTileProvider.Y, z: QueryTileProvider.Zoom): Row[]; + rowToSpatialId(row: Row): string; + featureToSpatialId(feature: Feature): string; + rowToStyle(row: Row, z: QueryTileProvider.Zoom, styleState: StyleState): any; + defaultStyle(z: QueryTileProvider.Zoom, styleState: StyleState): any; + transformFeature: transformFeature; + } + + /** + * Defines modification of a data-driven style + * StyleState appears as a parameter in the rowToStyle callback. By default it is 'DEFAULT_STATE'. To change StyleState, use the SpatialLayer.updateSpatialStyle method. + */ + type StyleState = any; + + /** + * Defines a slice of data (eg Data Lens query data row) that represents a data point + * By default each row is an object where property names correspond to data column names. This representation can be changed with the dataToRows callback. + */ + type Row = any; + + /** + * Defines a geometry in the vector tile + * Each geometry is described by various properties, including a unique identifier which must be used to map the geometry to user data. + */ + type Feature = any; + + /** + * TODO: missing in documentation: https://developer.here.com/visualization/documentation/datalens/h-datalens-spatiallayer-options.html + */ + type transformFeature = any; + } + + /** + * Specifies how to access layer data (shapes, geometries) using the Data Lens REST API. + * This provider defines the interface for accessing shape layers via the Data Lens REST API. The input data is provided as vector tiles in the MapBox format (Protobuf). + * Data is loaded by tiles. + */ + class SpatialTileProvider extends map.provider.RemoteTileProvider { + /** + * Constructor + * @param service {Service} - Data Lens REST API service + * @param options {SpatialTileProvider.Options} - Configures layer name + */ + constructor(service: Service, options: SpatialTileProvider.Options); + + static VectorTile: any; + + /** + * Updates the layer name to be used in the next call of the Data Lens REST API. Note that new data will be fetched only after the reload method is called. + * @param {string} layerName + */ + setLayerName(layerName: string): void; + + /** + * Updates the query's dynamic parameters to be used in the next call of the Data Lens REST API. Note that new data will be fetched only after the reload method is called. + * This method is normally used when updating your visualization. + * @param {any|null} queryParams + */ + setQueryParams(queryParams: any | null): void; + } + + namespace SpatialTileProvider { + /** + * Defines layer name and data accessibility parameters for SpatialTileProvider + * This defines the layer name and dynamic parameters required for fetching tiled geometry data with the Data Lens REST API. Other options from Provider.Options are available. + * @property layerName {string} - The name of the layer to fetch with the Data Lens REST API query + * @property queryParams {any} - The query's dynamic parameters. The dynamic parameters can be used to filter data provided by the query. + */ + interface Options { + layerName: string; + queryParams?: any; } } } diff --git a/types/heremaps/index.d.ts b/types/heremaps/index.d.ts index b9382485c4..3c01018a3e 100644 --- a/types/heremaps/index.d.ts +++ b/types/heremaps/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for HERE Maps API for JavaScript 3.0 // Project: https://developer.here.com/ -// Definitions by: Joshua Efiong +// Definitions by: Joshua Efiong // Bernd Hacker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/heremaps/tslint.json b/types/heremaps/tslint.json index 4ac54521fe..81562efc97 100644 --- a/types/heremaps/tslint.json +++ b/types/heremaps/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + // TODOs + "interface-name": false, + "no-unnecessary-qualifier": false } } \ No newline at end of file diff --git a/types/highcharts/index.d.ts b/types/highcharts/index.d.ts index 13ac88f875..1c8c7da8c6 100644 --- a/types/highcharts/index.d.ts +++ b/types/highcharts/index.d.ts @@ -6556,7 +6556,7 @@ declare namespace Highcharts { * @param {def} A serialized form of an SVG definition, including children. * @since 5.0.0 */ - definition(def: object): Highcharts.ElementObject; + definition(def: object): ElementObject; /** * Add an SVG/VML group. * @param [string] name The name of the group. This will be used in the class name, which will be 'highcharts-'+ name. diff --git a/types/highcharts/test/index.ts b/types/highcharts/test/index.ts index c1dfdc6e31..8652ad7ec0 100644 --- a/types/highcharts/test/index.ts +++ b/types/highcharts/test/index.ts @@ -355,7 +355,7 @@ function test_ChartOptions() { }, tooltip: { formatter() { - return ' ' + this.series.name + '
    ' + this.x + ': ' + this.y; + return ` ${this.series.name}
    ${this.x}: ${this.y}`; } }, plotOptions: {}, @@ -2384,10 +2384,10 @@ function test_AxisObject() { }); axis.removePlotLine('plot-line-1'); const extremes = axis.getExtremes(); - console.log('dataMax: ' + extremes.dataMax + '
    ' + - 'dataMin: ' + extremes.dataMin + '
    ' + - 'max: ' + extremes.max + '
    ' + - 'min: ' + extremes.min + '
    '); + console.log(`dataMax: ${extremes.dataMax}
    ` + + `dataMin: ${extremes.dataMin}
    ` + + `max: ${extremes.max}
    ` + + `min: ${extremes.min}
    `); axis.remove(); axis.remove(false); axis.setCategories(['A', 'B', 'C']); diff --git a/types/highland/index.d.ts b/types/highland/index.d.ts index 0d9aedb609..cfbeb9b3de 100644 --- a/types/highland/index.d.ts +++ b/types/highland/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for Highland 2.10.5 // Project: http://highlandjs.org/ -// Definitions by: Bart van der Schoor -// Hugo Wood +// Definitions by: Bart van der Schoor +// Hugo Wood // William Yu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/highlight.js/index.d.ts b/types/highlight.js/index.d.ts index 5aecd275f4..7ae5d613fe 100644 --- a/types/highlight.js/index.d.ts +++ b/types/highlight.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for highlight.js v9.1.0 // Project: https://github.com/isagalaev/highlight.js -// Definitions by: Niklas Mollenhauer , Jeremy Hull +// Definitions by: Niklas Mollenhauer , Jeremy Hull // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace hljs diff --git a/types/history.js/index.d.ts b/types/history.js/index.d.ts index 13d66b8cf6..97cac45b76 100644 --- a/types/history.js/index.d.ts +++ b/types/history.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for History.js 1.8.0 // Project: https://github.com/browserstate/history.js -// Definitions by: Boris Yankov , Gidon Junge +// Definitions by: Boris Yankov , Gidon Junge // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/hooker/index.d.ts b/types/hooker/index.d.ts index 7727626a2d..40223c5c34 100644 --- a/types/hooker/index.d.ts +++ b/types/hooker/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for JavaScript Hooker v0.2.3 // Project: https://github.com/cowboy/javascript-hooker -// Definitions by: Michael Zabka +// Definitions by: Michael Zabka // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/howler/index.d.ts b/types/howler/index.d.ts index 0966f4a472..98a211b583 100644 --- a/types/howler/index.d.ts +++ b/types/howler/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for howler.js v2.0.0 // Project: https://github.com/goldfire/howler.js -// Definitions by: Pedro Casaubon , Todd Dukart +// Definitions by: Pedro Casaubon , Todd Dukart // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface HowlerGlobal { diff --git a/types/html-entities/index.d.ts b/types/html-entities/index.d.ts index b93c8ece8c..4bcf65f81f 100644 --- a/types/html-entities/index.d.ts +++ b/types/html-entities/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for html-entities v1.2.0 // Project: https://www.npmjs.com/package/html-entities -// Definitions by: Xavier Stouder +// Definitions by: Xavier Stouder // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare abstract class Entities { diff --git a/types/html-to-text/index.d.ts b/types/html-to-text/index.d.ts index 14e64739ed..8f911df91d 100644 --- a/types/html-to-text/index.d.ts +++ b/types/html-to-text/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for html-to-text v1.4.0 // Project: https://github.com/werk85/node-html-to-text -// Definitions by: Eryk Warren +// Definitions by: Eryk Warren // Definitions: https://github.com/DefinitelyTyped/html-to-text interface HtmlToTextStatic { diff --git a/types/html2canvas/index.d.ts b/types/html2canvas/index.d.ts index 33effeff87..dbc38f44bc 100644 --- a/types/html2canvas/index.d.ts +++ b/types/html2canvas/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for html2canvas.js 0.5 // Project: https://github.com/niklasvh/html2canvas -// Definitions by: Richard Hepburn , Pei-Tang Huang +// Definitions by: Richard Hepburn , Pei-Tang Huang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/htmlescape/tslint.json b/types/htmlescape/tslint.json index 3db14f85ea..cb07a85b4e 100644 --- a/types/htmlescape/tslint.json +++ b/types/htmlescape/tslint.json @@ -1 +1,8 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false, + "no-duplicate-imports": false + } +} diff --git a/types/htmlparser2/index.d.ts b/types/htmlparser2/index.d.ts index b53bbbb15e..a49e0e978a 100644 --- a/types/htmlparser2/index.d.ts +++ b/types/htmlparser2/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for htmlparser2 v3.7.x // Project: https://github.com/fb55/htmlparser2/ -// Definitions by: James Roland Cabresos +// Definitions by: James Roland Cabresos // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/http-errors/http-errors-tests.ts b/types/http-errors/http-errors-tests.ts index cfe399de9e..c90c360610 100644 --- a/types/http-errors/http-errors-tests.ts +++ b/types/http-errors/http-errors-tests.ts @@ -5,7 +5,10 @@ import * as util from 'util'; const app = express(); app.use((req, res, next) => { - if (!req) return next(create('Please login to view this page.', 401)); + if (!req) { + next(create('Please login to view this page.', 401)); + return; + } next(); }); diff --git a/types/http-link-header/tslint.json b/types/http-link-header/tslint.json index 3db14f85ea..946c3b6691 100644 --- a/types/http-link-header/tslint.json +++ b/types/http-link-header/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} diff --git a/types/http-proxy-middleware/index.d.ts b/types/http-proxy-middleware/index.d.ts index 47ebdd77fe..370b3d1487 100644 --- a/types/http-proxy-middleware/index.d.ts +++ b/types/http-proxy-middleware/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for http-proxy-middleware 0.17 // Project: https://github.com/chimurai/http-proxy-middleware -// Definitions by: Zebulon McCorkle -// BendingBender +// Definitions by: Zebulon McCorkle +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/http-proxy/index.d.ts b/types/http-proxy/index.d.ts index 5ff6d5f32c..4ed829d390 100644 --- a/types/http-proxy/index.d.ts +++ b/types/http-proxy/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for node-http-proxy 1.12 // Project: https://github.com/nodejitsu/node-http-proxy -// Definitions by: Maxime LUCE +// Definitions by: Maxime LUCE // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/http-status/index.d.ts b/types/http-status/index.d.ts index 4beb5aed83..9dc6598711 100644 --- a/types/http-status/index.d.ts +++ b/types/http-status/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for http-status v0.2.1 // Project: https://github.com/wdavidw/node-http-status -// Definitions by: Michael Zabka +// Definitions by: Michael Zabka // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface HttpStatus { diff --git a/types/humanparser/index.d.ts b/types/humanparser/index.d.ts index 37209a60f3..dce9653dde 100644 --- a/types/humanparser/index.d.ts +++ b/types/humanparser/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for humanparser 1.1.1 // Project: https://github.com/chovy/humanparser -// Definitions by: Michał Podeszwa +// Definitions by: Michał Podeszwa // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace humanparser { diff --git a/types/hyperscript/index.d.ts b/types/hyperscript/index.d.ts index cec67e56ab..92fb55d0cf 100644 --- a/types/hyperscript/index.d.ts +++ b/types/hyperscript/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for hyperscript // Project: https://github.com/dominictarr/hyperscript -// Definitions by: Mike Linkovich , Justin Firth +// Definitions by: Mike Linkovich , Justin Firth // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/hypertext-application-language/index.d.ts b/types/hypertext-application-language/index.d.ts index 111356c1ee..8b5740e309 100644 --- a/types/hypertext-application-language/index.d.ts +++ b/types/hypertext-application-language/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Hypertext Application Language Draft 6.0 // Project: https://tools.ietf.org/html/draft-kelly-json-hal-06 -// Definitions by: Maks3w +// Definitions by: Maks3w // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Hal { diff --git a/types/hystrixjs/index.d.ts b/types/hystrixjs/index.d.ts index 39fef977e1..b11305c13b 100644 --- a/types/hystrixjs/index.d.ts +++ b/types/hystrixjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for dragula v2.1.2 // Project: https://bitbucket.org/igor_sechyn/hystrixjs -// Definitions by: Igor Sechyn +// Definitions by: Igor Sechyn // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Q from "q"; diff --git a/types/i18next/i18next-tests.ts b/types/i18next/i18next-tests.ts index 1b5cbaa9cf..afdd59d538 100644 --- a/types/i18next/i18next-tests.ts +++ b/types/i18next/i18next-tests.ts @@ -165,13 +165,19 @@ i18next.init({ defaultNS: 'file1', debug: true }, (err: any, t: i18next.TranslationFunction) => { - if (err) return console.log('something went wrong loading', err); + if (err) { + console.log('something went wrong loading', err); + return; + } t('key'); // -> same as i18next.t }); // with only callback i18next.init((err: any, t: i18next.TranslationFunction) => { - if (err) return console.log('something went wrong loading', err); + if (err) { + console.log('something went wrong loading', err); + return; + } t('key'); // -> same as i18next.t }); @@ -187,7 +193,10 @@ const anotherNamespace = i18next.getFixedT(null, 'anotherNamespace'); const x: string = anotherNamespace('anotherNamespaceKey'); // no need to prefix ns i18n.t('anotherNamespace:anotherNamespaceKey'); i18next.changeLanguage('en', (err: any, t: i18next.TranslationFunction) => { - if (err) return console.log('something went wrong loading', err); + if (err) { + console.log('something went wrong loading', err); + return; + } t('key'); // -> same as i18next.t }); @@ -225,7 +234,10 @@ const newInstance = i18next.createInstance({ defaultNS: 'file1', debug: true }, (err: any, t: i18next.TranslationFunction) => { - if (err) return console.log('something went wrong loading', err); + if (err) { + console.log('something went wrong loading', err); + return; + } t('key'); // -> same as i18next.t }); @@ -236,7 +248,10 @@ newInstance.init({ defaultNS: 'file1', debug: true }, (err: any, t: i18next.TranslationFunction) => { - if (err) return console.log('something went wrong loading', err); + if (err) { + console.log('something went wrong loading', err); + return; + } t('key'); // -> same as i18next.t }); @@ -246,7 +261,10 @@ const newInstance2 = i18next.cloneInstance({ defaultNS: 'file1', debug: true }, (err: any, t: i18next.TranslationFunction) => { - if (err) return console.log('something went wrong loading', err); + if (err) { + console.log('something went wrong loading', err); + return; + } t('key'); // -> same as i18next.t }); @@ -258,7 +276,10 @@ newInstance.init({ defaultNS: 'file1', debug: true }, (err: any, t: i18next.TranslationFunction) => { - if (err) return console.log('something went wrong loading', err); + if (err) { + console.log('something went wrong loading', err); + return; + } t('key'); // -> same as i18next.t }); diff --git a/types/iban/index.d.ts b/types/iban/index.d.ts index 15190bdd6d..a47cfa618f 100644 --- a/types/iban/index.d.ts +++ b/types/iban/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for iban.js 0.0.5 // Project: https://github.com/arhs/iban.js/ -// Definitions by: Cyril Schumacher +// Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** diff --git a/types/iconv/index.d.ts b/types/iconv/index.d.ts index 7edebc5f65..a1c283cd88 100644 --- a/types/iconv/index.d.ts +++ b/types/iconv/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for iconv 2.1.11 // Project: https://github.com/bnoordhuis/node-iconv -// Definitions by: delphinus +// Definitions by: delphinus // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/image-size/index.d.ts b/types/image-size/index.d.ts index 311d81d97c..9e8681d514 100644 --- a/types/image-size/index.d.ts +++ b/types/image-size/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for image-size // Project: https://github.com/image-size/image-size -// Definitions by: Elisée MAURER +// Definitions by: Elisée MAURER // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/imagemapster/index.d.ts b/types/imagemapster/index.d.ts index 101191baca..6d038d473b 100644 --- a/types/imagemapster/index.d.ts +++ b/types/imagemapster/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for imagemapster 1.2.10 // Project: http://www.outsharked.com/imagemapster/ -// Definitions by: delphinus +// Definitions by: delphinus // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import jQuery = require('jquery'); diff --git a/types/images/index.d.ts b/types/images/index.d.ts index 38484bb256..23b10afbe4 100644 --- a/types/images/index.d.ts +++ b/types/images/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for images 2.2 // Project: https://github.com/zhangyuanwei/node-images -// Definitions by: Ding Weizhe +// Definitions by: Ding Weizhe // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/imap-simple/index.d.ts b/types/imap-simple/index.d.ts index 9f851ae21b..3bde57c113 100644 --- a/types/imap-simple/index.d.ts +++ b/types/imap-simple/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for imap-simple v3.1.0 // Project: https://github.com/chadxz/imap-simple -// Definitions by: Jeffery Grajkowski +// Definitions by: Jeffery Grajkowski // Definitions: https://github.com/psnider/DefinitelyTyped/imap-simple /// diff --git a/types/imap/index.d.ts b/types/imap/index.d.ts index fd4ae93795..dff51b7011 100644 --- a/types/imap/index.d.ts +++ b/types/imap/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for imap v0.8.14 // Project: https://www.npmjs.com/package/imap -// Definitions by: Peter Snider +// Definitions by: Peter Snider // Definitions: https://github.com/psnider/DefinitelyTyped/imap /// diff --git a/types/impress/index.d.ts b/types/impress/index.d.ts index d723644ec1..4be01d1984 100644 --- a/types/impress/index.d.ts +++ b/types/impress/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Impress.js 0.5 // Project: https://github.com/bartaz/impress.js -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/intl-tel-input/index.d.ts b/types/intl-tel-input/index.d.ts index 28a147a1c5..b0a6bf5721 100644 --- a/types/intl-tel-input/index.d.ts +++ b/types/intl-tel-input/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for intl-tel-input // Project: https://github.com/jackocnr/intl-tel-input -// Definitions by: Fidan Hakaj , Leonard Thieu +// Definitions by: Fidan Hakaj , Leonard Thieu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/intro.js/index.d.ts b/types/intro.js/index.d.ts index 26d1fbcac4..ec27d19439 100644 --- a/types/intro.js/index.d.ts +++ b/types/intro.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for intro.js 2.4 // Project: https://github.com/usablica/intro.js -// Definitions by: Maxime Fabre +// Definitions by: Maxime Fabre // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace IntroJs { diff --git a/types/invariant/index.d.ts b/types/invariant/index.d.ts index 2a52a0b490..0a5b64fff7 100644 --- a/types/invariant/index.d.ts +++ b/types/invariant/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for invariant 2.2.0 // Project: https://github.com/zertosh/invariant -// Definitions by: MichaelBennett +// Definitions by: MichaelBennett // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare let invariant:invariant.InvariantStatic; diff --git a/types/inversify-devtools/index.d.ts b/types/inversify-devtools/index.d.ts index 12e1bebd02..1674ed0281 100644 --- a/types/inversify-devtools/index.d.ts +++ b/types/inversify-devtools/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for inversify-devtools 1.0.0 // Project: https://github.com/inversify/inversify-devtools -// Definitions by: inversify +// Definitions by: inversify // Definitions: https://github.com/borisyankov/DefinitelyTyped import * as inversify from "inversify"; diff --git a/types/ionic/index.d.ts b/types/ionic/index.d.ts index 51d284a711..40f7897a9f 100644 --- a/types/ionic/index.d.ts +++ b/types/ionic/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Ionic // Project: http://ionicframework.com -// Definitions by: Spencer Williams +// Definitions by: Spencer Williams // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/ioredis/index.d.ts b/types/ioredis/index.d.ts index 6f2afb747f..39904b8b53 100644 --- a/types/ioredis/index.d.ts +++ b/types/ioredis/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for ioredis // Project: https://github.com/luin/ioredis // Definitions by: York Yao -// Christopher Eck +// Christopher Eck // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/is-ip/index.d.ts b/types/is-ip/index.d.ts index 930cb8951d..c706d50397 100644 --- a/types/is-ip/index.d.ts +++ b/types/is-ip/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for is-ip 2.0 // Project: https://github.com/sindresorhus/is-ip#readme -// Definitions by: coderslagoon +// Definitions by: coderslagoon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** diff --git a/types/is-my-json-valid/index.d.ts b/types/is-my-json-valid/index.d.ts index f51281be22..0dc58e9e69 100644 --- a/types/is-my-json-valid/index.d.ts +++ b/types/is-my-json-valid/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for is-my-json-valid // Project: https://github.com/mafintosh/is-my-json-valid -// Definitions by: kruncher +// Definitions by: kruncher // Definitions: https://github.com/borisyankov/DefinitelyTyped diff --git a/types/is-plain-object/index.d.ts b/types/is-plain-object/index.d.ts index 47d277f186..79ad3cf63a 100644 --- a/types/is-plain-object/index.d.ts +++ b/types/is-plain-object/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for is-plain-object // Project: https://github.com/jonschlinkert/is-plain-object -// Definitions by: Kevin Zeng +// Definitions by: Kevin Zeng // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "is-plain-object" { diff --git a/types/isbn-utils/index.d.ts b/types/isbn-utils/index.d.ts index c6f8aa908f..85a6541f09 100644 --- a/types/isbn-utils/index.d.ts +++ b/types/isbn-utils/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for isbn-utils 1.1 // Project: https://github.com/GitbookIO/isbn-utils -// Definitions by: Jørgen Elgaard Larsen +// Definitions by: Jørgen Elgaard Larsen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export type IGroups = any; diff --git a/types/iscroll/index.d.ts b/types/iscroll/index.d.ts index d19dc142a8..13cd83cf99 100644 --- a/types/iscroll/index.d.ts +++ b/types/iscroll/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for iScroll 5.2 // Project: http://cubiq.org/iscroll-5-ready-for-beta-test -// Definitions by: Christiaan Rakowski +// Definitions by: Christiaan Rakowski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface IScrollOptions { diff --git a/types/iso8601-localizer/index.d.ts b/types/iso8601-localizer/index.d.ts index f4aa435b6c..0c6e35b0a5 100644 --- a/types/iso8601-localizer/index.d.ts +++ b/types/iso8601-localizer/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ISO8601-Localizer v1.2.1 // Project: https://github.com/avielfedida/ISO8601-Localizer -// Definitions by: Aviel Fedida +// Definitions by: Aviel Fedida // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface localizer { diff --git a/types/jasmine-fixture/index.d.ts b/types/jasmine-fixture/index.d.ts index 3c02fad4ac..a49aeca029 100644 --- a/types/jasmine-fixture/index.d.ts +++ b/types/jasmine-fixture/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Jasmine-fixture 1.0 // Project: https://github.com/searls/jasmine-fixture -// Definitions by: Craig Brett +// Definitions by: Craig Brett // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jasmine-jquery/index.d.ts b/types/jasmine-jquery/index.d.ts index 4cb2de8c26..0dc023f33a 100644 --- a/types/jasmine-jquery/index.d.ts +++ b/types/jasmine-jquery/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Jasmine-JQuery 1.5.8 // Project: https://github.com/velesin/jasmine-jquery -// Definitions by: Gregor Stamac +// Definitions by: Gregor Stamac // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jasmine-node/index.d.ts b/types/jasmine-node/index.d.ts index 5c8022d706..acc313f6b2 100644 --- a/types/jasmine-node/index.d.ts +++ b/types/jasmine-node/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jasmine-node v1.14.5 // Project: https://github.com/mhevery/jasmine-node -// Definitions by: Sven Reglitzki +// Definitions by: Sven Reglitzki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/jasmine/index.d.ts b/types/jasmine/index.d.ts index f1af5ef514..001d044dd5 100644 --- a/types/jasmine/index.d.ts +++ b/types/jasmine/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Jasmine 2.5.2 // Project: http://jasmine.github.io/ -// Definitions by: Boris Yankov , Theodore Brown , David Pärsson , Gabe Moothart , Lukas Zech +// Definitions by: Boris Yankov , Theodore Brown , David Pärsson , Gabe Moothart , Lukas Zech // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/javascript-astar/index.d.ts b/types/javascript-astar/index.d.ts index 9f8b53ec32..2ffdf06145 100644 --- a/types/javascript-astar/index.d.ts +++ b/types/javascript-astar/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for javascript-astar // Project: https://github.com/bgrins/javascript-astar -// Definitions by: brian ridley +// Definitions by: brian ridley // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class Graph { diff --git a/types/javascript-state-machine/index.d.ts b/types/javascript-state-machine/index.d.ts index 32088d7bd4..3a248f6d6b 100644 --- a/types/javascript-state-machine/index.d.ts +++ b/types/javascript-state-machine/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Finite State Machine 2.4 // Project: https://github.com/jakesgordon/javascript-state-machine -// Definitions by: Boris Yankov , +// Definitions by: Boris Yankov , // Maarten Docter , // William Sears , // samael , diff --git a/types/jdenticon/index.d.ts b/types/jdenticon/index.d.ts index 87d8609551..84768ccf03 100644 --- a/types/jdenticon/index.d.ts +++ b/types/jdenticon/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Jdenticon 1.3.2 // Project: http://jdenticon.com/ -// Definitions by: Martin Thorsen Ranang +// Definitions by: Martin Thorsen Ranang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface JdenticonConfig { diff --git a/types/jenkins/tslint.json b/types/jenkins/tslint.json index 3db14f85ea..946c3b6691 100644 --- a/types/jenkins/tslint.json +++ b/types/jenkins/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} diff --git a/types/jest/tslint.json b/types/jest/tslint.json index 43efa95a79..a839e8aa9f 100644 --- a/types/jest/tslint.json +++ b/types/jest/tslint.json @@ -1,7 +1,9 @@ { "extends": "dtslint/dt.json", "rules": { - // TODO - "no-mergeable-namespace": false + // TODOs + "dt-header": false, + "no-mergeable-namespace": false, + "no-void-expression": false } } diff --git a/types/jqgrid/index.d.ts b/types/jqgrid/index.d.ts index 5b85910077..9b70b90b6d 100644 --- a/types/jqgrid/index.d.ts +++ b/types/jqgrid/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery jqgrid Plugin 1.3 // Project: https://github.com/tonytomov/jqGrid -// Definitions by: Lokesh Peta +// Definitions by: Lokesh Peta // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-cropbox/index.d.ts b/types/jquery-cropbox/index.d.ts index 0de20878d5..436b1e5d14 100644 --- a/types/jquery-cropbox/index.d.ts +++ b/types/jquery-cropbox/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery cropbox // Project: https://github.com/acornejo/jquery-cropbox -// Definitions by: Per Kastman +// Definitions by: Per Kastman // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-easy-loading/index.d.ts b/types/jquery-easy-loading/index.d.ts index 9498e6ac9a..636595220b 100644 --- a/types/jquery-easy-loading/index.d.ts +++ b/types/jquery-easy-loading/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jquery-easy-loading 1.2.0 // Project: http://carlosbonetti.github.io/jquery-loading/ -// Definitions by: delphinus +// Definitions by: delphinus // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-knob/index.d.ts b/types/jquery-knob/index.d.ts index ef1e720ba5..6ca43cd66b 100644 --- a/types/jquery-knob/index.d.ts +++ b/types/jquery-knob/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery Knob 1.2.11 // Project: http://anthonyterrien.com/knob/ -// Definitions by: Iain Buchanan +// Definitions by: Iain Buchanan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-mask-plugin/tslint.json b/types/jquery-mask-plugin/tslint.json index a62d0d4e68..10e16aef18 100644 --- a/types/jquery-mask-plugin/tslint.json +++ b/types/jquery-mask-plugin/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "ban-types": false + // TODOs + "ban-types": false, + "dt-header": false } } diff --git a/types/jquery-match-height/index.d.ts b/types/jquery-match-height/index.d.ts index 664a5de4b4..491a0dbe1d 100644 --- a/types/jquery-match-height/index.d.ts +++ b/types/jquery-match-height/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jquery-match-height 0.7 // Project: https://github.com/liabru/jquery-match-height -// Definitions by: Andrea Briganti +// Definitions by: Andrea Briganti // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-mockjax/index.d.ts b/types/jquery-mockjax/index.d.ts index 2e8441131f..54cc036416 100644 --- a/types/jquery-mockjax/index.d.ts +++ b/types/jquery-mockjax/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery Mockjax 2.0.1 // Project: https://github.com/jakerella/jquery-mockjax -// Definitions by: Laszlo Jakab , Vladimir Đokić +// Definitions by: Laszlo Jakab , Vladimir Đokić // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-mousewheel/index.d.ts b/types/jquery-mousewheel/index.d.ts index d89bbb9942..59842d9bc6 100644 --- a/types/jquery-mousewheel/index.d.ts +++ b/types/jquery-mousewheel/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jquery-mousewheel v3.1.13 // Project: https://github.com/jquery/jquery-mousewheel -// Definitions by: Brian Surowiec +// Definitions by: Brian Surowiec // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-steps/index.d.ts b/types/jquery-steps/index.d.ts index 72b2e036f3..781ebf45a7 100644 --- a/types/jquery-steps/index.d.ts +++ b/types/jquery-steps/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery Steps v1.1.1 // Project: http://www.jquery-steps.com/ -// Definitions by: Joseph Blank , Nicholas Wong +// Definitions by: Joseph Blank , Nicholas Wong // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery-toastmessage-plugin/index.d.ts b/types/jquery-toastmessage-plugin/index.d.ts index 89b905cb3a..f7801a662b 100644 --- a/types/jquery-toastmessage-plugin/index.d.ts +++ b/types/jquery-toastmessage-plugin/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jquery-toastmessage-plugin 0.2 // Project: https://github.com/akquinet/jquery-toastmessage-plugin -// Definitions by: Joe Skeen +// Definitions by: Joe Skeen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.cleditor/index.d.ts b/types/jquery.cleditor/index.d.ts index 324aaa2dff..2817dee485 100644 --- a/types/jquery.cleditor/index.d.ts +++ b/types/jquery.cleditor/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery CLEditor Plugin 1.4.3 // Project: http://premiumsoftware.net/CLEditor -// Definitions by: Jeffery Grajkowski +// Definitions by: Jeffery Grajkowski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.color/index.d.ts b/types/jquery.color/index.d.ts index 713ed67915..eb09010eb9 100644 --- a/types/jquery.color/index.d.ts +++ b/types/jquery.color/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jquery.color.js v2.1.2 // Project: https://github.com/jquery/jquery-color -// Definitions by: Derek Cicerone +// Definitions by: Derek Cicerone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.colorpicker/index.d.ts b/types/jquery.colorpicker/index.d.ts index 2d44ddb967..a2098e1ef9 100644 --- a/types/jquery.colorpicker/index.d.ts +++ b/types/jquery.colorpicker/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery Colorpicker Plugin 1.4.3 // Project: https://github.com/vanderlee/colorpicker -// Definitions by: Jeffery Grajkowski +// Definitions by: Jeffery Grajkowski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.contextmenu/index.d.ts b/types/jquery.contextmenu/index.d.ts index 56188d2ac0..5e449a96ff 100644 --- a/types/jquery.contextmenu/index.d.ts +++ b/types/jquery.contextmenu/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery contextMenu 1.7.0 // Project: http://medialize.github.com/jQuery-contextMenu/ -// Definitions by: Natan Vivo +// Definitions by: Natan Vivo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.cookie/index.d.ts b/types/jquery.cookie/index.d.ts index c15341aa97..e00d891eec 100644 --- a/types/jquery.cookie/index.d.ts +++ b/types/jquery.cookie/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery Cookie Plugin 1.4.1 // Project: https://github.com/carhartl/jquery-cookie -// Definitions by: Roy Goode , Ben Lorantfy +// Definitions by: Roy Goode , Ben Lorantfy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.cycle2/index.d.ts b/types/jquery.cycle2/index.d.ts index faef998fae..e83ef288e0 100644 --- a/types/jquery.cycle2/index.d.ts +++ b/types/jquery.cycle2/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for jQuery Cycle2 version 2.1 // Project: http://jquery.malsup.com/cycle2/ // https://github.com/malsup/cycle2 -// Definitions by: Donny Nadolny +// Definitions by: Donny Nadolny // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.elang/index.d.ts b/types/jquery.elang/index.d.ts index 21a73e237f..8ac746877f 100644 --- a/types/jquery.elang/index.d.ts +++ b/types/jquery.elang/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for eLang 0.5.1 // Project: https://github.com/sumegizoltan/ELang/ -// Definitions by: Zoltan Sumegi +// Definitions by: Zoltan Sumegi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.finger/index.d.ts b/types/jquery.finger/index.d.ts index 0cf61e07d2..a4cbec34d0 100644 --- a/types/jquery.finger/index.d.ts +++ b/types/jquery.finger/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jquery.finger.js // Project: http://ngryman.sh/jquery.finger/ -// Definitions by: Max Ackley +// Definitions by: Max Ackley // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.highlight-bartaz/index.d.ts b/types/jquery.highlight-bartaz/index.d.ts index f76a2bcb98..3b9d336de2 100644 --- a/types/jquery.highlight-bartaz/index.d.ts +++ b/types/jquery.highlight-bartaz/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jquery.highlight.js // Project: https://github.com/bartaz/sandbox.js/blob/master/jquery.highlight.js -// Definitions by: Stefan Profanter +// Definitions by: Stefan Profanter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.jnotify/index.d.ts b/types/jquery.jnotify/index.d.ts index 8e1fc1433a..fed7ce7b95 100644 --- a/types/jquery.jnotify/index.d.ts +++ b/types/jquery.jnotify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery.jNotify 1.0 // Project: http://jnotify.codeplex.com -// Definitions by: James Curran +// Definitions by: James Curran // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 // Project by: Fabio Franzini diff --git a/types/jquery.joyride/index.d.ts b/types/jquery.joyride/index.d.ts index d67262f4af..a1df5639bb 100644 --- a/types/jquery.joyride/index.d.ts +++ b/types/jquery.joyride/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery JoyRide Plugin 2.1 // Project: https://github.com/zurb/joyride -// Definitions by: Vincent Bortone +// Definitions by: Vincent Bortone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import $ = require('jquery'); diff --git a/types/jquery.livestampjs/index.d.ts b/types/jquery.livestampjs/index.d.ts index 2d65c13674..e08f78175e 100644 --- a/types/jquery.livestampjs/index.d.ts +++ b/types/jquery.livestampjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Livestamp.js // Project: http://mattbradley.github.com/livestampjs/ -// Definitions by: Vincent Bortone +// Definitions by: Vincent Bortone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.noty/index.d.ts b/types/jquery.noty/index.d.ts index 0570e02358..0e54c7a750 100644 --- a/types/jquery.noty/index.d.ts +++ b/types/jquery.noty/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery.noty v2.4 // Project: http://needim.github.io/noty/ -// Definitions by: Aaron King , Tim Helfensdörfer +// Definitions by: Aaron King , Tim Helfensdörfer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Project by: Nedim Carter // TypeScript Version: 2.3 diff --git a/types/jquery.payment/index.d.ts b/types/jquery.payment/index.d.ts index 26cbbc3fef..5bb473353b 100644 --- a/types/jquery.payment/index.d.ts +++ b/types/jquery.payment/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery.payment // Project: https://github.com/stripe/jquery.payment -// Definitions by: Eric J. Smith , John Rutherford +// Definitions by: Eric J. Smith , John Rutherford // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.simplepagination/index.d.ts b/types/jquery.simplepagination/index.d.ts index 85f3ca88a2..14a8cc612b 100644 --- a/types/jquery.simplepagination/index.d.ts +++ b/types/jquery.simplepagination/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery simplePagination.js v1.4 // Project: https://github.com/flaviusmatis/simplePagination.js -// Definitions by: Natan Vivo +// Definitions by: Natan Vivo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.simulate/index.d.ts b/types/jquery.simulate/index.d.ts index 73d3690e7d..fd8b229563 100644 --- a/types/jquery.simulate/index.d.ts +++ b/types/jquery.simulate/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jquery.simulate.js // Project: https://github.com/jquery/jquery-simulate -// Definitions by: Derek Cicerone +// Definitions by: Derek Cicerone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.superlink/index.d.ts b/types/jquery.superlink/index.d.ts index 90eed21d69..bf6ef2aeb6 100644 --- a/types/jquery.superlink/index.d.ts +++ b/types/jquery.superlink/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jquery.superLink // Project: http://james.padolsey.com/demos/plugins/jQuery/superLink/superlink.jquery.js -// Definitions by: Blake Niemyjski +// Definitions by: Blake Niemyjski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.timer/index.d.ts b/types/jquery.timer/index.d.ts index 752e04289e..bcd9e6336d 100644 --- a/types/jquery.timer/index.d.ts +++ b/types/jquery.timer/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQueryTimer 1.0 // Project: https://github.com/jchavannes/jquery-timer -// Definitions by: Joshua Strobl +// Definitions by: Joshua Strobl // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.tinycarousel/index.d.ts b/types/jquery.tinycarousel/index.d.ts index 213fdd0728..77037dbb47 100644 --- a/types/jquery.tinycarousel/index.d.ts +++ b/types/jquery.tinycarousel/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery tinycarousel 1.9 // Project: http://baijs.nl/tinycarousel/ -// Definitions by: Christiaan Rakowski +// Definitions by: Christiaan Rakowski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.tinyscrollbar/index.d.ts b/types/jquery.tinyscrollbar/index.d.ts index 5cd3240dfb..4202d42203 100644 --- a/types/jquery.tinyscrollbar/index.d.ts +++ b/types/jquery.tinyscrollbar/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery tinyscrollbar 1.8 // Project: http://baijs.nl/tinyscrollbar/ -// Definitions by: Christiaan Rakowski +// Definitions by: Christiaan Rakowski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.tipsy/index.d.ts b/types/jquery.tipsy/index.d.ts index 3414eeae49..44a612ba26 100644 --- a/types/jquery.tipsy/index.d.ts +++ b/types/jquery.tipsy/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery.tipsy // Project: http://onehackoranother.com/projects/jquery/tipsy/ -// Definitions by: Brian Dukes +// Definitions by: Brian Dukes // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.tools/index.d.ts b/types/jquery.tools/index.d.ts index 0c19d7a8fb..f22e7aa6fe 100644 --- a/types/jquery.tools/index.d.ts +++ b/types/jquery.tools/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery TOOLS 1.2 // Project: https://github.com/jquerytools/jquerytools -// Definitions by: Joe Skeen +// Definitions by: Joe Skeen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.tools/tslint.json b/types/jquery.tools/tslint.json index 3db14f85ea..26a0c302a8 100644 --- a/types/jquery.tools/tslint.json +++ b/types/jquery.tools/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-void-expression": false + } +} diff --git a/types/jquery.tooltipster/index.d.ts b/types/jquery.tooltipster/index.d.ts index 3182ee3bb9..44536908ff 100644 --- a/types/jquery.tooltipster/index.d.ts +++ b/types/jquery.tooltipster/index.d.ts @@ -1,9 +1,9 @@ // Type definitions for jQuery Tooltipster 3.3.0 // Project: https://github.com/iamceege/tooltipster -// Definitions by: Patrick Magee , -// Dmitry Pesterev , +// Definitions by: Patrick Magee , +// Dmitry Pesterev , // Leonard Thieu , -// Jan Hirzel +// Jan Hirzel // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.total-storage/index.d.ts b/types/jquery.total-storage/index.d.ts index 1966d84e62..6fbe4be924 100644 --- a/types/jquery.total-storage/index.d.ts +++ b/types/jquery.total-storage/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQueryTotalStorage 1.1.2 // Project: https://github.com/Upstatement/jquery-total-storage -// Definitions by: Jeremy Brooks +// Definitions by: Jeremy Brooks // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery.uniform/index.d.ts b/types/jquery.uniform/index.d.ts index 685538aa08..d7a5c3f19e 100644 --- a/types/jquery.uniform/index.d.ts +++ b/types/jquery.uniform/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Uniform.js // Project: https://github.com/pixelmatrix/uniform -// Definitions by: flyfishMT +// Definitions by: flyfishMT // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jquery/index.d.ts b/types/jquery/index.d.ts index b2e8969a06..4a835896ed 100644 --- a/types/jquery/index.d.ts +++ b/types/jquery/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for jquery 3.2 // Project: https://jquery.com // Definitions by: Leonard Thieu -// Boris Yankov +// Boris Yankov // Christian Hoffmeister // Steve Fenton // Diullei Gomes @@ -18,7 +18,7 @@ // Benjamin Jackman // Poul Sorensen // Josh Strobl -// John Reilly +// John Reilly // Dick van den Brink // Thomas Schulz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/jquery/tslint.json b/types/jquery/tslint.json index e6f8485f01..da57c7462f 100644 --- a/types/jquery/tslint.json +++ b/types/jquery/tslint.json @@ -2,16 +2,19 @@ "extends": "dtslint/dt.json", "rules": { // All are TODOs + "await-promise": false, "ban-types": false, "callable-types": false, "no-boolean-literal-compare": false, "no-empty-interface": false, "no-misused-new": false, + "no-object-literal-type-assertion": false, "no-unnecessary-qualifier": false, "no-unnecessary-type-assertion": false, "no-var-keyword": false, "prefer-conditional-expression": false, "prefer-switch": false, + "prefer-template": false, "space-before-function-paren": false, "space-within-parens": false, "use-default-type-parameter": false diff --git a/types/jquerymobile/index.d.ts b/types/jquerymobile/index.d.ts index ec386acc81..869d94bdf8 100644 --- a/types/jquerymobile/index.d.ts +++ b/types/jquerymobile/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery Mobile 1.4 // Project: http://jquerymobile.com/ -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jqueryui/index.d.ts b/types/jqueryui/index.d.ts index ecb4d4b642..fd04f979cd 100644 --- a/types/jqueryui/index.d.ts +++ b/types/jqueryui/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQueryUI 1.11 // Project: http://jqueryui.com/ -// Definitions by: Boris Yankov , John Reilly +// Definitions by: Boris Yankov , John Reilly // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/js-beautify/index.d.ts b/types/js-beautify/index.d.ts index e73e013325..f3b13767d9 100644 --- a/types/js-beautify/index.d.ts +++ b/types/js-beautify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for js_beautify // Project: https://github.com/beautify-web/js-beautify/ -// Definitions by: Josh Goldberg , Hans Windhoff +// Definitions by: Josh Goldberg , Hans Windhoff // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface JsBeautifyOptions { diff --git a/types/js-fixtures/index.d.ts b/types/js-fixtures/index.d.ts index 3b4c082cfa..aa926e1e95 100644 --- a/types/js-fixtures/index.d.ts +++ b/types/js-fixtures/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for js-fixtures 1.2.0 // Project: https://github.com/badunk/js-fixtures -// Definitions by: Kazi Manzur Rashid +// Definitions by: Kazi Manzur Rashid // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Fixtures { diff --git a/types/jscrollpane/index.d.ts b/types/jscrollpane/index.d.ts index bf5f4c36c7..9e31755ba7 100644 --- a/types/jscrollpane/index.d.ts +++ b/types/jscrollpane/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jScrollPane v2.0.14 // Project: http://jscrollpane.kelvinluck.com/ -// Definitions by: Dániel Tar +// Definitions by: Dániel Tar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jsen/index.d.ts b/types/jsen/index.d.ts index 7be072ab1a..9f2d75c0a2 100644 --- a/types/jsen/index.d.ts +++ b/types/jsen/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jsen (JSON Sentinel) // Project: https://github.com/bugventure/jsen -// Definitions by: Vladimir Đokić +// Definitions by: Vladimir Đokić // Definitions: https://github.com/borisyankov/DefinitelyTyped declare namespace Jsen { diff --git a/types/jsfl/index.d.ts b/types/jsfl/index.d.ts index 00f7f5af83..6037503762 100644 --- a/types/jsfl/index.d.ts +++ b/types/jsfl/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for JSFL // Project: https://adobe.com -// Definitions by: soywiz +// Definitions by: soywiz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface FlashPoint { diff --git a/types/jsnox/index.d.ts b/types/jsnox/index.d.ts index 791141da16..ae652ae9c7 100644 --- a/types/jsnox/index.d.ts +++ b/types/jsnox/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for JSnoX 2.1 // Project: https://github.com/af/jsnox -// Definitions by: Steve Baker +// Definitions by: Steve Baker // Dovydas Navickas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/json-patch/index.d.ts b/types/json-patch/index.d.ts index 6f257924b0..04284a7acb 100644 --- a/types/json-patch/index.d.ts +++ b/types/json-patch/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for json-patch // Project: https://github.com/bruth/jsonpatch-js -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace jsonpatch { diff --git a/types/json-socket/index.d.ts b/types/json-socket/index.d.ts index e496cdcaf5..66328564ed 100644 --- a/types/json-socket/index.d.ts +++ b/types/json-socket/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for json-socket v0.1.2 // Project: https://github.com/sebastianseilund/node-json-socket -// Definitions by: Sven Reglitzki +// Definitions by: Sven Reglitzki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/json-stable-stringify/index.d.ts b/types/json-stable-stringify/index.d.ts index 95b434469c..329c637369 100644 --- a/types/json-stable-stringify/index.d.ts +++ b/types/json-stable-stringify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for json-stable-stringify 1.0 // Project: https://github.com/substack/json-stable-stringify -// Definitions by: Matt Frantz +// Definitions by: Matt Frantz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function stringify(obj: any, opts?: stringify.Comparator | stringify.Options): string; diff --git a/types/jsoneditoronline/index.d.ts b/types/jsoneditoronline/index.d.ts index e6d8d6d958..b729a4c643 100644 --- a/types/jsoneditoronline/index.d.ts +++ b/types/jsoneditoronline/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for JSONEditorOnline // Project: https://github.com/josdejong/jsoneditoronline -// Definitions by: Vincent Bortone +// Definitions by: Vincent Bortone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // JSON Editor Online is a tool to easily edit and format JSON online. JSON is displayed in a clear, editable treeview and in formatted plain text. diff --git a/types/jsplumb/index.d.ts b/types/jsplumb/index.d.ts index fbf2df8c3e..7e195888c1 100644 --- a/types/jsplumb/index.d.ts +++ b/types/jsplumb/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jsPlumb jQuery adapter 1.3 // Project: http://jsplumb.org -// Definitions by: Steve Shearn +// Definitions by: Steve Shearn // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jss/index.d.ts b/types/jss/index.d.ts index 61938cc020..18278d80d1 100644 --- a/types/jss/index.d.ts +++ b/types/jss/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jss v0.6 // Project: https://github.com/Box9/jss -// Definitions by: Valentin Robert +// Definitions by: Valentin Robert // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Properties { diff --git a/types/jstimezonedetect/index.d.ts b/types/jstimezonedetect/index.d.ts index 95295c635e..dac743b6c4 100644 --- a/types/jstimezonedetect/index.d.ts +++ b/types/jstimezonedetect/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jsTimezoneDetect 1.0 // Project: https://bitbucket.org/pellepim/jstimezonedetect -// Definitions by: Olivier Lamothe +// Definitions by: Olivier Lamothe // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export function determine(): { diff --git a/types/jstorage/index.d.ts b/types/jstorage/index.d.ts index ca2da52a0e..c05772ca27 100644 --- a/types/jstorage/index.d.ts +++ b/types/jstorage/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jStorage 0.3.0 // Project: http://www.jstorage.info/ -// Definitions by: Danil Flores +// Definitions by: Danil Flores // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jsx-chai/index.d.ts b/types/jsx-chai/index.d.ts index 7201b56004..4d76ebf66f 100644 --- a/types/jsx-chai/index.d.ts +++ b/types/jsx-chai/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jsx-chai 3.0.0 // Project: https://github.com/bkonkle/jsx-chai -// Definitions by: Philipp Holzer +// Definitions by: Philipp Holzer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/jump.js/tslint.json b/types/jump.js/tslint.json index 3db14f85ea..946c3b6691 100644 --- a/types/jump.js/tslint.json +++ b/types/jump.js/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} diff --git a/types/jwplayer/index.d.ts b/types/jwplayer/index.d.ts index a00beb454e..0a182483f0 100644 --- a/types/jwplayer/index.d.ts +++ b/types/jwplayer/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for JW Player 6.0 // Project: http://developer.longtailvideo.com/trac/ -// Definitions by: Martin Duparc +// Definitions by: Martin Duparc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // JW Player is the leading HTML5 & Flash video player, optimized for mobile and the desktop. Easy enough for beginners, advanced enough for pros. diff --git a/types/kafka-node/index.d.ts b/types/kafka-node/index.d.ts index 73ba5dd792..6a4fe33456 100644 --- a/types/kafka-node/index.d.ts +++ b/types/kafka-node/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for kafka-node 2.0 // Project: https://github.com/SOHU-Co/kafka-node/ -// Definitions by: Daniel Imrie-Situnayake , Bill , Michael Haan , Amiram Korach +// Definitions by: Daniel Imrie-Situnayake , Bill , Michael Haan , Amiram Korach // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // # Classes diff --git a/types/karma-fixture/index.d.ts b/types/karma-fixture/index.d.ts index bc89b1b723..75212799c1 100644 --- a/types/karma-fixture/index.d.ts +++ b/types/karma-fixture/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for karma-fixture 0.2.6 // Project: https://github.com/billtrik/karma-fixture -// Definitions by: Ezekiel Victor +// Definitions by: Ezekiel Victor // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace fixture { diff --git a/types/kdbush/tslint.json b/types/kdbush/tslint.json index 3db14f85ea..440efbd687 100644 --- a/types/kdbush/tslint.json +++ b/types/kdbush/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-duplicate-imports": false + } +} diff --git a/types/kendo-ui/index.d.ts b/types/kendo-ui/index.d.ts index 733845e514..7ce5c75763 100644 --- a/types/kendo-ui/index.d.ts +++ b/types/kendo-ui/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Kendo UI Professional v2017.1.118 // Project: http://www.telerik.com/kendo-ui -// Definitions by: Telerik +// Definitions by: Telerik // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/keyboardjs/index.d.ts b/types/keyboardjs/index.d.ts index 4168b48685..008083e774 100644 --- a/types/keyboardjs/index.d.ts +++ b/types/keyboardjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for KeyboardJS v2.2.0 // Project: https://github.com/RobertWHurst/KeyboardJS -// Definitions by: Vincent Bortone , +// Definitions by: Vincent Bortone , // David Asmuth // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/keycloak-js/tslint.json b/types/keycloak-js/tslint.json index 3db14f85ea..f2ffe2445b 100644 --- a/types/keycloak-js/tslint.json +++ b/types/keycloak-js/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-duplicate-imports": false + } +} diff --git a/types/keytar/index.d.ts b/types/keytar/index.d.ts index f807b19a9f..cf6a16e4f7 100644 --- a/types/keytar/index.d.ts +++ b/types/keytar/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for keytar 4.0.2 // Project: http://atom.github.io/node-keytar/ -// Definitions by: Milan Burda , Brendan Forster , Hari Juturu +// Definitions by: Milan Burda , Brendan Forster , Hari Juturu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/kik-browser/index.d.ts b/types/kik-browser/index.d.ts index fac6f0d595..e46ceb16b3 100644 --- a/types/kik-browser/index.d.ts +++ b/types/kik-browser/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Kik Cards v2.3.6 // Project: https://dev.kik.com -// Definitions by: Joel Day +// Definitions by: Joel Day // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Kik { diff --git a/types/knockback/index.d.ts b/types/knockback/index.d.ts index a2ec8446e8..68b9dc9e0b 100644 --- a/types/knockback/index.d.ts +++ b/types/knockback/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Knockback.js // Project: http://kmalakoff.github.io/knockback/ -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/knockout.deferred.updates/index.d.ts b/types/knockout.deferred.updates/index.d.ts index 16f10622e1..89fb752089 100644 --- a/types/knockout.deferred.updates/index.d.ts +++ b/types/knockout.deferred.updates/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Knockout Deferred Updates // Project: https://github.com/mbest/knockout-deferred-updates -// Definitions by: Sebastián Galiano +// Definitions by: Sebastián Galiano // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/knockout.editables/index.d.ts b/types/knockout.editables/index.d.ts index 5162604458..4a4ed59d3b 100644 --- a/types/knockout.editables/index.d.ts +++ b/types/knockout.editables/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for knockout-editables 0.9 // Project: http://romanych.github.com/ko.editables/ -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/knockout.es5/index.d.ts b/types/knockout.es5/index.d.ts index 4132ea37de..ce41db0d73 100644 --- a/types/knockout.es5/index.d.ts +++ b/types/knockout.es5/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Knockout-ES5 // Project: https://github.com/SteveSanderson/knockout-es5 -// Definitions by: Sebastián Galiano +// Definitions by: Sebastián Galiano // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/knockout.kogrid/index.d.ts b/types/knockout.kogrid/index.d.ts index 3ac629e45b..94c5afdce2 100644 --- a/types/knockout.kogrid/index.d.ts +++ b/types/knockout.kogrid/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ko-grid // Project: http://knockout-contrib.github.io/KoGrid/ -// Definitions by: huer12 +// Definitions by: huer12 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/knockout.mapping/index.d.ts b/types/knockout.mapping/index.d.ts index 94c243767f..23f7aae8b5 100644 --- a/types/knockout.mapping/index.d.ts +++ b/types/knockout.mapping/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Knockout.Mapping 2.0 // Project: https://github.com/SteveSanderson/knockout.mapping -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/knockout/index.d.ts b/types/knockout/index.d.ts index 876b6f188c..3a206fd04c 100644 --- a/types/knockout/index.d.ts +++ b/types/knockout/index.d.ts @@ -1,6 +1,10 @@ // Type definitions for Knockout v3.4.0 // Project: http://knockoutjs.com -// Definitions by: Boris Yankov , Igor Oleinikov , Clément Bourgeois , Matt Brooks , Benjamin Eckardt +// Definitions by: Boris Yankov +// Igor Oleinikov +// Clément Bourgeois +// Matt Brooks +// Benjamin Eckardt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/knuddels-userapps-api/index.d.ts b/types/knuddels-userapps-api/index.d.ts index ba7a886f52..c7aec43130 100644 --- a/types/knuddels-userapps-api/index.d.ts +++ b/types/knuddels-userapps-api/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Knuddels UserApps API 1.0 // Project: https://developer.knuddels.de -// Definitions by: Knuddels GmbH & Co. KG +// Definitions by: Knuddels GmbH & Co. KG // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // JSON definition diff --git a/types/knuddels-userapps-api/knuddels-userapps-api-tests.ts b/types/knuddels-userapps-api/knuddels-userapps-api-tests.ts index 6bae48915e..bf0933a5e1 100644 --- a/types/knuddels-userapps-api/knuddels-userapps-api-tests.ts +++ b/types/knuddels-userapps-api/knuddels-userapps-api-tests.ts @@ -17,7 +17,7 @@ class Server implements App { const botNick = KnuddelsServer.getDefaultBotUser() .getNick() .escapeKCode(); - user.sendPrivateMessage('Lust auf ne Runde Ziegenphobie? Mit nur _°BB>_h1 Knuddel|/appknuddel ' + botNick + '<°°°_ bist du dabei!'); + user.sendPrivateMessage(`Lust auf ne Runde Ziegenphobie? Mit nur _°BB>_h1 Knuddel|/appknuddel ${botNick}<°°°_ bist du dabei!`); } onUserLeft(user: User) { @@ -67,7 +67,7 @@ class Server implements App { const botNick = KnuddelsServer.getDefaultBotUser() .getNick() .escapeKCode(); - knuddelTransfer.reject('Du musst genau _°BB>_h1 Knuddel senden|/appknuddel ' + botNick + '<°°°_...'); + knuddelTransfer.reject(`Du musst genau _°BB>_h1 Knuddel senden|/appknuddel ${botNick}<°°°_...`); } else { knuddelTransfer.accept(); } @@ -111,7 +111,7 @@ class Server implements App { const botNick = KnuddelsServer.getDefaultBotUser() .getNick() .escapeKCode(); - user.sendPrivateMessage('Na, Lust auf _°BB>_hnoch eine Runde|/appknuddel ' + botNick + '<°°°_?'); + user.sendPrivateMessage(`Na, Lust auf _°BB>_hnoch eine Runde|/appknuddel ${botNick}<°°°_?`); user.getAppContentSessions() .forEach((session: AppContentSession) => { session.remove(); diff --git a/types/koa-basic-auth/index.d.ts b/types/koa-basic-auth/index.d.ts index 0fff3bb731..9d3433f006 100644 --- a/types/koa-basic-auth/index.d.ts +++ b/types/koa-basic-auth/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-basic-auth 2.x // Project: https://github.com/koajs/basic-auth -// Definitions by: Tobias Wolff +// Definitions by: Tobias Wolff // Definitions: https://github.com/Tobias4872/DefinitelyTyped import * as Koa from "koa"; diff --git a/types/koa-bodyparser/index.d.ts b/types/koa-bodyparser/index.d.ts index 932a53f7af..234b07d00c 100644 --- a/types/koa-bodyparser/index.d.ts +++ b/types/koa-bodyparser/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-bodyparser v3.x // Project: https://github.com/koajs/bodyparser -// Definitions by: Jerry Chin +// Definitions by: Jerry Chin // Definitions: https://github.com/hellopao/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/koa-compose/tslint.json b/types/koa-compose/tslint.json index 3db14f85ea..26a0c302a8 100644 --- a/types/koa-compose/tslint.json +++ b/types/koa-compose/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-void-expression": false + } +} diff --git a/types/koa-compress/index.d.ts b/types/koa-compress/index.d.ts index e22e923762..16ade4120f 100644 --- a/types/koa-compress/index.d.ts +++ b/types/koa-compress/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-compress v2.x // Project: https://github.com/koajs/compress -// Definitions by: Jerry Chin +// Definitions by: Jerry Chin // Definitions: https://github.com/hellopao/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/koa-favicon/index.d.ts b/types/koa-favicon/index.d.ts index ea1105053a..57b3ae7ed3 100644 --- a/types/koa-favicon/index.d.ts +++ b/types/koa-favicon/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-favicon v2.x // Project: https://github.com/koajs/favicon -// Definitions by: Jerry Chin +// Definitions by: Jerry Chin // Definitions: https://github.com/hellopao/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/koa-generic-session/index.d.ts b/types/koa-generic-session/index.d.ts index 1bd8f366e0..2334eef7d9 100644 --- a/types/koa-generic-session/index.d.ts +++ b/types/koa-generic-session/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-generic-session 1.x // Project: https://github.com/koajs/generic-session -// Definitions by: Nick Simmons , Ragg +// Definitions by: Nick Simmons , Ragg // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/koa-hbs/index.d.ts b/types/koa-hbs/index.d.ts index cace80c852..f9a62fdcc3 100644 --- a/types/koa-hbs/index.d.ts +++ b/types/koa-hbs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-hbs v1.x // Project: https://github.com/gilt/koa-hbs -// Definitions by: Jacob Malone , Mudkip +// Definitions by: Jacob Malone , Mudkip // Definitions: https://github.com/jcbmln/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/koa-json/index.d.ts b/types/koa-json/index.d.ts index df97c5c263..aceecf721f 100644 --- a/types/koa-json/index.d.ts +++ b/types/koa-json/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-json v2.x // Project: https://github.com/koajs/json -// Definitions by: Alex Friedman +// Definitions by: Alex Friedman // Definitions: https://github.com/brooklyndev/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/koa-jwt/index.d.ts b/types/koa-jwt/index.d.ts index 5ea843688a..87b64bea58 100644 --- a/types/koa-jwt/index.d.ts +++ b/types/koa-jwt/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-jwt 3.2 // Project: https://github.com/koajs/jwt -// Definitions by: Bruno Krebs +// Definitions by: Bruno Krebs // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import Koa = require("koa"); diff --git a/types/koa-router/index.d.ts b/types/koa-router/index.d.ts index f93c983bb0..972c02014c 100644 --- a/types/koa-router/index.d.ts +++ b/types/koa-router/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-router v7.x // Project: https://github.com/alexmingoia/koa-router/ -// Definitions by: Jerry Chin , Pavel Ivanov +// Definitions by: Jerry Chin , Pavel Ivanov // Definitions: https://github.com/hellopao/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/koa-session/index.d.ts b/types/koa-session/index.d.ts index 381dc4c272..4f79a24fe7 100644 --- a/types/koa-session/index.d.ts +++ b/types/koa-session/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-session 3.0 // Project: https://github.com/koajs/session -// Definitions by: Yu Hsin Lu +// Definitions by: Yu Hsin Lu // Definitions: https://github.com/kerol2r20/DefinitelyTyped /* =================== USAGE =================== @@ -54,7 +54,7 @@ declare namespace session { /** * You can store the session content in external stores(redis, mongodb or other DBs) */ - store?: session.stores; + store?: stores; /** * Hook: valid session value before use it diff --git a/types/koa-static/index.d.ts b/types/koa-static/index.d.ts index 8e89911a22..06e8e09bf6 100644 --- a/types/koa-static/index.d.ts +++ b/types/koa-static/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-static 3.0 // Project: https://github.com/koajs/static -// Definitions by: Jerry Chin +// Definitions by: Jerry Chin // Definitions: https://github.com/hellopao/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/koa-views/index.d.ts b/types/koa-views/index.d.ts index c06be87dfb..e89a2d7cf8 100644 --- a/types/koa-views/index.d.ts +++ b/types/koa-views/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for koa-views 2.x // Project: https://github.com/queckezz/koa-views -// Definitions by: Alex Friedman +// Definitions by: Alex Friedman // Definitions: https://github.com/brooklyndev/DefinitelyTyped /* =================== USAGE =================== @@ -47,8 +47,6 @@ declare namespace views { } export = views; -import * as koa from "koa"; - declare module 'koa' { interface Context { render(viewPath: string, locals?: any): Promise; diff --git a/types/ladda/index.d.ts b/types/ladda/index.d.ts index 6c4d9d696c..b9b1de3f0d 100644 --- a/types/ladda/index.d.ts +++ b/types/ladda/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Ladda 0.9.4 // Project: https://github.com/hakimel/Ladda -// Definitions by: Danil Flores , Michael Lee +// Definitions by: Danil Flores , Michael Lee // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/lambda-phi/lambda-phi-tests.ts b/types/lambda-phi/lambda-phi-tests.ts index 317ebc4527..5d0b5f3102 100644 --- a/types/lambda-phi/lambda-phi-tests.ts +++ b/types/lambda-phi/lambda-phi-tests.ts @@ -50,7 +50,7 @@ class LambdaClassTest { @Post() path2(@PathParam('path2') path: string, @PathParam('my') here: string) { this.callback(null, { - body: JSON.stringify('path: ' + path + ', my:' + here + ', query: ' + this.queryParams.var + "\n") + body: JSON.stringify(`path: ${path}, my:${here}, query: ${this.queryParams.var}\n`) }); } diff --git a/types/lambda-phi/tslint.json b/types/lambda-phi/tslint.json index 3db14f85ea..5a3a4bb647 100644 --- a/types/lambda-phi/tslint.json +++ b/types/lambda-phi/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "no-duplicate-imports": false + } +} diff --git a/types/ldapjs/index.d.ts b/types/ldapjs/index.d.ts index 744e70ee39..0afbf16046 100644 --- a/types/ldapjs/index.d.ts +++ b/types/ldapjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ldapjs 1.0 // Project: http://ldapjs.org -// Definitions by: Charles Villemure , Peter Kooijmans +// Definitions by: Charles Villemure , Peter Kooijmans // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/leaflet-polylinedecorator/index.d.ts b/types/leaflet-polylinedecorator/index.d.ts index db3bea8dd6..30256f1ea5 100644 --- a/types/leaflet-polylinedecorator/index.d.ts +++ b/types/leaflet-polylinedecorator/index.d.ts @@ -37,10 +37,10 @@ declare namespace L { } class Marker { - constructor(options?: L.Symbol.MarkerOptions); + constructor(options?: MarkerOptions); } - function marker(options?: L.Symbol.MarkerOptions): L.Symbol.Marker; + function marker(options?: MarkerOptions): Marker; } interface Pattern { diff --git a/types/leapmotionts/index.d.ts b/types/leapmotionts/index.d.ts index 2cfbbd5370..2ee35c2093 100644 --- a/types/leapmotionts/index.d.ts +++ b/types/leapmotionts/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Leap Motion TS 0.7.9 // Project: https://github.com/logotype/LeapMotionTS -// Definitions by: Victor Norgren +// Definitions by: Victor Norgren // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/left-pad/index.d.ts b/types/left-pad/index.d.ts index ce8bc5237d..1296c4fe02 100644 --- a/types/left-pad/index.d.ts +++ b/types/left-pad/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for left-pad 1.1 // Project: https://github.com/stevemao/left-pad -// Definitions by: Zlatko Andonovski +// Definitions by: Zlatko Andonovski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function leftPad(str: string|number, len: number, ch?: string|number): string; diff --git a/types/less-middleware/index.d.ts b/types/less-middleware/index.d.ts index 5d9b7e301d..1dc1da65c5 100644 --- a/types/less-middleware/index.d.ts +++ b/types/less-middleware/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for less-middleware 2.0.1 // Project: https://github.com/emberfeather/less.js-middleware -// Definitions by: Federico Bond +// Definitions by: Federico Bond // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/lestate/index.d.ts b/types/lestate/index.d.ts index ca9f6aab47..cac49865f0 100644 --- a/types/lestate/index.d.ts +++ b/types/lestate/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for LeState 0.1 // Project: https://github.com/LeTools/LeState -// Definitions by: Hadrian Oliveira +// Definitions by: Hadrian Oliveira // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface LeState { diff --git a/types/level-sublevel/index.d.ts b/types/level-sublevel/index.d.ts index 9db592ec0f..9d17c21839 100644 --- a/types/level-sublevel/index.d.ts +++ b/types/level-sublevel/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for level-sublevel // Project: https://github.com/dominictarr/level-sublevel -// Definitions by: Bas Pennings +// Definitions by: Bas Pennings // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as levelup from "levelup"; diff --git a/types/leven/index.d.ts b/types/leven/index.d.ts index baea8fa6b4..bd7e0ba4aa 100644 --- a/types/leven/index.d.ts +++ b/types/leven/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for leven 2.1 // Project: https://github.com/sindresorhus/leven -// Definitions by: Jan Alonzo +// Definitions by: Jan Alonzo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function leven(a: string, b: string): number; diff --git a/types/libpq/tslint.json b/types/libpq/tslint.json index a62d0d4e68..385c02a624 100644 --- a/types/libpq/tslint.json +++ b/types/libpq/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "ban-types": false + // TODOs + "ban-types": false, + "no-void-expression": false } } diff --git a/types/linkify-it/tslint.json b/types/linkify-it/tslint.json index 3db14f85ea..946c3b6691 100644 --- a/types/linkify-it/tslint.json +++ b/types/linkify-it/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} diff --git a/types/lodash/lodash-tests.ts b/types/lodash/lodash-tests.ts index 46e615d4ae..cf8a62cb2c 100644 --- a/types/lodash/lodash-tests.ts +++ b/types/lodash/lodash-tests.ts @@ -6539,7 +6539,7 @@ namespace TestOnce { } } -const greetPartial = (greeting: string, name: string) => greeting + ' ' + name; +const greetPartial = (greeting: string, name: string) => `${greeting} ${name}`; const hi = _.partial(greetPartial, 'hi'); hi('moe'); diff --git a/types/lodash/tslint.json b/types/lodash/tslint.json index d6df41b5fe..8c17ad248c 100644 --- a/types/lodash/tslint.json +++ b/types/lodash/tslint.json @@ -16,13 +16,16 @@ "no-empty-interface": false, "no-namespace": false, "no-mergeable-namespace": false, + "no-unnecessary-qualifier": false, "no-unnecessary-type-assertion": false, + "no-void-expression": false, "no-trailing-whitespace": false, "object-literal-key-quotes": false, "one-line": false, "one-variable-per-declaration": false, "prefer-const": false, "semicolon": false, + "space-within-parens": false, "triple-equals": false, "typedef-whitespace": false, "unified-signatures": false, diff --git a/types/log4javascript/index.d.ts b/types/log4javascript/index.d.ts index c9225a876e..b92fe3bc98 100644 --- a/types/log4javascript/index.d.ts +++ b/types/log4javascript/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for log4javascript v1.4.13 // Project: http://log4javascript.org/ -// Definitions by: Markus Wagner +// Definitions by: Markus Wagner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace log4javascript { diff --git a/types/logat/index.d.ts b/types/logat/index.d.ts index 053629dd68..3fdf6d6f7a 100644 --- a/types/logat/index.d.ts +++ b/types/logat/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for logat 1.0 // Project: https://github.com/krvikash35/logat -// Definitions by: Vikash +// Definitions by: Vikash // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/logg/index.d.ts b/types/logg/index.d.ts index e139152531..3c48d0bc40 100644 --- a/types/logg/index.d.ts +++ b/types/logg/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for logg // Project: https://github.com/dpup/node-logg -// Definitions by: Bret Little +// Definitions by: Bret Little // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Logger { diff --git a/types/loglevel/index.d.ts b/types/loglevel/index.d.ts index 7ccbe89c33..e7c9015e0c 100644 --- a/types/loglevel/index.d.ts +++ b/types/loglevel/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for loglevel 1.4.0 // Project: https://github.com/pimterry/loglevel -// Definitions by: Stefan Profanter , Florian Wagner , Gabor Szmetanko +// Definitions by: Stefan Profanter , Florian Wagner , Gabor Szmetanko // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** diff --git a/types/long/index.d.ts b/types/long/index.d.ts index 609804ed1f..3fbc02727b 100644 --- a/types/long/index.d.ts +++ b/types/long/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for long.js 3.0.2 // Project: https://github.com/dcodeIO/long.js -// Definitions by: Peter Kooijmans +// Definitions by: Peter Kooijmans // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Definitions by: Denis Cappellin diff --git a/types/loopback-boot/index.d.ts b/types/loopback-boot/index.d.ts index 89414d5a4c..05eae5b7bd 100644 --- a/types/loopback-boot/index.d.ts +++ b/types/loopback-boot/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Loopback-boot 2.23 // Project: https://github.com/strongloop/loopback-boot -// Definitions by: Andres D Jimenez +// Definitions by: Andres D Jimenez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/loopback/index.d.ts b/types/loopback/index.d.ts index e4c31c7f8d..ce4134cb43 100644 --- a/types/loopback/index.d.ts +++ b/types/loopback/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Loopback 3.1 // Project: https://github.com/strongloop/loopback -// Definitions by: Andres D Jimenez +// Definitions by: Andres D Jimenez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 @@ -538,7 +538,7 @@ declare namespace l { * @returns {Model} The model clas * @header loopback.findModel(modelName */ - findModel(modelOrName: string ): Model; + findModel(modelOrName: string): Model; /** * Look up a model class by name from all models created by @@ -950,7 +950,7 @@ declare namespace l { * @param {boolean} isStatic Required if fn is a String. Only find a static method with the given name. * @return {any} SharedMethod https://apidocs.strongloop.com/strong-remoting/#sharedmethod */ - find(fn: () => void|string, isStatic: boolean ): any; + find(fn: () => void|string, isStatic: boolean): any; /** * Find a sharedMethod with the given static or prototype method name. diff --git a/types/lory.js/index.d.ts b/types/lory.js/index.d.ts index 9f39f9bf30..37ff46d4be 100644 --- a/types/lory.js/index.d.ts +++ b/types/lory.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for lory 2.2.1 // Project: https://github.com/meandmax/lory/ -// Definitions by: kubosho +// Definitions by: kubosho // philip bulley // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/maildev/index.d.ts b/types/maildev/index.d.ts index 091e6362e5..04fdffb43c 100644 --- a/types/maildev/index.d.ts +++ b/types/maildev/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for maildev 1.0.0-rc3 // Project: https://github.com/djfarrelly/maildev -// Definitions by: Cyril Schumacher +// Definitions by: Cyril Schumacher // Zak Barbuto // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/mailparser/index.d.ts b/types/mailparser/index.d.ts index cf493139b4..181bb452a0 100644 --- a/types/mailparser/index.d.ts +++ b/types/mailparser/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mailparser v2.0.0 // Project: https://www.npmjs.com/package/mailparser -// Definitions by: Peter Snider +// Definitions by: Peter Snider // Andrey Volynkin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/mandrill-api/index.d.ts b/types/mandrill-api/index.d.ts index 9fe509317a..cbff3e2ae1 100644 --- a/types/mandrill-api/index.d.ts +++ b/types/mandrill-api/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Mandrill API 1.x // Project: http://mandrill.com/ -// Definitions by: Paulo Cesar +// Definitions by: Paulo Cesar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/mapbox/index.d.ts b/types/mapbox/index.d.ts index 38b81172e7..23429f01d2 100644 --- a/types/mapbox/index.d.ts +++ b/types/mapbox/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Mapbox 1.6 // Project: https://www.mapbox.com/mapbox.js/ -// Definitions by: Maxime Fabre +// Definitions by: Maxime Fabre // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Leaflet from "leaflet"; diff --git a/types/mapsjs/index.d.ts b/types/mapsjs/index.d.ts index b66315203d..048caf49b9 100644 --- a/types/mapsjs/index.d.ts +++ b/types/mapsjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Mapsjs 9.6.0 // Project: https://github.com/mapsjs -// Definitions by: Matthew James Davis +// Definitions by: Matthew James Davis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** diff --git a/types/mariasql/index.d.ts b/types/mariasql/index.d.ts index d0a3a5e041..d67e6b906c 100644 --- a/types/mariasql/index.d.ts +++ b/types/mariasql/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mariasql v0.1.22 // Project: https://github.com/mscdex/node-mariasql -// Definitions by: MichaelBennett +// Definitions by: MichaelBennett // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace mariasql { diff --git a/types/markdown-it/index.d.ts b/types/markdown-it/index.d.ts index 6af0b7dc90..31605f32b3 100644 --- a/types/markdown-it/index.d.ts +++ b/types/markdown-it/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for markdown-it // Project: https://github.com/markdown-it/markdown-it -// Definitions by: York Yao , Robert Coie +// Definitions by: York Yao , Robert Coie // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface MarkdownItStatic { diff --git a/types/maskedinput/index.d.ts b/types/maskedinput/index.d.ts index 9e305c4eb0..ddad093ab8 100644 --- a/types/maskedinput/index.d.ts +++ b/types/maskedinput/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Masked Input plugin for jQuery // Project: http://digitalbush.com/projects/masked-input-plugin -// Definitions by: Lokesh Peta +// Definitions by: Lokesh Peta // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/massive/massive-tests.ts b/types/massive/massive-tests.ts index e43755b7f3..c201541a12 100644 --- a/types/massive/massive-tests.ts +++ b/types/massive/massive-tests.ts @@ -2,7 +2,7 @@ import massive = require('massive'); let dbconn: massive.Database; -massive('postgres://app:password@localhost:5432/app').then( db => { +massive('postgres://app:password@localhost:5432/app').then(db => { console.log(`DB connected successfully`); dbconn = db; }).catch(err => { diff --git a/types/material-design-lite/index.d.ts b/types/material-design-lite/index.d.ts index 11b93ea792..63f531f72c 100644 --- a/types/material-design-lite/index.d.ts +++ b/types/material-design-lite/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for material-design-lite v1.1.3 // Project: https://getmdl.io -// Definitions by: Brad Zacher +// Definitions by: Brad Zacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module MaterialDesignLite { diff --git a/types/material-ui-pagination/tslint.json b/types/material-ui-pagination/tslint.json index 6af3599113..3b5bb97e03 100644 --- a/types/material-ui-pagination/tslint.json +++ b/types/material-ui-pagination/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODOs + "dt-header": false, "no-duplicate-imports": false, "use-default-type-parameter": false } diff --git a/types/mathjs/index.d.ts b/types/mathjs/index.d.ts index f255546b0e..f5d669a028 100644 --- a/types/mathjs/index.d.ts +++ b/types/mathjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mathjs // Project: http://mathjs.org/ -// Definitions by: Ilya Shestakov +// Definitions by: Ilya Shestakov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var math: mathjs.IMathJsStatic; diff --git a/types/matter-js/index.d.ts b/types/matter-js/index.d.ts index 36e948a5c1..51a367df6c 100644 --- a/types/matter-js/index.d.ts +++ b/types/matter-js/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for Matter.js - 0.9.1 // Project: https://github.com/liabru/matter-js // Definitions by: Ivane Gegia , -// David Asmuth +// David Asmuth // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = Matter; diff --git a/types/memoizee/tslint.json b/types/memoizee/tslint.json index 3db14f85ea..26a0c302a8 100644 --- a/types/memoizee/tslint.json +++ b/types/memoizee/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-void-expression": false + } +} diff --git a/types/merge-descriptors/index.d.ts b/types/merge-descriptors/index.d.ts index 82ded472b0..655543f4b7 100644 --- a/types/merge-descriptors/index.d.ts +++ b/types/merge-descriptors/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for merge-descriptors 1.0 // Project: https://github.com/component/merge-descriptors -// Definitions by: Zhiyuan Wang +// Definitions by: Zhiyuan Wang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function merge(destination: Object, source: Object, redefine?: boolean): Object; diff --git a/types/mersenne-twister/index.d.ts b/types/mersenne-twister/index.d.ts index 938c8b6b69..4bfb354f91 100644 --- a/types/mersenne-twister/index.d.ts +++ b/types/mersenne-twister/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mersenne-twister 1.1 // Project: https://github.com/boo1ean/mersenne-twister -// Definitions by: KentarouTakeda +// Definitions by: KentarouTakeda // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = class MersenneTwister { diff --git a/types/method-override/index.d.ts b/types/method-override/index.d.ts index 23108b1a9f..019b4e5bf0 100644 --- a/types/method-override/index.d.ts +++ b/types/method-override/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for method-override // Project: https://github.com/expressjs/method-override -// Definitions by: Santi Albo +// Definitions by: Santi Albo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/metismenu/index.d.ts b/types/metismenu/index.d.ts index 390deaf05c..6cc1eab886 100644 --- a/types/metismenu/index.d.ts +++ b/types/metismenu/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for metisMenu 2.6 // Project: https://github.com/onokumus/metisMenu -// Definitions by: onokums , denis +// Definitions by: onokums , denis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/microsoft-ajax/index.d.ts b/types/microsoft-ajax/index.d.ts index 27aeeb441f..14e143e47a 100644 --- a/types/microsoft-ajax/index.d.ts +++ b/types/microsoft-ajax/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Microsoft ASP.NET Ajax client side library // Project: http://msdn.microsoft.com/en-us/library/ee341002(v=vs.100).aspx -// Definitions by: Patrick Magee +// Definitions by: Patrick Magee // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped //#region Global Namespace diff --git a/types/microsoft-live-connect/index.d.ts b/types/microsoft-live-connect/index.d.ts index 723387e508..b43a6bbb04 100644 --- a/types/microsoft-live-connect/index.d.ts +++ b/types/microsoft-live-connect/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Microsoft Live Connect v5.0 // Project: http://msdn.microsoft.com/en-us/library/live/hh243643.aspx -// Definitions by: John Vilk +// Definitions by: John Vilk // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/microsoft-sdk-soap/index.d.ts b/types/microsoft-sdk-soap/index.d.ts index de1c43db12..ceba101e53 100644 --- a/types/microsoft-sdk-soap/index.d.ts +++ b/types/microsoft-sdk-soap/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Sdk.Soap.js // Project: https://code.msdn.microsoft.com/SdkSoapjs-9b51b99a -// Definitions by: Markus Mauch +// Definitions by: Markus Mauch // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Q from "q"; diff --git a/types/minimatch/index.d.ts b/types/minimatch/index.d.ts index 1bc48648bd..5c9bd38a28 100644 --- a/types/minimatch/index.d.ts +++ b/types/minimatch/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Minimatch 3.0 // Project: https://github.com/isaacs/minimatch -// Definitions by: vvakame +// Definitions by: vvakame // Shant Marouti // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/minipass/minipass-tests.ts b/types/minipass/minipass-tests.ts index 9839087540..f21c661bba 100644 --- a/types/minipass/minipass-tests.ts +++ b/types/minipass/minipass-tests.ts @@ -1,6 +1,6 @@ import MiniPass = require('minipass'); -let encoding: string | null = null; +const encoding: string | null = null; new MiniPass(); new MiniPass({objectMode: true}); diff --git a/types/mixpanel/index.d.ts b/types/mixpanel/index.d.ts index ce1d31fb85..aac6c97ac9 100644 --- a/types/mixpanel/index.d.ts +++ b/types/mixpanel/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for Mixpanel 2.11 // Project: https://mixpanel.com/ // https://github.com/mixpanel/mixpanel-js -// Definitions by: Knut Eirik Leira Hjelle +// Definitions by: Knut Eirik Leira Hjelle // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Mixpanel diff --git a/types/mixto/index.d.ts b/types/mixto/index.d.ts index f729f38f0c..6b036f1557 100644 --- a/types/mixto/index.d.ts +++ b/types/mixto/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mixto // Project: https://github.com/atom/mixto -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Mixto { diff --git a/types/mobile-detect/index.d.ts b/types/mobile-detect/index.d.ts index e85b1afc27..61bde9d853 100644 --- a/types/mobile-detect/index.d.ts +++ b/types/mobile-detect/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mobile-detect v1.2.0 // Project: http://hgoebl.github.io/mobile-detect.js/ -// Definitions by: Martin McWhorter +// Definitions by: Martin McWhorter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class MobileDetect { diff --git a/types/mocha/index.d.ts b/types/mocha/index.d.ts index 3fd1bbe987..bc2f69a0a4 100644 --- a/types/mocha/index.d.ts +++ b/types/mocha/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mocha 2.2.5 // Project: http://mochajs.org/ -// Definitions by: Kazi Manzur Rashid , otiai10 , jt000 , Vadim Macagon +// Definitions by: Kazi Manzur Rashid , otiai10 , jt000 , Vadim Macagon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface MochaSetupOptions { diff --git a/types/modernizr/index.d.ts b/types/modernizr/index.d.ts index c2fb44cc67..ff88e9f523 100644 --- a/types/modernizr/index.d.ts +++ b/types/modernizr/index.d.ts @@ -1,9 +1,9 @@ // Type definitions for Modernizr 3.5 // Project: http://modernizr.com/ -// Definitions by: Boris Yankov -// Theodore Brown -// Leon Yu -// Luca Trazzi +// Definitions by: Boris Yankov +// Theodore Brown +// Leon Yu +// Luca Trazzi // Nathan Hardy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/moment-business/index.d.ts b/types/moment-business/index.d.ts index 9d400c62dd..38dab464c5 100644 --- a/types/moment-business/index.d.ts +++ b/types/moment-business/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for moment-business 0.1 // Project: https://github.com/jmeas/moment-business -// Definitions by: Greg Sieranski +// Definitions by: Greg Sieranski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as moment from "moment"; diff --git a/types/mongoose-paginate/index.d.ts b/types/mongoose-paginate/index.d.ts index 2b27c30ad5..ad54786f53 100644 --- a/types/mongoose-paginate/index.d.ts +++ b/types/mongoose-paginate/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mongoose-paginate 5.0.0 // Project: https://github.com/edwardhotchkiss/mongoose-paginate -// Definitions by: Linus Brolin , simonxca +// Definitions by: Linus Brolin , simonxca // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/mongoose-promise/index.d.ts b/types/mongoose-promise/index.d.ts index 30becf8a2f..831153f840 100644 --- a/types/mongoose-promise/index.d.ts +++ b/types/mongoose-promise/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Mongoose-Promise 4.5.4 // Project: http://mongoosejs.com/ -// Definitions by: simonxca +// Definitions by: simonxca // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/mongoose-seeder/index.d.ts b/types/mongoose-seeder/index.d.ts index 8789b7b460..f3d9b8f1e4 100644 --- a/types/mongoose-seeder/index.d.ts +++ b/types/mongoose-seeder/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mongoose-seeder 1.2.1 // Project: https://github.com/SamVerschueren/mongoose-seeder -// Definitions by: Crevil +// Definitions by: Crevil // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Q from 'q'; diff --git a/types/mongoose-sequence/index.d.ts b/types/mongoose-sequence/index.d.ts index f4a4e77f1d..06e5cd2495 100644 --- a/types/mongoose-sequence/index.d.ts +++ b/types/mongoose-sequence/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mongoose-sequence 3.0.2 // Project: https://github.com/ramiel/mongoose-sequence -// Definitions by: Linus Brolin +// Definitions by: Linus Brolin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 9045e5ec3b..9cb4d6a7f7 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Mongoose 4.7.1 // Project: http://mongoosejs.com/ -// Definitions by: simonxca , horiuchi , sindrenm , lukasz-zak +// Definitions by: simonxca , horiuchi , sindrenm , lukasz-zak // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/monk/index.d.ts b/types/monk/index.d.ts index 3ebc68c151..8e732bd9c4 100644 --- a/types/monk/index.d.ts +++ b/types/monk/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Monk v1.0.1 // Project: https://github.com/LearnBoost/monk.git -// Definitions by: Patrick Bartsch +// Definitions by: Patrick Bartsch // Definitions: https://github.com/DefinitelyTyped/Monk declare module "monk" { diff --git a/types/moxios/index.d.ts b/types/moxios/index.d.ts index 2ff3694ba4..ee1b3e420f 100644 --- a/types/moxios/index.d.ts +++ b/types/moxios/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for moxios 0.4 // Project: https://github.com/mzabriskie/moxios -// Definitions by: Asuka Ito +// Definitions by: Asuka Ito // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { AxiosInstance } from "axios"; diff --git a/types/mpromise/index.d.ts b/types/mpromise/index.d.ts index 12f014054f..4830e632a3 100644 --- a/types/mpromise/index.d.ts +++ b/types/mpromise/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mpromise 0.5.4 // Project: https://github.com/aheckmann/mpromise -// Definitions by: Seulgi Kim +// Definitions by: Seulgi Kim // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface IResolveFunction { diff --git a/types/ms/index.d.ts b/types/ms/index.d.ts index 211c94508e..d048374b2b 100644 --- a/types/ms/index.d.ts +++ b/types/ms/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ms v0.7.1 // Project: https://github.com/guille/ms.js -// Definitions by: Zhiyuan Wang +// Definitions by: Zhiyuan Wang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/msgpack-lite/index.d.ts b/types/msgpack-lite/index.d.ts index dfdc3cd821..27c4fb619b 100644 --- a/types/msgpack-lite/index.d.ts +++ b/types/msgpack-lite/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for msgpack-lite 0.1 // Project: https://github.com/kawanet/msgpack-lite -// Definitions by: Endel Dreyer , Edmund Fokschaner +// Definitions by: Endel Dreyer , Edmund Fokschaner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -19,7 +19,7 @@ export function decode(input: Buffer | Uint8Array | number[], options?: DecoderO /** * create a stream that encodes from JS Object to MessagePack */ -export function createEncodeStream(options?: EncoderOptions & stream.TransformOptions ): EncodeStream; +export function createEncodeStream(options?: EncoderOptions & stream.TransformOptions): EncodeStream; /** * create a stream that decodes from MessagePack (Buffer) to JS Object diff --git a/types/msgpack5/index.d.ts b/types/msgpack5/index.d.ts index f2d0382182..5fe20ef03d 100644 --- a/types/msgpack5/index.d.ts +++ b/types/msgpack5/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for msgpack5 v3.4.0 // Project: https://github.com/mcollina/msgpack5/ -// Definitions by: Wonshik Kim , Kei Son +// Definitions by: Wonshik Kim , Kei Son // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import stream = require('stream'); diff --git a/types/msnodesql/index.d.ts b/types/msnodesql/index.d.ts index 08f31f7cae..a29029bb1d 100644 --- a/types/msnodesql/index.d.ts +++ b/types/msnodesql/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for msnodesql 0.2.1 // Project: https://github.com/WindowsAzure/node-sqlserver -// Definitions by: Boris Yankov , Maxime LUCE +// Definitions by: Boris Yankov , Maxime LUCE // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/mssql/index.d.ts b/types/mssql/index.d.ts index d3e9c46e25..a551d15ba8 100644 --- a/types/mssql/index.d.ts +++ b/types/mssql/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for mssql 4.0.5 // Project: https://www.npmjs.com/package/mssql -// Definitions by: COLSA Corporation , Ben Farr , Vitor Buzinaro , Matt Richardson , Jørgen Elgaard Larsen , Peter Keuter +// Definitions by: COLSA Corporation , Ben Farr , Vitor Buzinaro , Matt Richardson , Jørgen Elgaard Larsen , Peter Keuter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/multer-gridfs-storage/index.d.ts b/types/multer-gridfs-storage/index.d.ts index fddd2baa76..b9af5ed757 100644 --- a/types/multer-gridfs-storage/index.d.ts +++ b/types/multer-gridfs-storage/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for multer-gridfs-storage 2.0 // Project: https://github.com/devconcept/multer-gridfs-storage -// Definitions by: devconcept +// Definitions by: devconcept // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { EventEmitter } from 'events'; diff --git a/types/multer-s3/index.d.ts b/types/multer-s3/index.d.ts index a8daaccef3..f826a288e7 100644 --- a/types/multer-s3/index.d.ts +++ b/types/multer-s3/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for multer-s3 2.7 // Project: https://github.com/badunk/multer-s3 -// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk +// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk // Definitions: https://github.com/DefinitelyType/DefinitelyTyped import * as AWS from "aws-sdk"; diff --git a/types/multer/multer-tests.ts b/types/multer/multer-tests.ts index 49d8ccc182..029f5fa0f4 100644 --- a/types/multer/multer-tests.ts +++ b/types/multer/multer-tests.ts @@ -25,7 +25,7 @@ const diskStorage = multer.diskStorage({ cb(null, '/tmp/my-uploads'); }, filename(req, file, cb) { - cb(null, file.fieldname + '-' + Date.now()); + cb(null, `${file.fieldname}-${Date.now()}`); } }); diff --git a/types/multer/tslint.json b/types/multer/tslint.json index 3db14f85ea..946c3b6691 100644 --- a/types/multer/tslint.json +++ b/types/multer/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} diff --git a/types/mustache/index.d.ts b/types/mustache/index.d.ts index 2a90f65837..26a00fc796 100644 --- a/types/mustache/index.d.ts +++ b/types/mustache/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Mustache 0.8.2 // Project: https://github.com/janl/mustache.js -// Definitions by: Mark Ashley Bell +// Definitions by: Mark Ashley Bell // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/nanoajax/index.d.ts b/types/nanoajax/index.d.ts index a94f07203b..72ceb0d456 100644 --- a/types/nanoajax/index.d.ts +++ b/types/nanoajax/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nanoajax v0.2.4 // Project: https://github.com/yanatan16/nanoajax -// Definitions by: Nathan Cahill +// Definitions by: Nathan Cahill // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/nanp/index.d.ts b/types/nanp/index.d.ts index b6db2888dc..44ab48c7be 100644 --- a/types/nanp/index.d.ts +++ b/types/nanp/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nanp v0.3.0 // Project: https://github.com/weisjohn/nanp -// Definitions by: Karn Saheb +// Definitions by: Karn Saheb // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Nanp { diff --git a/types/natural/index.d.ts b/types/natural/index.d.ts index 3208072243..a0f9597241 100644 --- a/types/natural/index.d.ts +++ b/types/natural/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Natural 0.2.2 // Project: https://github.com/NaturalNode/natural -// Definitions by: Dylan R. E. Moonfire +// Definitions by: Dylan R. E. Moonfire // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/ncp/index.d.ts b/types/ncp/index.d.ts index 19f80d7b9e..30ed4f38b4 100644 --- a/types/ncp/index.d.ts +++ b/types/ncp/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ncp v2.0.0 // Project: https://github.com/AvianFlu/ncp -// Definitions by: Bart van der Schoor +// Definitions by: Bart van der Schoor // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/ndarray/index.d.ts b/types/ndarray/index.d.ts index 718c7075c3..eb889d31af 100644 --- a/types/ndarray/index.d.ts +++ b/types/ndarray/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ndarray 1.0 // Project: https://github.com/scijs/ndarray -// Definitions by: Giff Song , taoqf +// Definitions by: Giff Song , taoqf // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/negotiator/negotiator-tests.ts b/types/negotiator/negotiator-tests.ts index 56fcc0a58a..12c1b6f1c3 100644 --- a/types/negotiator/negotiator-tests.ts +++ b/types/negotiator/negotiator-tests.ts @@ -11,7 +11,7 @@ const request = { } }; -let negotiator = new Negotiator(request); +const negotiator = new Negotiator(request); const availableMediaTypes = ['text/html', 'text/plain', 'application/json']; // $ExpectType string[] diff --git a/types/netmask/index.d.ts b/types/netmask/index.d.ts index 2b1768b467..8bbcee715c 100644 --- a/types/netmask/index.d.ts +++ b/types/netmask/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Netmask 1.0.5 // Project: https://github.com/rs/node-netmask -// Definitions by: Matt Frantz +// Definitions by: Matt Frantz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // netmask.d.ts diff --git a/types/nightmare/index.d.ts b/types/nightmare/index.d.ts index d99947ab27..1af05002d3 100644 --- a/types/nightmare/index.d.ts +++ b/types/nightmare/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Nightmare 1.6.6 // Project: https://github.com/segmentio/nightmare -// Definitions by: horiuchi +// Definitions by: horiuchi // Sam Yang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/node-cache/node-cache-tests.ts b/types/node-cache/node-cache-tests.ts index 96c4cdd5e4..66c2fb4176 100644 --- a/types/node-cache/node-cache-tests.ts +++ b/types/node-cache/node-cache-tests.ts @@ -83,7 +83,7 @@ interface TypeSample { result = cache.getStats(); } -/* tslint:disable void-return */ +/* tslint:disable void-return no-void-expression */ { let cache: NodeCache; let result: void; diff --git a/types/node-dir/index.d.ts b/types/node-dir/index.d.ts index 706a3b3c83..5d3a31034a 100644 --- a/types/node-dir/index.d.ts +++ b/types/node-dir/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for node-dir // Project: https://github.com/fshost/node-dir -// Definitions by: Panu Horsmalahti +// Definitions by: Panu Horsmalahti // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/node-statsd/node-statsd-tests.ts b/types/node-statsd/node-statsd-tests.ts index c5c67da069..e8212f229e 100644 --- a/types/node-statsd/node-statsd-tests.ts +++ b/types/node-statsd/node-statsd-tests.ts @@ -54,5 +54,5 @@ client.histogram('my_histogram', 42, ['tag'], next); client.histogram('my_histogram', 42, 0.25, ['tag'], next); client.socket.on('error', (error) => { - return console.error("Error in socket: ", error); + console.error("Error in socket: ", error); }); diff --git a/types/node-wit/node-wit-tests.ts b/types/node-wit/node-wit-tests.ts index 7b23fbb293..d2569410fe 100644 --- a/types/node-wit/node-wit-tests.ts +++ b/types/node-wit/node-wit-tests.ts @@ -7,7 +7,7 @@ const wit = new Wit({ return new Promise((resolve, reject) => { console.log(response.text); console.log(request.entities); - return resolve(); + resolve(); }); }, myAction(request: WitRequest) { diff --git a/types/node-zookeeper-client/index.d.ts b/types/node-zookeeper-client/index.d.ts index ae98455d1f..9b98de0f65 100644 --- a/types/node-zookeeper-client/index.d.ts +++ b/types/node-zookeeper-client/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for node-zookeeper-client 0.2 // Project: https://github.com/alexguan/node-zookeeper-client -// Definitions by: York Yao +// Definitions by: York Yao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/node/tslint.json b/types/node/tslint.json index 71306394a9..43f90d97f7 100644 --- a/types/node/tslint.json +++ b/types/node/tslint.json @@ -3,6 +3,7 @@ "rules": { // All are TODOs "ban-types": false, + "dt-header": false, "max-line-length": false, "no-duplicate-imports": false, "no-duplicate-variable": false, diff --git a/types/node_redis/index.d.ts b/types/node_redis/index.d.ts index f096f3021f..198e2bceac 100644 --- a/types/node_redis/index.d.ts +++ b/types/node_redis/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for node_redis 0.8 // Project: https://github.com/mranney/node_redis -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/nodemailer-direct-transport/index.d.ts b/types/nodemailer-direct-transport/index.d.ts index a6147d8b75..c55e6da53f 100644 --- a/types/nodemailer-direct-transport/index.d.ts +++ b/types/nodemailer-direct-transport/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nodemailer-direct-transport 1.0.2 // Project: https://github.com/andris9/nodemailer-direct-transport -// Definitions by: Rogier Schouten +// Definitions by: Rogier Schouten // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as nodemailer from 'nodemailer'; diff --git a/types/nodemailer-mailgun-transport/index.d.ts b/types/nodemailer-mailgun-transport/index.d.ts index 52ee795c12..7945f1075f 100644 --- a/types/nodemailer-mailgun-transport/index.d.ts +++ b/types/nodemailer-mailgun-transport/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nodemailer-mailgun-transport 1.3 // Project: https://github.com/orliesaurus/nodemailer-mailgun-transport -// Definitions by: Oto Ciulis +// Definitions by: Oto Ciulis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as nodemailer from 'nodemailer'; diff --git a/types/nodemailer-pickup-transport/index.d.ts b/types/nodemailer-pickup-transport/index.d.ts index b14110a4cd..30d3eb5c91 100644 --- a/types/nodemailer-pickup-transport/index.d.ts +++ b/types/nodemailer-pickup-transport/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nodemailer-pickup-transport v0.1.1 // Project: https://www.npmjs.com/package/nodemailer-pickup-transport -// Definitions by: Peter Snider +// Definitions by: Peter Snider // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import nodemailer = require('nodemailer'); diff --git a/types/nodemailer-ses-transport/index.d.ts b/types/nodemailer-ses-transport/index.d.ts index 98e54f51ce..c753ec46d6 100644 --- a/types/nodemailer-ses-transport/index.d.ts +++ b/types/nodemailer-ses-transport/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nodemailer-ses-transport 3.1 // Project: https://github.com/andris9/nodemailer-ses-transport -// Definitions by: Seth Westphal +// Definitions by: Seth Westphal // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as AWS from "aws-sdk"; diff --git a/types/nodemailer-smtp-pool/index.d.ts b/types/nodemailer-smtp-pool/index.d.ts index 16eb12f1a9..4affa370c6 100644 --- a/types/nodemailer-smtp-pool/index.d.ts +++ b/types/nodemailer-smtp-pool/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nodemailer-smtp-pool 1.0.1 // Project: https://github.com/andris9/nodemailer-smtp-pool -// Definitions by: Rogier Schouten +// Definitions by: Rogier Schouten // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/nodemailer-smtp-transport/index.d.ts b/types/nodemailer-smtp-transport/index.d.ts index 4e4e11afe0..bee68bbeab 100644 --- a/types/nodemailer-smtp-transport/index.d.ts +++ b/types/nodemailer-smtp-transport/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nodemailer-smtp-transport 2.7 // Project: https://github.com/andris9/nodemailer-smtp-transport -// Definitions by: Rogier Schouten +// Definitions by: Rogier Schouten // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/nodemailer-stub-transport/index.d.ts b/types/nodemailer-stub-transport/index.d.ts index 5bae849df7..2e13d6434a 100644 --- a/types/nodemailer-stub-transport/index.d.ts +++ b/types/nodemailer-stub-transport/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nodemailer-stub-transport v1.1.0 // Project: https://github.com/andris9/nodemailer-stub-transport -// Definitions by: Cyril Schumacher +// Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as nodemailer from "nodemailer"; diff --git a/types/nodemailer/index.d.ts b/types/nodemailer/index.d.ts index cbaa9b8228..fb1c359625 100644 --- a/types/nodemailer/index.d.ts +++ b/types/nodemailer/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Nodemailer 3.1.5 // Project: https://github.com/andris9/Nodemailer -// Definitions by: Rogier Schouten +// Definitions by: Rogier Schouten // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/novnc-core/index.d.ts b/types/novnc-core/index.d.ts index 079d496631..2e22547aca 100644 --- a/types/novnc-core/index.d.ts +++ b/types/novnc-core/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for novnc-core 0.1 // Project: https://github.com/larryprice/novnc-core -// Definitions by: Ken Smith +// Definitions by: Ken Smith // BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/npm/index.d.ts b/types/npm/index.d.ts index 77593c8340..21ee933e59 100644 --- a/types/npm/index.d.ts +++ b/types/npm/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for npm 2.0.0 // Project: https://github.com/npm/npm -// Definitions by: Maxime LUCE +// Definitions by: Maxime LUCE // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/numeral/index.d.ts b/types/numeral/index.d.ts index 5e2970a0e7..3a22584b3c 100644 --- a/types/numeral/index.d.ts +++ b/types/numeral/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Numeral.js // Project: https://github.com/adamwdraper/Numeral-js -// Definitions by: Vincent Bortone +// Definitions by: Vincent Bortone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/nunjucks-date/index.d.ts b/types/nunjucks-date/index.d.ts index 1f6a04746c..936b83794a 100644 --- a/types/nunjucks-date/index.d.ts +++ b/types/nunjucks-date/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nunjucks-date // Project: https://github.com/techmsi/nunjucks-date -// Definitions by: kruncher +// Definitions by: kruncher // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module "nunjucks-date" { diff --git a/types/nunjucks/index.d.ts b/types/nunjucks/index.d.ts index edbc340474..002f8b93f8 100644 --- a/types/nunjucks/index.d.ts +++ b/types/nunjucks/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nunjucks // Project: http://mozilla.github.io/nunjucks/ -// Definitions by: Ruben Slabbert +// Definitions by: Ruben Slabbert // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/nvd3/index.d.ts b/types/nvd3/index.d.ts index 862aa38d99..cd60da4b8d 100644 --- a/types/nvd3/index.d.ts +++ b/types/nvd3/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nvd3 1.8.1 // Project: https://github.com/novus/nvd3 -// Definitions by: Peter Mitchell +// Definitions by: Peter Mitchell // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as d3 from "d3"; diff --git a/types/oauth2-server/index.d.ts b/types/oauth2-server/index.d.ts index d328e06fc4..00ec7b79c1 100644 --- a/types/oauth2-server/index.d.ts +++ b/types/oauth2-server/index.d.ts @@ -4,8 +4,7 @@ // Charles Irick // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -import { RequestHandler } from "express"; -import { Request } from "express"; +import { Request, RequestHandler } from "express"; /** * Represents an OAuth2 server instance. diff --git a/types/oauth2orize/index.d.ts b/types/oauth2orize/index.d.ts index a8fbf9c41b..3e2d31b564 100644 --- a/types/oauth2orize/index.d.ts +++ b/types/oauth2orize/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for oauth2orize 1.8 // Project: https://github.com/jaredhanson/oauth2orize/ -// Definitions by: Wonshik Kim , Kei Son , Steve Hipwell +// Definitions by: Wonshik Kim , Kei Son , Steve Hipwell // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/obelisk.js/index.d.ts b/types/obelisk.js/index.d.ts index fcbf55fe8b..2e4cf8bc3d 100644 --- a/types/obelisk.js/index.d.ts +++ b/types/obelisk.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for obelisk.js v1.1.0 // Project: https://github.com/nosir/obelisk.js/ -// Definitions by: Brian Drupieski +// Definitions by: Brian Drupieski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace obelisk { diff --git a/types/object-hash/index.d.ts b/types/object-hash/index.d.ts index 7ce1e2ce7f..b2b1cc0fd4 100644 --- a/types/object-hash/index.d.ts +++ b/types/object-hash/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for object-hash v0.5.0 // Project: https://github.com/puleos/object-hash -// Definitions by: Michael Zabka +// Definitions by: Michael Zabka // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import HashStatic = ObjectHash.HashStatic; diff --git a/types/object-path/index.d.ts b/types/object-path/index.d.ts index 9c2ede9ac0..535fbe2878 100644 --- a/types/object-path/index.d.ts +++ b/types/object-path/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for objectPath v0.9.x // Project: https://github.com/mariocasciaro/object-path -// Definitions by: Paulo Cesar +// Definitions by: Paulo Cesar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var objectPath: ObjectPathGlobal.IObjectPathStatic; diff --git a/types/oblo-util/index.d.ts b/types/oblo-util/index.d.ts index 7bc19a8ab8..93fd93c076 100644 --- a/types/oblo-util/index.d.ts +++ b/types/oblo-util/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for oblo-util v0.6.4 // Project: https://github.com/Oblosys/oblo-util -// Definitions by: Martijn Schrage +// Definitions by: Martijn Schrage // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/observe-js/index.d.ts b/types/observe-js/index.d.ts index d3321c9a8c..ff85891633 100644 --- a/types/observe-js/index.d.ts +++ b/types/observe-js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for observe-js v0.5.5 // Project: https://github.com/Polymer/observe-js -// Definitions by: Oliver Herrmann +// Definitions by: Oliver Herrmann // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace observejs { diff --git a/types/on-headers/index.d.ts b/types/on-headers/index.d.ts index ec76911be0..64c3f0e82f 100644 --- a/types/on-headers/index.d.ts +++ b/types/on-headers/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for serve-favicon 2.1.6 // Project: https://github.com/jshttp/on-headers -// Definitions by: John Jeffery +// Definitions by: John Jeffery // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/openfin/index.d.ts b/types/openfin/index.d.ts index ac90c223f7..b6c2ac9eed 100644 --- a/types/openfin/index.d.ts +++ b/types/openfin/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for OpenFin API 17.0 // Project: https://openfin.co/ -// Definitions by: Chris Barker +// Definitions by: Chris Barker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // based on v6.49.17.14 diff --git a/types/ora/index.d.ts b/types/ora/index.d.ts index 2d45e458c7..05c4c9b460 100644 --- a/types/ora/index.d.ts +++ b/types/ora/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ora 1.3 // Project: https://github.com/sindresorhus/ora -// Definitions by: Basarat Ali Syed +// Definitions by: Basarat Ali Syed // Christian Rackerseder // BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/p-all/p-all-tests.ts b/types/p-all/p-all-tests.ts index f6be092250..955b7a041f 100644 --- a/types/p-all/p-all-tests.ts +++ b/types/p-all/p-all-tests.ts @@ -8,7 +8,7 @@ const actions: [() => Promise, () => Promise, () => Promise { - let str: string = result[0]; - let str2: string = result[1]; - let num: number = result[3]; + const str: string = result[0]; + const str2: string = result[1]; + const num: number = result[3]; }); diff --git a/types/p-any/p-any-tests.ts b/types/p-any/p-any-tests.ts index e2eeda8423..9e5e6520b9 100644 --- a/types/p-any/p-any-tests.ts +++ b/types/p-any/p-any-tests.ts @@ -6,7 +6,7 @@ pAny([ got.head('google.com').then(() => 'google'), got.head('twitter.com').then(() => 'twitter'), ]).then(first => { - let str: string = first; + const str: string = first; }); pAny(new Set([ @@ -18,7 +18,7 @@ pAny(new Set([ return true; } }).then(first => { - let str: string = first; + const str: string = first; }); throw new pAny.AggregateError([]); diff --git a/types/p-some/p-some-tests.ts b/types/p-some/p-some-tests.ts index 0b8a7c8148..d3ea9aa3b0 100644 --- a/types/p-some/p-some-tests.ts +++ b/types/p-some/p-some-tests.ts @@ -28,7 +28,7 @@ pSome(new Set([ return false; } }).then(first => { - let str: string[] = first; + const str: string[] = first; }); throw new pSome.AggregateError([]); diff --git a/types/p-tap/p-tap-tests.ts b/types/p-tap/p-tap-tests.ts index e47cd83140..c0db33e3cc 100644 --- a/types/p-tap/p-tap-tests.ts +++ b/types/p-tap/p-tap-tests.ts @@ -2,20 +2,20 @@ import pTap = require('p-tap'); Promise.resolve('unicorn') .then(pTap(val => { - let str: string = val; + const str: string = val; return 1; })) .then(val => { - let str: string = val; + const str: string = val; }); Promise.resolve('unicorn') .then(pTap(val => { - let str: string = val; + const str: string = val; return Promise.resolve(1); })) .then(val => { - let str: string = val; + const str: string = val; }); Promise.reject(new Error()) diff --git a/types/paralleljs/index.d.ts b/types/paralleljs/index.d.ts index 59e68425a0..5f0bbda2a8 100644 --- a/types/paralleljs/index.d.ts +++ b/types/paralleljs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for parallel.js // Project: http://adambom.github.io/parallel.js/ -// Definitions by: Josh Baldwin +// Definitions by: Josh Baldwin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* diff --git a/types/parse-git-config/parse-git-config-tests.ts b/types/parse-git-config/parse-git-config-tests.ts index d7d8d0f780..7afae71a66 100644 --- a/types/parse-git-config/parse-git-config-tests.ts +++ b/types/parse-git-config/parse-git-config-tests.ts @@ -10,7 +10,7 @@ function test_parse_options() { if (origin && origin.url) { origin.url.split('/'); } - }) === undefined; + }); } function test_parse_cwd() { @@ -23,7 +23,7 @@ function test_parse_cwd() { if (origin && origin.url) { origin.url.split('/'); } - }) === undefined; + }); } function test_parse() { @@ -36,7 +36,7 @@ function test_parse() { if (origin && origin.url) { origin.url.split('/'); } - }) === undefined; + }); } function test_sync_options() { diff --git a/types/passport-client-cert/index.d.ts b/types/passport-client-cert/index.d.ts index 3bd79d312a..8428545a8f 100644 --- a/types/passport-client-cert/index.d.ts +++ b/types/passport-client-cert/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for passport-jwt 2.0 // Project: https://github.com/ripjar/passport-client-cert -// Definitions by: Sean Warner +// Definitions by: Sean Warner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/passport-github/passport-github-tests.ts b/types/passport-github/passport-github-tests.ts index 10c24a366d..fb8dc73d76 100644 --- a/types/passport-github/passport-github-tests.ts +++ b/types/passport-github/passport-github-tests.ts @@ -35,7 +35,7 @@ passport.use(new github.Strategy( }, (accessToken: string, refreshToken: string, profile: github.Profile, done: (error: any, user?: any) => void) => { User.findOrCreate(profile.id, profile.provider, (err, user) => { - if (err) { return done(err); } + if (err) { done(err); return; } done(null, user); }); }) diff --git a/types/passport-github2/index.d.ts b/types/passport-github2/index.d.ts index cd7f6a2566..7fc85287f7 100644 --- a/types/passport-github2/index.d.ts +++ b/types/passport-github2/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for passport-github 1.1 // Project: https://github.com/jaredhanson/passport-github // Definitions by: Yasunori Ohoka -// Maarten Mulders +// Maarten Mulders // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/passport-github2/passport-github2-tests.ts b/types/passport-github2/passport-github2-tests.ts index ee101b618b..efe5508ebd 100644 --- a/types/passport-github2/passport-github2-tests.ts +++ b/types/passport-github2/passport-github2-tests.ts @@ -35,7 +35,7 @@ passport.use(new github.Strategy( }, (accessToken: string, refreshToken: string, profile: github.Profile, done: (error: any, user?: any) => void) => { User.findOrCreate(profile.id, profile.provider, (err, user) => { - if (err) { return done(err); } + if (err) { done(err); return; } done(null, user); }); }) diff --git a/types/passport-google-oauth2/passport-google-oauth2-tests.ts b/types/passport-google-oauth2/passport-google-oauth2-tests.ts index 37261bc818..0281ef98a7 100644 --- a/types/passport-google-oauth2/passport-google-oauth2-tests.ts +++ b/types/passport-google-oauth2/passport-google-oauth2-tests.ts @@ -1,6 +1,5 @@ -import * as express from 'express'; -import * as PassportGoogle from 'passport-google-oauth2'; -import { Strategy as GoogleStrategy } from 'passport-google-oauth2'; +import { Request } from 'express'; +import { Strategy as GoogleStrategy, VerifyCallback } from 'passport-google-oauth2'; new GoogleStrategy({ callbackURL: 'callbackurl', @@ -8,10 +7,10 @@ new GoogleStrategy({ clientSecret: 'shhh', passReqToCallback: true, }, ( - req: express.Request, + req: Request, accessToken: string, refreshToken: string, profile: any, - done: PassportGoogle.VerifyCallback) => { + done: VerifyCallback) => { // Some registration / log in logic }); diff --git a/types/passport-jwt/index.d.ts b/types/passport-jwt/index.d.ts index 207f0ad945..b76f1902ea 100644 --- a/types/passport-jwt/index.d.ts +++ b/types/passport-jwt/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for passport-jwt 2.0 // Project: https://github.com/themikenicholson/passport-jwt -// Definitions by: TANAKA Koichi -// Alex Young +// Definitions by: TANAKA Koichi +// Alex Young // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Strategy as PassportStrategy } from 'passport-strategy'; diff --git a/types/passport-local-mongoose/index.d.ts b/types/passport-local-mongoose/index.d.ts index 2e3377a9b8..512b68179f 100644 --- a/types/passport-local-mongoose/index.d.ts +++ b/types/passport-local-mongoose/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for passport-local-mongoose 4.0.0 // Project: https://github.com/saintedlama/passport-local-mongoose -// Definitions by: Linus Brolin +// Definitions by: Linus Brolin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/passport-saml/index.d.ts b/types/passport-saml/index.d.ts index 390f9424c3..aae361373b 100644 --- a/types/passport-saml/index.d.ts +++ b/types/passport-saml/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for passport-saml 0.15 // Project: https://github.com/bergie/passport-saml -// Definitions by: Chris Barth +// Definitions by: Chris Barth // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import passport = require('passport'); diff --git a/types/passport-steam/passport-steam-tests.ts b/types/passport-steam/passport-steam-tests.ts index ecb8443169..278495c99f 100644 --- a/types/passport-steam/passport-steam-tests.ts +++ b/types/passport-steam/passport-steam-tests.ts @@ -19,7 +19,7 @@ passport.use(new steam.Strategy({ }, (identifier: any, profile: any, done: (error: any, user?: any) => void) => { User.findOrCreate(profile.id, profile.provider, (err, user) => { - if (err) { return done(err); } + if (err) { done(err); return; } done(null, user); }); }) diff --git a/types/passport-strategy/index.d.ts b/types/passport-strategy/index.d.ts index 8494584839..c9c15f0a2b 100644 --- a/types/passport-strategy/index.d.ts +++ b/types/passport-strategy/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Passport Strategy module v0.2.0 // Project: https://github.com/jaredhanson/passport-strategy -// Definitions by: Lior Mualem +// Definitions by: Lior Mualem // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/passport-unique-token/passport-unique-token-tests.ts b/types/passport-unique-token/passport-unique-token-tests.ts index c6c810f362..3a38672416 100644 --- a/types/passport-unique-token/passport-unique-token-tests.ts +++ b/types/passport-unique-token/passport-unique-token-tests.ts @@ -74,7 +74,8 @@ app.post('/login', authenticate, (req, res) => { function authenticate(req: express.Request, res: express.Response, next: express.NextFunction) { passport.authenticate('token', (err: any, user: any, info: any) => { if (err) { - return next(err); + next(err); + return; } if (!user) { diff --git a/types/passport/index.d.ts b/types/passport/index.d.ts index 0a8f78fb77..b1c9d95196 100644 --- a/types/passport/index.d.ts +++ b/types/passport/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Passport 0.3 // Project: http://passportjs.org -// Definitions by: Horiuchi_H , Eric Naeseth +// Definitions by: Horiuchi_H , Eric Naeseth // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Express { diff --git a/types/password-hash/index.d.ts b/types/password-hash/index.d.ts index 7388f82c39..a0ea8891f8 100644 --- a/types/password-hash/index.d.ts +++ b/types/password-hash/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for password-hash 1.2.x // Project: https://github.com/davidwood/node-password-hash -// Definitions by: TANAKA Koichi +// Definitions by: TANAKA Koichi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/pathjs/index.d.ts b/types/pathjs/index.d.ts index ad49b2afb2..fa652d0245 100644 --- a/types/pathjs/index.d.ts +++ b/types/pathjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Pathjs v0.8.4 // Project: https://github.com/mtrpcic/pathjs -// Definitions by: Lokesh Peta +// Definitions by: Lokesh Peta // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface IPathHistory{ diff --git a/types/pathwatcher/index.d.ts b/types/pathwatcher/index.d.ts index 61f084b6ca..b1135c384c 100644 --- a/types/pathwatcher/index.d.ts +++ b/types/pathwatcher/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for pathwatcher // Project: https://github.com/atom/node-pathwatcher -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/pdfjs-dist/index.d.ts b/types/pdfjs-dist/index.d.ts index 31c9ed7800..e70a0acb0d 100644 --- a/types/pdfjs-dist/index.d.ts +++ b/types/pdfjs-dist/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for PDF.js // Project: https://github.com/mozilla/pdf.js -// Definitions by: Josh Baldwin +// Definitions by: Josh Baldwin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* diff --git a/types/phantom/index.d.ts b/types/phantom/index.d.ts index bc9b4e4f1d..e6f089b114 100644 --- a/types/phantom/index.d.ts +++ b/types/phantom/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for PhantomJS bridge for NodeJS 3.2 // Project: https://github.com/sgentle/phantomjs-node -// Definitions by: horiuchi , Random +// Definitions by: horiuchi , Random // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export function create(args?: string[]): Promise; diff --git a/types/phonegap/index.d.ts b/types/phonegap/index.d.ts index 8770c757f4..60ad5d2fd9 100644 --- a/types/phonegap/index.d.ts +++ b/types/phonegap/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for PhoneGap 2.3 // Project: http://phonegap.com -// Definitions by: Boris Yankov , Dick van den Brink +// Definitions by: Boris Yankov , Dick van den Brink // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface GeolocationError { diff --git a/types/photonui/index.d.ts b/types/photonui/index.d.ts index e476d2d610..544f2eb226 100644 --- a/types/photonui/index.d.ts +++ b/types/photonui/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for PhotonUI v1.0.0 // Project: https://github.com/wanadev/PhotonUI -// Definitions by: Florent Poujol +// Definitions by: Florent Poujol // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace photonui { diff --git a/types/pickadate/index.d.ts b/types/pickadate/index.d.ts index b644678caf..00a0cad5b1 100644 --- a/types/pickadate/index.d.ts +++ b/types/pickadate/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for pickadate.js 3.5.5 // Project: https://github.com/amsul/pickadate.js -// Definitions by: Theodore Brown , Leonard Thieu +// Definitions by: Theodore Brown , Leonard Thieu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/pidusage/index.d.ts b/types/pidusage/index.d.ts index 813bbaa6a4..fbe98309b7 100644 --- a/types/pidusage/index.d.ts +++ b/types/pidusage/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for pidusage 1.1 // Project: https://github.com/soyuka/pidusage -// Definitions by: Cyril Schumacher +// Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface Stat { diff --git a/types/pigpio/tslint.json b/types/pigpio/tslint.json index 3db14f85ea..4d9c18f40a 100644 --- a/types/pigpio/tslint.json +++ b/types/pigpio/tslint.json @@ -1 +1,8 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-void-expression": false, + "prefer-template": false + } +} diff --git a/types/pinkyswear/index.d.ts b/types/pinkyswear/index.d.ts index d74d17f10f..ebdf155d29 100644 --- a/types/pinkyswear/index.d.ts +++ b/types/pinkyswear/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for PinkySwear v2.2.2 // Project: https://github.com/timjansen/PinkySwear.js -// Definitions by: Chance Snow +// Definitions by: Chance Snow // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* diff --git a/types/pino/pino-tests.ts b/types/pino/pino-tests.ts index fcb3427114..cc7704be77 100644 --- a/types/pino/pino-tests.ts +++ b/types/pino/pino-tests.ts @@ -13,7 +13,7 @@ info({obj: {aa: 'bbb'}}, 'another'); setImmediate(info, 'after setImmediate'); error(new Error('an error')); -let log2: pino.Logger = pino({ +const log2: pino.Logger = pino({ name: 'myapp', safe: true, serializers: { @@ -22,7 +22,7 @@ let log2: pino.Logger = pino({ } }); -let pretty = pino.pretty(); +const pretty = pino.pretty(); pretty.pipe(process.stdout); const log3 = pino({ name: 'app', diff --git a/types/pixi.js/pixi.js-tests.ts b/types/pixi.js/pixi.js-tests.ts index c1dba634fe..d5eec8f254 100644 --- a/types/pixi.js/pixi.js-tests.ts +++ b/types/pixi.js/pixi.js-tests.ts @@ -247,7 +247,7 @@ function basics() { for (let i = 0; i < 30; i++) { const val = i < 10 ? "0" + i : i; - frames.push(PIXI.Texture.fromFrame("rollSequence00" + val + ".png")); + frames.push(PIXI.Texture.fromFrame(`rollSequence00${val}.png`)); } this.anim = new PIXI.extras.AnimatedSprite(frames); @@ -495,7 +495,7 @@ function demos() { const explosionTextures: PIXI.Texture[] = []; for (let i = 0; i < 26; i++) { - const texture = PIXI.Texture.fromFrame("Explosion_Sequence_A " + (i + 1) + ".png"); + const texture = PIXI.Texture.fromFrame(`Explosion_Sequence_A ${i + 1}.png`); explosionTextures.push(texture); } diff --git a/types/pixi.js/tslint.json b/types/pixi.js/tslint.json index b1facef47b..1b39c5314f 100644 --- a/types/pixi.js/tslint.json +++ b/types/pixi.js/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "ban-types": false, + "dt-header": false, "interface-name": false, "no-empty-interface": false, "no-inferrable-types": false, diff --git a/types/platform/index.d.ts b/types/platform/index.d.ts index fd995a085e..b0f640d522 100644 --- a/types/platform/index.d.ts +++ b/types/platform/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Platform 1.3 // Project: https://github.com/bestiejs/platform.js -// Definitions by: Jake Hickman +// Definitions by: Jake Hickman // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare interface Platform { diff --git a/types/plotly.js/tslint.json b/types/plotly.js/tslint.json index 3db14f85ea..993aa8344b 100644 --- a/types/plotly.js/tslint.json +++ b/types/plotly.js/tslint.json @@ -1 +1,8 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "no-duplicate-imports": false, + "no-object-literal-type-assertion": false + } +} diff --git a/types/plugapi/index.d.ts b/types/plugapi/index.d.ts index e1c61ce792..7f6b24ecd9 100644 --- a/types/plugapi/index.d.ts +++ b/types/plugapi/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for plugapi 4.2 // Project: https://www.npmjs.com/package/plugapi -// Definitions by: Brice Theurillat +// Definitions by: Brice Theurillat // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace PlugAPI { interface PlugLogin { @@ -335,7 +335,7 @@ declare namespace PlugAPI { v: number; } - interface Command extends Event.Chat { + interface Command extends Chat { command: string; args: string[]; respond(...args: any[]): any; diff --git a/types/plugapi/plugapi-tests.ts b/types/plugapi/plugapi-tests.ts index 58b88c0e2f..9333a283cd 100644 --- a/types/plugapi/plugapi-tests.ts +++ b/types/plugapi/plugapi-tests.ts @@ -16,7 +16,7 @@ new PlugAPI({ if (data.type === "emote") { console.log(data.from + data.message); } else { - console.log(data.from + "> " + data.message); + console.log(`${data.from}> ${data.message}`); } }); diff --git a/types/plupload/index.d.ts b/types/plupload/index.d.ts index 948270d6ee..614ba27261 100644 --- a/types/plupload/index.d.ts +++ b/types/plupload/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Plupload 2.0 // Project: http://www.plupload.com/ -// Definitions by: Patrick Bußmann +// Definitions by: Patrick Bußmann // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface plupload_settings { diff --git a/types/polymer-ts/index.d.ts b/types/polymer-ts/index.d.ts index d5c91f4e80..bf7daf936f 100644 --- a/types/polymer-ts/index.d.ts +++ b/types/polymer-ts/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for PolymerTS 0.1.25 // Project: https://github.com/nippur72/PolymerTS -// Definitions by: Louis Grignon +// Definitions by: Louis Grignon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace polymer { diff --git a/types/popcorn/index.d.ts b/types/popcorn/index.d.ts index 2aa23b1897..68eacee7da 100644 --- a/types/popcorn/index.d.ts +++ b/types/popcorn/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Popcorn 1.3.0 // Project: https://github.com/mozilla/popcorn-js -// Definitions by: grapswiz +// Definitions by: grapswiz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var Popcorn:PopcornStatic; diff --git a/types/popper.js/tslint.json b/types/popper.js/tslint.json index 107ac2cd42..59781adedc 100644 --- a/types/popper.js/tslint.json +++ b/types/popper.js/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { "ban-types": false, + "dt-header": false, "no-single-declare-module": false, "no-var": false } diff --git a/types/portscanner/portscanner-tests.ts b/types/portscanner/portscanner-tests.ts index a907e86d2a..8a602dda82 100644 --- a/types/portscanner/portscanner-tests.ts +++ b/types/portscanner/portscanner-tests.ts @@ -4,7 +4,7 @@ declare function assert(cond: boolean): void; const checkPortCallback = (error: Error | null, status: Status) => { assert(error === null); - error && assert(error.message === ''); + if (error) assert(error.message === ''); assert(status === 'open'); assert(status === 'closed'); }; @@ -30,7 +30,7 @@ checkPortStatus(3000, '127.0.0.1', { timeout: 400 }, checkPortCallback); const findPortCallback = (error: Error | null, port: number) => { assert(error === null); - error && assert(error.message === ''); + if (error) assert(error.message === ''); assert(port === 3005); }; diff --git a/types/postal/index.d.ts b/types/postal/index.d.ts index 62caad6c1d..920f1a1907 100644 --- a/types/postal/index.d.ts +++ b/types/postal/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Postal v1.0.8 // Project: https://github.com/postaljs/postal.js -// Definitions by: Lokesh Peta , Paul Jolly +// Definitions by: Lokesh Peta , Paul Jolly // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface IConfiguration { diff --git a/types/procfs-stats/index.d.ts b/types/procfs-stats/index.d.ts index f0028fb236..0df51139a2 100644 --- a/types/procfs-stats/index.d.ts +++ b/types/procfs-stats/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for procfs-stats 1.0 // Project: https://github.com/soldair/node-procfs-stats -// Definitions by: Cyril Schumacher +// Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function procfs(pid: number): procfs.StatStatic; diff --git a/types/project-oxford/index.d.ts b/types/project-oxford/index.d.ts index 5a85f26ad6..f84676c94c 100644 --- a/types/project-oxford/index.d.ts +++ b/types/project-oxford/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for project-oxford v0.1.3 // Project: https://github.com/felixrieseberg/project-oxford -// Definitions by: Scott Southwood +// Definitions by: Scott Southwood // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/promisify-supertest/index.d.ts b/types/promisify-supertest/index.d.ts index e887c6c915..5eaff0b4a2 100644 --- a/types/promisify-supertest/index.d.ts +++ b/types/promisify-supertest/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for promisify-supertest v1.0.0 // Project: https://www.npmjs.com/package/promisify-supertest -// Definitions by: Leo Liang +// Definitions by: Leo Liang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/properties-reader/index.d.ts b/types/properties-reader/index.d.ts index 9a76f16cc9..545f575a72 100644 --- a/types/properties-reader/index.d.ts +++ b/types/properties-reader/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for properties-reader 0.0 // Project: https://github.com/steveukx/properties -// Definitions by: Zlatko Andonovski +// Definitions by: Zlatko Andonovski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace PropertiesReader { diff --git a/types/protractor-helpers/index.d.ts b/types/protractor-helpers/index.d.ts index 9bd62cb167..c151593eaf 100644 --- a/types/protractor-helpers/index.d.ts +++ b/types/protractor-helpers/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for protractor-helpers v1.0.0 // Project: https://github.com/wix/protractor-helpers -// Definitions by: John Cant +// Definitions by: John Cant // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/proxyquire/index.d.ts b/types/proxyquire/index.d.ts index c6c38cb85f..1669cb40ca 100644 --- a/types/proxyquire/index.d.ts +++ b/types/proxyquire/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Proxyquire 1.3.0 // Project: https://github.com/thlorenz/proxyquire -// Definitions by: jt000 +// Definitions by: jt000 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var p: Proxyquire; diff --git a/types/pty.js/index.d.ts b/types/pty.js/index.d.ts index c54022279b..5a58f4b9fb 100644 --- a/types/pty.js/index.d.ts +++ b/types/pty.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for pty.js 0.2 // Project: https://github.com/chjj/pty.js -// Definitions by: Vadim Macagon +// Definitions by: Vadim Macagon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/pubsub-js/index.d.ts b/types/pubsub-js/index.d.ts index 1f5daadf95..9a2485f898 100644 --- a/types/pubsub-js/index.d.ts +++ b/types/pubsub-js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for PubSubJS 1.5.2 // Project: https://github.com/mroderick/PubSubJS -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace PubSubJS { diff --git a/types/pure-render-decorator/index.d.ts b/types/pure-render-decorator/index.d.ts index 7cc6832040..1a768e2f5e 100644 --- a/types/pure-render-decorator/index.d.ts +++ b/types/pure-render-decorator/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for pure-render-decorator v0.2.0 // Project: https://github.com/felixgirault/pure-render-decorator -// Definitions by: Sean Kelley +// Definitions by: Sean Kelley // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/qrcode-generator/index.d.ts b/types/qrcode-generator/index.d.ts index f4517b56d4..1ca4fb0370 100644 --- a/types/qrcode-generator/index.d.ts +++ b/types/qrcode-generator/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for grcode-generator // Project: https://github.com/kazuhikoarase/qrcode-generator -// Definitions by: Stefan Huber +// Definitions by: Stefan Huber // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function qrcode(type: number, errorCorrectionLevel: string) : QRCode; diff --git a/types/r-script/index.d.ts b/types/r-script/index.d.ts index 36e611d98a..0aa4ca1d7d 100644 --- a/types/r-script/index.d.ts +++ b/types/r-script/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for r-script 0.0 // Project: https://github.com/joshkatz/r-script -// Definitions by: Adrian Leonhard +// Definitions by: Adrian Leonhard // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/radium/index.d.ts b/types/radium/index.d.ts index b875d797e3..7dd1387d77 100644 --- a/types/radium/index.d.ts +++ b/types/radium/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for radium 0.18.1 // Project: https://github.com/formidablelabs/radium -// Definitions by: Alex Gorbatchev , Philipp Holzer , Alexey Svetliakov , Mikael Hermansson +// Definitions by: Alex Gorbatchev , Philipp Holzer , Alexey Svetliakov , Mikael Hermansson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index e35f3e29e3..909eba9d5f 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -268,7 +268,7 @@ R.times(i, 5); double(2); // => 4 function greet(salutation: string, title: string, firstName: string, lastName: string) { - return salutation + ", " + title + " " + firstName + " " + lastName + "!"; + return `${salutation}, ${title} ${firstName} ${lastName}!`; } const sayHello = R.partial(greet, "Hello"); @@ -983,7 +983,7 @@ type Pair = KeyValuePair; const fn = R.cond([ [R.equals(0), R.always("water freezes at 0°C")], [R.equals(100), R.always("water boils at 100°C")], - [R.T, (temp: number) => "nothing special happens at " + temp + "°C"] + [R.T, (temp: number) => `nothing special happens at ${temp}°C`] ]); const a: string = fn(0); // => 'water freezes at 0°C' const b: string = fn(50); // => 'nothing special happens at 50°C' @@ -1059,7 +1059,7 @@ type Pair = KeyValuePair; } toStringn() { - return "new Point(" + this.x + ", " + this.y + ")"; + return `new Point(${this.x}, ${this.y})`; } } R.toString(new Point(1, 2)); // => 'new Point(1, 2)' @@ -1088,9 +1088,9 @@ type Pair = KeyValuePair; }; () => { - let of = Array.of; - let fn = (x: number) => Array.of(x + 1); - let list = [1, 2, 3]; + const of = Array.of; + const fn = (x: number) => Array.of(x + 1); + const list = [1, 2, 3]; R.traverse(of, fn, list); R.traverse(of, fn)(list); R.traverse(of)(fn, list); @@ -1613,7 +1613,7 @@ class Rectangle { () => { const mapIndexed = R.addIndex(R.map); - mapIndexed((val: string, idx: number) => idx + "-" + val)(["f", "o", "o", "b", "a", "r"]); + mapIndexed((val: string, idx: number) => `${idx}-${val}`)(["f", "o", "o", "b", "a", "r"]); // => ['0-f', '1-o', '2-o', '3-b', '4-a', '5-r'] mapIndexed((rectangle: Rectangle, idx: number): number => rectangle.area() * idx, [new Rectangle(1, 2), new Rectangle(4, 7)]); // => [2, 56] @@ -1621,7 +1621,7 @@ class Rectangle { () => { const reduceIndexed = R.addIndex(R.reduce); - reduceIndexed((acc: string, val: string, idx: number) => acc + "," + idx + "-" + val, "", ["f", "o", "o", "b", "a", "r"]); + reduceIndexed((acc: string, val: string, idx: number) => `${acc},${idx}-${val}`, "", ["f", "o", "o", "b", "a", "r"]); // => ['0-f,1-o,2-o,3-b,4-a,5-r'] }; diff --git a/types/rc-slider/index.d.ts b/types/rc-slider/index.d.ts index c30f6a649c..6c647fbd15 100644 --- a/types/rc-slider/index.d.ts +++ b/types/rc-slider/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for rc-slider 8.1 // Project: https://github.com/react-component/slider -// Definitions by: Marcinkus Mantas , Alexander Mattoni +// Definitions by: Marcinkus Mantas , Alexander Mattoni // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/rc-tree/index.d.ts b/types/rc-tree/index.d.ts index 822e3eff7f..8091b2edd5 100644 --- a/types/rc-tree/index.d.ts +++ b/types/rc-tree/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for rc-tree 1.4 // Project: https://github.com/react-component/tree -// Definitions by: John Reilly +// Definitions by: John Reilly // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-color/tslint.json b/types/react-color/tslint.json index 3db14f85ea..440efbd687 100644 --- a/types/react-color/tslint.json +++ b/types/react-color/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-duplicate-imports": false + } +} diff --git a/types/react-data-grid/index.d.ts b/types/react-data-grid/index.d.ts index 5e4f23f5f5..65d0ddddc2 100644 --- a/types/react-data-grid/index.d.ts +++ b/types/react-data-grid/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-data-grid 2.0 // Project: https://github.com/adazzle/react-data-grid.git -// Definitions by: Simon Gellis , Kieran Peat , Martin Novak +// Definitions by: Simon Gellis , Kieran Peat , Martin Novak // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-daterange-picker/index.d.ts b/types/react-daterange-picker/index.d.ts index 53618277d6..55e33ff2bb 100644 --- a/types/react-daterange-picker/index.d.ts +++ b/types/react-daterange-picker/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for React Daterange Picker 1.1 // Project: https://github.com/onefinestay/react-daterange-picker -// Definitions by: UNCOVER TRUTH Inc. +// Definitions by: UNCOVER TRUTH Inc. // MartynasZilinskas // Definitions: https://github.com/borisyankov/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-daterange-picker/tslint.json b/types/react-daterange-picker/tslint.json index e60c15844f..692749aa92 100644 --- a/types/react-daterange-picker/tslint.json +++ b/types/react-daterange-picker/tslint.json @@ -1,3 +1,7 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-duplicate-imports": false + } } \ No newline at end of file diff --git a/types/react-dom/react-dom-tests.ts b/types/react-dom/react-dom-tests.ts index 865d74e386..c7d63679c8 100644 --- a/types/react-dom/react-dom-tests.ts +++ b/types/react-dom/react-dom-tests.ts @@ -55,7 +55,7 @@ describe('React dom test utils', () => { React.createElement('input', { type: 'text' }), element ) as Element; - const node = ReactDOM.findDOMNode(dom) as HTMLInputElement; + const node = ReactDOM.findDOMNode(dom); node.value = 'giraffe'; ReactTestUtils.Simulate.change(node); diff --git a/types/react-dom/tslint.json b/types/react-dom/tslint.json index e60c15844f..3866ae7932 100644 --- a/types/react-dom/tslint.json +++ b/types/react-dom/tslint.json @@ -1,3 +1,6 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false + } } \ No newline at end of file diff --git a/types/react-fa/react-fa-tests.tsx b/types/react-fa/react-fa-tests.tsx index f623a09734..07c45e95f9 100644 --- a/types/react-fa/react-fa-tests.tsx +++ b/types/react-fa/react-fa-tests.tsx @@ -1,6 +1,5 @@ import * as React from 'react'; -import { Icon, IconStack, IconProps } from 'react-fa'; -import DefaultIcon from 'react-fa'; +import DefaultIcon, { Icon, IconStack, IconProps } from 'react-fa'; export class ReactFATest extends React.Component { render() { diff --git a/types/react-grid-layout/tslint.json b/types/react-grid-layout/tslint.json index 3db14f85ea..f2ffe2445b 100644 --- a/types/react-grid-layout/tslint.json +++ b/types/react-grid-layout/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-duplicate-imports": false + } +} diff --git a/types/react-hot-loader/index.d.ts b/types/react-hot-loader/index.d.ts index de8f5ee42d..ecf84d2ffe 100644 --- a/types/react-hot-loader/index.d.ts +++ b/types/react-hot-loader/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-hot-loader 3.0 // Project: https://github.com/gaearon/react-hot-loader -// Definitions by: Jacek Jagiello +// Definitions by: Jacek Jagiello // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-json-tree/index.d.ts b/types/react-json-tree/index.d.ts index d227c16a1e..1ab9b473a1 100644 --- a/types/react-json-tree/index.d.ts +++ b/types/react-json-tree/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-json-tree v0.6.5 // Project: https://github.com/alexkuz/react-json-tree/ -// Definitions by: Grant Nestor +// Definitions by: Grant Nestor // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-native-fs/index.d.ts b/types/react-native-fs/index.d.ts index 7894b1eea0..b9ad43eec3 100644 --- a/types/react-native-fs/index.d.ts +++ b/types/react-native-fs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-native-fs 2.0 // Project: https://github.com/johanneslumpe/react-native-fs -// Definitions by: Paulo Cesar +// Definitions by: Paulo Cesar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/react-native-goby/index.d.ts b/types/react-native-goby/index.d.ts index 1eea86c865..f6824fe8a6 100644 --- a/types/react-native-goby/index.d.ts +++ b/types/react-native-goby/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-native-goby 0.04 // Project: https://gitlab.com/MessageDream/react-native-goby -// Definitions by: jaydenzhao +// Definitions by: jaydenzhao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-native-google-analytics-bridge/react-native-google-analytics-bridge-tests.ts b/types/react-native-google-analytics-bridge/react-native-google-analytics-bridge-tests.ts index 2b3df2a182..7493bfbd03 100644 --- a/types/react-native-google-analytics-bridge/react-native-google-analytics-bridge-tests.ts +++ b/types/react-native-google-analytics-bridge/react-native-google-analytics-bridge-tests.ts @@ -82,7 +82,7 @@ tracker.trackMultiProductsPurchaseEvent([{ }, 'Ecommerce', 'Purchase'); // Usage of custom dimensions -let tracker2 = new GoogleAnalyticsTracker('GA_UA-2', { test: 1, OtherCustomDimension: 2}); +const tracker2 = new GoogleAnalyticsTracker('GA_UA-2', { test: 1, OtherCustomDimension: 2}); tracker2.trackScreenViewWithCustomDimensionValues('Home', { test: 'Beta' }); @@ -107,9 +107,7 @@ GoogleTagManager.pushDataLayerEvent({ event: 'event', payload: 'payload', }).then((success: boolean) => { - success ? - console.log('Successfully got pushed the DataLayerEvent') : - console.log('Failed to push the DataLayerEvent'); + console.log(success ? 'Successfully got pushed the DataLayerEvent' : 'Failed to push the DataLayerEvent'); }); // Google Analytic Settings diff --git a/types/react-native-orientation/index.d.ts b/types/react-native-orientation/index.d.ts index bc36430afe..a32b5731cf 100644 --- a/types/react-native-orientation/index.d.ts +++ b/types/react-native-orientation/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-native-orientation 5.0 // Project: https://github.com/yamill/react-native-orientation -// Definitions by: Moshe Atlow +// Definitions by: Moshe Atlow // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Orientation { diff --git a/types/react-native/tslint.json b/types/react-native/tslint.json index a256dfa3eb..39e23d7cb1 100644 --- a/types/react-native/tslint.json +++ b/types/react-native/tslint.json @@ -11,6 +11,7 @@ "jsdoc-format": false, "no-misused-new": false, "no-consecutive-blank-lines": false, + "no-duplicate-imports": false, "no-empty-interface": false, "no-padding": false, "no-var": false, @@ -18,6 +19,8 @@ "prefer-declare-function": false, "prefer-method-signature": false, "semicolon": false, - "strict-export-declare-modifiers": false + "space-within-parens": false, + "strict-export-declare-modifiers": false, + "use-default-type-parameter": false } } diff --git a/types/react-notification-system-redux/index.d.ts b/types/react-notification-system-redux/index.d.ts index 1af3a26de4..1e009a4f46 100644 --- a/types/react-notification-system-redux/index.d.ts +++ b/types/react-notification-system-redux/index.d.ts @@ -12,7 +12,7 @@ export as namespace Notifications; export = Notifications; -declare class Notifications extends Component {} +declare class Notifications extends Component {} declare namespace Notifications { type NotificationsState = Notification[]; diff --git a/types/react-notification-system-redux/tslint.json b/types/react-notification-system-redux/tslint.json index 3db14f85ea..f2ffe2445b 100644 --- a/types/react-notification-system-redux/tslint.json +++ b/types/react-notification-system-redux/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-duplicate-imports": false + } +} diff --git a/types/react-onsenui/index.d.ts b/types/react-onsenui/index.d.ts index 578773928c..26e323fa45 100644 --- a/types/react-onsenui/index.d.ts +++ b/types/react-onsenui/index.d.ts @@ -311,4 +311,4 @@ export class ListItem extends Component<{ onClick?: React.MouseEventHandler, }, any> {} -export class Card extends Component<{}> { } +export class Card extends Component { } diff --git a/types/react-onsenui/tslint.json b/types/react-onsenui/tslint.json index 3db14f85ea..26bcea6634 100644 --- a/types/react-onsenui/tslint.json +++ b/types/react-onsenui/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false + } +} diff --git a/types/react-router-redux/index.d.ts b/types/react-router-redux/index.d.ts index 04bf43b61f..eafca8f5cc 100644 --- a/types/react-router-redux/index.d.ts +++ b/types/react-router-redux/index.d.ts @@ -24,7 +24,7 @@ export interface ConnectedRouterProps { store?: Store; history?: History; } -export class ConnectedRouter extends React.Component, {}> {} +export class ConnectedRouter extends React.Component> {} export const LOCATION_CHANGE = '@@router/LOCATION_CHANGE'; diff --git a/types/react-router/test/WithRouterDecorator.tsx b/types/react-router/test/WithRouterDecorator.tsx index 2eb6bd2335..aa907d1a7a 100644 --- a/types/react-router/test/WithRouterDecorator.tsx +++ b/types/react-router/test/WithRouterDecorator.tsx @@ -7,7 +7,7 @@ interface TOwnProps { // $ExpectType Component @withRouter -class Component extends React.Component { +class Component extends React.Component { render() { return (

    Welcome {this.props.username}

    diff --git a/types/react-select/index.d.ts b/types/react-select/index.d.ts index 877b2557a0..aba6c4d68e 100644 --- a/types/react-select/index.d.ts +++ b/types/react-select/index.d.ts @@ -1,11 +1,11 @@ // Type definitions for react-select 1.0 // Project: https://github.com/JedWatson/react-select -// Definitions by: ESQUIBET Hugo -// Gilad Gray -// Izaak Baker -// Tadas Dailyda -// Mark Vujevits -// Mike Deverell +// Definitions by: ESQUIBET Hugo +// Gilad Gray +// Izaak Baker +// Tadas Dailyda +// Mark Vujevits +// Mike Deverell // MartynasZilinskas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-side-effect/index.d.ts b/types/react-side-effect/index.d.ts index 8ee1ab2df0..409c81cb80 100644 --- a/types/react-side-effect/index.d.ts +++ b/types/react-side-effect/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-side-effect v1.0.2 // Project: https://github.com/gaearon/react-side-effect -// Definitions by: Remo H. Jansen +// Definitions by: Remo H. Jansen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-sticky/tslint.json b/types/react-sticky/tslint.json index 3db14f85ea..26bcea6634 100644 --- a/types/react-sticky/tslint.json +++ b/types/react-sticky/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false + } +} diff --git a/types/react-svg-pan-zoom/react-svg-pan-zoom-tests.tsx b/types/react-svg-pan-zoom/react-svg-pan-zoom-tests.tsx index 1c861bcbdc..4c461fb0e3 100644 --- a/types/react-svg-pan-zoom/react-svg-pan-zoom-tests.tsx +++ b/types/react-svg-pan-zoom/react-svg-pan-zoom-tests.tsx @@ -23,13 +23,13 @@ class Example1 extends React.Component { render() { return (
    - - - diff --git a/types/react-tagcloud/index.d.ts b/types/react-tagcloud/index.d.ts index 69a2bd8f28..4315e6eb5c 100644 --- a/types/react-tagcloud/index.d.ts +++ b/types/react-tagcloud/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-tagcloud v1.1.0 // Project: https://github.com/madox2/react-tagcloud -// Definitions by: wassname +// Definitions by: wassname // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-test-renderer/index.d.ts b/types/react-test-renderer/index.d.ts index 974c86da6f..ab6d51ceaa 100644 --- a/types/react-test-renderer/index.d.ts +++ b/types/react-test-renderer/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-test-renderer 15.5 // Project: https://facebook.github.io/react/ -// Definitions by: Arvitaly , Lochbrunner , Lochbrunner , John Reilly +// Definitions by: Arvitaly , Lochbrunner , Lochbrunner , John Reilly // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-toggle/tslint.json b/types/react-toggle/tslint.json index 3db14f85ea..f2ffe2445b 100644 --- a/types/react-toggle/tslint.json +++ b/types/react-toggle/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-duplicate-imports": false + } +} diff --git a/types/react-virtual-keyboard/react-virtual-keyboard-tests.tsx b/types/react-virtual-keyboard/react-virtual-keyboard-tests.tsx index eaa1b9d80e..61dd2e7dea 100644 --- a/types/react-virtual-keyboard/react-virtual-keyboard-tests.tsx +++ b/types/react-virtual-keyboard/react-virtual-keyboard-tests.tsx @@ -1,6 +1,5 @@ import * as React from "react"; -import Keyboard from "react-virtual-keyboard"; -import { ReactKeyboardOptions } from "react-virtual-keyboard"; +import Keyboard, { ReactKeyboardOptions } from "react-virtual-keyboard"; export interface KbState { textarea: string; diff --git a/types/react-widgets/index.d.ts b/types/react-widgets/index.d.ts index a10263eb81..00c6cbbc2a 100644 --- a/types/react-widgets/index.d.ts +++ b/types/react-widgets/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-widgets 3.2 // Project: https://github.com/jquense/react-widgets -// Definitions by: Rogier Schouten , Balázs Sándor , Frode Hansen +// Definitions by: Rogier Schouten , Balázs Sándor , Frode Hansen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 27f25ec6b0..7b5e23005c 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Asana // AssureSign // Microsoft -// John Reilly +// John Reilly // Benoit Benezech // Patricio Zavolinsky // Digiguru @@ -3445,7 +3445,7 @@ declare global { // tslint:disable:no-empty-interface interface Element extends React.ReactElement { } interface ElementClass extends React.Component { - render(): JSX.Element | null | false; + render(): Element | null | false; } interface ElementAttributesProperty { props: {}; } interface ElementChildrenAttribute { children: {}; } diff --git a/types/react/tslint.json b/types/react/tslint.json index 3db14f85ea..d1c6c0c133 100644 --- a/types/react/tslint.json +++ b/types/react/tslint.json @@ -1 +1,9 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "dt-header": false, + "no-object-literal-type-assertion": false, + "no-void-expression": false + } +} diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index bfe9c392cb..1d56836bab 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for Recharts 0.22 // Project: http://recharts.org/ -// Definitions by: Maarten Mulders -// Raphael Mueller +// Definitions by: Maarten Mulders +// Raphael Mueller // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/reconnectingwebsocket/index.d.ts b/types/reconnectingwebsocket/index.d.ts index f8e218c008..c07dec7474 100644 --- a/types/reconnectingwebsocket/index.d.ts +++ b/types/reconnectingwebsocket/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for reconnectingwebsocket 1.0 // Project: https://github.com/joewalnes/reconnecting-websocket -// Definitions by: Nicholas Guarracino +// Definitions by: Nicholas Guarracino // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface Options { diff --git a/types/reconnectingwebsocket/reconnectingwebsocket-tests.ts b/types/reconnectingwebsocket/reconnectingwebsocket-tests.ts index d0c3bf600d..300055a062 100644 --- a/types/reconnectingwebsocket/reconnectingwebsocket-tests.ts +++ b/types/reconnectingwebsocket/reconnectingwebsocket-tests.ts @@ -1,5 +1,4 @@ -import ReconnectingWebSocket from "reconnectingwebsocket"; -import { Options } from "reconnectingwebsocket"; +import ReconnectingWebSocket, { Options } from "reconnectingwebsocket"; const options: Options = { automaticOpen: false, diff --git a/types/recursive-readdir/index.d.ts b/types/recursive-readdir/index.d.ts index f1c6214013..fd64702889 100644 --- a/types/recursive-readdir/index.d.ts +++ b/types/recursive-readdir/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for recursive-readdir v1.2.1 // Project: https://github.com/jergason/recursive-readdir/ -// Definitions by: Elisée Maurer +// Definitions by: Elisée Maurer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/redlock/redlock-tests.ts b/types/redlock/redlock-tests.ts index 5a8ec00589..f8fff33e9b 100644 --- a/types/redlock/redlock-tests.ts +++ b/types/redlock/redlock-tests.ts @@ -4,7 +4,7 @@ import { RedisClient } from 'redis'; import IoRedisClient = require('ioredis'); import { using } from 'bluebird'; -let lock: Lock = {}; +const lock: Lock = {}; const client1 = new RedisClient({port: 6379, host: 'redis1.example.com'}); const client2 = new RedisClient({port: 6379, host: 'redis2.example.com'}); diff --git a/types/redlock/tslint.json b/types/redlock/tslint.json index 3db14f85ea..ed10b7ea24 100644 --- a/types/redlock/tslint.json +++ b/types/redlock/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-object-literal-type-assertion": false + } +} diff --git a/types/redux-auth-wrapper/tslint.json b/types/redux-auth-wrapper/tslint.json index 3db14f85ea..440efbd687 100644 --- a/types/redux-auth-wrapper/tslint.json +++ b/types/redux-auth-wrapper/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-duplicate-imports": false + } +} diff --git a/types/redux-batched-subscribe/redux-batched-subscribe-tests.ts b/types/redux-batched-subscribe/redux-batched-subscribe-tests.ts index 5bfa3e0aa6..3f7159b128 100644 --- a/types/redux-batched-subscribe/redux-batched-subscribe-tests.ts +++ b/types/redux-batched-subscribe/redux-batched-subscribe-tests.ts @@ -8,7 +8,7 @@ interface State { const rootReducer: Reducer = () => ({}); const asyncNotify: BatchFunction = (() => { - let notifying: boolean = false; + let notifying = false; return (notify: NotifyFunction) => { if (notifying) { diff --git a/types/redux-immutable/index.d.ts b/types/redux-immutable/index.d.ts index ebebd7a84c..4b72685cc2 100644 --- a/types/redux-immutable/index.d.ts +++ b/types/redux-immutable/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for redux-immutable v3.0.33 // Project: https://github.com/gajus/redux-immutable // Definitions by: Pedro Pereira -// Sebastian Sebald +// Sebastian Sebald // Gavin Gregory // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/redux-infinite-scroll/index.d.ts b/types/redux-infinite-scroll/index.d.ts index 5ce0f552d9..64799ee71a 100644 --- a/types/redux-infinite-scroll/index.d.ts +++ b/types/redux-infinite-scroll/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for redux-infinite-scroll 1.0 // Project: https://github.com/RealScout/redux-infinite-scroll -// Definitions by: Tony Nikolov +// Definitions by: Tony Nikolov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/redux-logger/index.d.ts b/types/redux-logger/index.d.ts index 042dd49c92..d241a8ab7b 100644 --- a/types/redux-logger/index.d.ts +++ b/types/redux-logger/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for redux-logger v3.0.0 // Project: https://github.com/fcomb/redux-logger -// Definitions by: Alexander Rusakov +// Definitions by: Alexander Rusakov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export as namespace ReduxLogger; diff --git a/types/redux-mock-store/tslint.json b/types/redux-mock-store/tslint.json index 2750cc0197..849acb7fd0 100644 --- a/types/redux-mock-store/tslint.json +++ b/types/redux-mock-store/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } \ No newline at end of file +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} \ No newline at end of file diff --git a/types/request-promise-native/request-promise-native-tests.ts b/types/request-promise-native/request-promise-native-tests.ts index cc49aa1f86..bbdd1ef2eb 100644 --- a/types/request-promise-native/request-promise-native-tests.ts +++ b/types/request-promise-native/request-promise-native-tests.ts @@ -88,10 +88,14 @@ rpn http.createServer((req, resp) => { if (req.url === '/doodle.png') { - if (req.method === 'PUT') { - req.pipe(rpn.put('http://mysite.com/doodle.png')); - } else if (req.method === 'GET' || req.method === 'HEAD') { - rpn.get('http://mysite.com/doodle.png').pipe(resp); + switch (req.method) { + case 'PUT': + req.pipe(rpn.put('http://mysite.com/doodle.png')); + break; + case 'GET': + case 'HEAD': + rpn.get('http://mysite.com/doodle.png').pipe(resp); + break; } } }); @@ -146,7 +150,8 @@ const data = { }; rpn.post({ url: 'http://service.com/upload', formData: data }, function optionalCallback(err, httpResponse, body) { if (err) { - return console.error('upload failed:', err); + console.error('upload failed:', err); + return; } console.log('Upload successful! Server responded with:', body); }); @@ -175,7 +180,8 @@ rpn({ }, (error, response, body) => { if (error) { - return console.error('upload failed:', error); + console.error('upload failed:', error); + return; } console.log('Upload successful! Server responded with:', body); }); @@ -195,7 +201,8 @@ rpn({ }, (error, response, body) => { if (error) { - return console.error('upload failed:', error); + console.error('upload failed:', error); + return; } console.log('Upload successful! Server responded with:', body); }); @@ -220,7 +227,7 @@ rpn.get('http://some.server.com/', { const username = 'username'; const password = 'password'; -let url = 'http://' + username + ':' + password + '@some.server.com'; +let url = `http://${username}:${password}@some.server.com`; rpn({ url }, (error, response, body) => { // Do more stuff with 'body' here @@ -264,8 +271,7 @@ rpn.post({ url, oauth }, (e, r, body) => { // step 2 const req_data = qs.parse(body); - const uri = 'https://api.twitter.com/oauth/authenticate' - + '?' + qs.stringify({ oauth_token: req_data.oauth_token }); + const uri = `https://api.twitter.com/oauth/authenticate?${qs.stringify({ oauth_token: req_data.oauth_token })}`; // redirect the user to the authorize uri // step 3 @@ -445,7 +451,7 @@ rpn( // unmodified http.IncomingMessage object response.on('data', (data: any[]) => { // compressed data as it is received - console.log('received ' + data.length + ' bytes of compressed data'); + console.log(`received ${data.length} bytes of compressed data`); }); }); diff --git a/types/request-promise/index.d.ts b/types/request-promise/index.d.ts index ab286775fc..22ea95160e 100644 --- a/types/request-promise/index.d.ts +++ b/types/request-promise/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for request-promise 4.1 // Project: https://github.com/request/request-promise -// Definitions by: Christopher Glantschnig , Joe Skeen , Aya Morisawa +// Definitions by: Christopher Glantschnig , Joe Skeen , Aya Morisawa // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/request-promise/request-promise-tests.ts b/types/request-promise/request-promise-tests.ts index a9aafc9826..97f84a7678 100644 --- a/types/request-promise/request-promise-tests.ts +++ b/types/request-promise/request-promise-tests.ts @@ -179,7 +179,8 @@ const data = { }; request.post({ url: 'http://service.com/upload', formData: data }, (err, httpResponse, body) => { if (err) { - return console.error('upload failed:', err); + console.error('upload failed:', err); + return; } console.log('Upload successful! Server responded with:', body); }); @@ -208,7 +209,8 @@ request({ }, (error, response, body) => { if (error) { - return console.error('upload failed:', error); + console.error('upload failed:', error); + return; } console.log('Upload successful! Server responded with:', body); }); @@ -228,7 +230,8 @@ request({ }, (error, response, body) => { if (error) { - return console.error('upload failed:', error); + console.error('upload failed:', error); + return; } console.log('Upload successful! Server responded with:', body); }); @@ -253,7 +256,7 @@ request.get('http://some.server.com/', { const username = 'username'; const password = 'password'; -let url = 'http://' + username + ':' + password + '@some.server.com'; +let url = `http://${username}:${password}@some.server.com`; request({ url }, (error, response, body) => { // Do more stuff with 'body' here @@ -291,8 +294,7 @@ request.post({ url, oauth }, (e, r, body) => { // step 2 const req_data = qs.parse(body); - const uri = 'https://api.twitter.com/oauth/authenticate' - + '?' + qs.stringify({oauth_token: req_data.oauth_token}); + const uri = `https://api.twitter.com/oauth/authenticate?${qs.stringify({oauth_token: req_data.oauth_token})}`; // redirect the user to the authorize uri // step 3 @@ -471,7 +473,7 @@ request( // unmodified http.IncomingMessage object response.on('data', (data: any[]) => { // compressed data as it is received - console.log('received ' + data.length + ' bytes of compressed data'); + console.log(`received ${data.length} bytes of compressed data`); }); }); diff --git a/types/requestretry/index.d.ts b/types/requestretry/index.d.ts index 50224e4e35..9a65295050 100644 --- a/types/requestretry/index.d.ts +++ b/types/requestretry/index.d.ts @@ -11,7 +11,7 @@ import http = require('http'); type RetryStrategy = (err: Error, response: http.IncomingMessage, body: any) => boolean; declare namespace requestRetry { - interface RequestAPI extends request.RequestAPI { + interface RequestAPI extends request.RequestAPI { RetryStrategies: { 'HttpError': RetryStrategy; 'HTTPOrNetworkError': RetryStrategy; diff --git a/types/require-directory/tslint.json b/types/require-directory/tslint.json index 3db14f85ea..440efbd687 100644 --- a/types/require-directory/tslint.json +++ b/types/require-directory/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-duplicate-imports": false + } +} diff --git a/types/requirejs/index.d.ts b/types/requirejs/index.d.ts index f44c203e5c..662608de52 100644 --- a/types/requirejs/index.d.ts +++ b/types/requirejs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for RequireJS 2.1.20 // Project: http://requirejs.org/ -// Definitions by: Josh Baldwin +// Definitions by: Josh Baldwin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* diff --git a/types/response-time/index.d.ts b/types/response-time/index.d.ts index 63667ceb61..2dd6533403 100644 --- a/types/response-time/index.d.ts +++ b/types/response-time/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for response-time 2.3.2 // Project: https://github.com/expressjs/response-time -// Definitions by: Uros Smolnik , TonyYang +// Definitions by: Uros Smolnik , TonyYang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/restangular/index.d.ts b/types/restangular/index.d.ts index c5ad7da7e3..6c0fffc275 100644 --- a/types/restangular/index.d.ts +++ b/types/restangular/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Restangular v1.5.0 // Project: https://github.com/mgonto/restangular -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/restify-plugins/index.d.ts b/types/restify-plugins/index.d.ts index c0d8114d92..fd9688c937 100644 --- a/types/restify-plugins/index.d.ts +++ b/types/restify-plugins/index.d.ts @@ -32,17 +32,17 @@ export namespace pre { /** * Automatically reuse incoming request header as the request id. */ - function reqIdHeaders( options: {headers: string[]} ): RequestHandler; + function reqIdHeaders(options: {headers: string[]}): RequestHandler; /** * Checks req.urls query params with strict key/val format and rejects non-strict requests with status code 400. */ - function strictQueryParams( options?: {message: string} ): RequestHandler; + function strictQueryParams(options?: {message: string}): RequestHandler; /** * Regexp to capture curl user-agents */ - function userAgentConnection( options?: {userAgentRegExp: any} ): RequestHandler; + function userAgentConnection(options?: {userAgentRegExp: any}): RequestHandler; } // *************** This module includes the following header parser plugins: @@ -184,7 +184,7 @@ export function bodyParser(options?: BodyParserOptions): RequestHandler[]; /** * Reads the body of the request. */ -export function bodyReader( options?: {maxBodySize?: number} ): RequestHandler; +export function bodyReader(options?: {maxBodySize?: number}): RequestHandler; export interface UrlEncodedBodyParser { mapParams?: boolean; @@ -392,13 +392,13 @@ export interface MetricsCallbackOptions { * Listens to the server's after event and emits information about that request (5.x compatible only). * * ``` - * server.on('after', plugins.metrics( (err, metrics) => + * server.on('after', plugins.metrics((err, metrics) => * { * // metrics is an object containing information about the request * })); * ``` */ -export function metrics(opts: {server: Server}, callback: (options: MetricsCallback) => any ): (...args: any[]) => void; +export function metrics(opts: {server: Server}, callback: (options: MetricsCallback) => any): (...args: any[]) => void; /** * Parse the client's request for an OAUTH2 access tokensTable diff --git a/types/restify/tslint.json b/types/restify/tslint.json index 3db14f85ea..1f65cdfcd0 100644 --- a/types/restify/tslint.json +++ b/types/restify/tslint.json @@ -1 +1,8 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "no-object-literal-type-assertion": false, + "no-void-expression": false + } +} diff --git a/types/retry/tslint.json b/types/retry/tslint.json index 3db14f85ea..26a0c302a8 100644 --- a/types/retry/tslint.json +++ b/types/retry/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-void-expression": false + } +} diff --git a/types/reveal/index.d.ts b/types/reveal/index.d.ts index 5d205424cc..640fd81da3 100644 --- a/types/reveal/index.d.ts +++ b/types/reveal/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Reveal 3.3.0 // Project: https://github.com/hakimel/reveal.js/ -// Definitions by: robertop87 , Nava2 +// Definitions by: robertop87 , Nava2 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var Reveal:RevealStatic; diff --git a/types/rickshaw/index.d.ts b/types/rickshaw/index.d.ts index f909cae141..0288e2a757 100644 --- a/types/rickshaw/index.d.ts +++ b/types/rickshaw/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Rickshaw // Project: http://code.shutterstock.com/rickshaw/ -// Definitions by: Blake Niemyjski +// Definitions by: Blake Niemyjski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var Rickshaw: any; \ No newline at end of file diff --git a/types/rimraf/index.d.ts b/types/rimraf/index.d.ts index 9c4cca2183..ade4c0c717 100644 --- a/types/rimraf/index.d.ts +++ b/types/rimraf/index.d.ts @@ -15,8 +15,8 @@ import fs = require('fs'); declare function rimraf(path: string, options: rimraf.Options, callback: (error: Error) => void): void; declare function rimraf(path: string, callback: (error: Error) => void): void; declare namespace rimraf { - function __promisify__(path: string, options?: rimraf.Options): Promise; - function sync(path: string, options?: rimraf.Options): void; + function __promisify__(path: string, options?: Options): Promise; + function sync(path: string, options?: Options): void; let EMFILE_MAX: number; let BUSYTRIES_MAX: number; interface Options { diff --git a/types/riot-api-nodejs/index.d.ts b/types/riot-api-nodejs/index.d.ts index 95a148e5ba..e761578ad8 100644 --- a/types/riot-api-nodejs/index.d.ts +++ b/types/riot-api-nodejs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Riot Games API // Project: https://developer.riotgames.com/ -// Definitions by: Luca Laissue +// Definitions by: Luca Laissue // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/riot-games-api/index.d.ts b/types/riot-games-api/index.d.ts index 00f1bc1637..659bc94231 100644 --- a/types/riot-games-api/index.d.ts +++ b/types/riot-games-api/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Riot Games API // Project: https://developer.riotgames.com/ -// Definitions by: Xavier Stouder +// Definitions by: Xavier Stouder // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace RiotGamesAPI{ diff --git a/types/rosie/index.d.ts b/types/rosie/index.d.ts index 6b8f089327..8b710ca4f6 100644 --- a/types/rosie/index.d.ts +++ b/types/rosie/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for rosie // Project: https://github.com/rosiejs/rosie -// Definitions by: Abner Oliveira +// Definitions by: Abner Oliveira // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace rosie { diff --git a/types/roslib/index.d.ts b/types/roslib/index.d.ts index 368c190bd6..5ba27f27b2 100644 --- a/types/roslib/index.d.ts +++ b/types/roslib/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for roslib.js 0.18.0 // Project: http://wiki.ros.org/roslibjs -// Definitions by: Stefan Profanter , Cooper Benson +// Definitions by: Stefan Profanter , Cooper Benson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/rot-js/index.d.ts b/types/rot-js/index.d.ts index e79dc3f5e0..e57d243755 100644 --- a/types/rot-js/index.d.ts +++ b/types/rot-js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for rot-js 0.6 // Project: https://github.com/ondras/rot.js -// Definitions by: Roger Ostrander +// Definitions by: Roger Ostrander // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Extensions (thanks, https://www.typescriptlang.org/docs/handbook/declaration-files/templates/global-modifying-module-d-ts.html ) diff --git a/types/route-parser/index.d.ts b/types/route-parser/index.d.ts index f7b013447c..c2ebabdf2a 100644 --- a/types/route-parser/index.d.ts +++ b/types/route-parser/index.d.ts @@ -32,7 +32,7 @@ declare class Route { * var route = new Route('/:one/:two') * route.reverse({one: 'foo', two: 'bar'}) -> '/foo/bar' */ - reverse(params: { [i: string]: any } ): string | false; + reverse(params: { [i: string]: any }): string | false; } declare namespace Route {} diff --git a/types/royalslider/index.d.ts b/types/royalslider/index.d.ts index 2eaf6bfe7f..5fc9abe068 100644 --- a/types/royalslider/index.d.ts +++ b/types/royalslider/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jQuery royal-slider 9.4 // Project: http://dimsemenov.com/plugins/royal-slider/documentation/ -// Definitions by: Christiaan Rakowski +// Definitions by: Christiaan Rakowski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/rsvp/index.d.ts b/types/rsvp/index.d.ts index c0a7dc8b07..a983904718 100644 --- a/types/rsvp/index.d.ts +++ b/types/rsvp/index.d.ts @@ -8,10 +8,10 @@ // TypeScript Version: 2.4 // Some of this file was taken from the type definitions for es6-promise https://github.com/borisyankov/DefinitelyTyped/blob/master/es6-promise/es6-promise.d.ts -// Credit for that file goes to: François de Campredon +// Credit for that file goes to: François de Campredon // Some of this file was taken from the type definitions for Q : https://github.com/borisyankov/DefinitelyTyped/blob/master/q/Q.d.ts -// Credit for that file goes to: Barrie Nemetchek , Andrew Gaspar , John Reilly +// Credit for that file goes to: Barrie Nemetchek , Andrew Gaspar , John Reilly declare namespace RSVP { type Resolution = (value: T) => U | Thenable; diff --git a/types/rwlock/tslint.json b/types/rwlock/tslint.json index 3db14f85ea..26bcea6634 100644 --- a/types/rwlock/tslint.json +++ b/types/rwlock/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false + } +} diff --git a/types/rx-angular/index.d.ts b/types/rx-angular/index.d.ts index 493f30963b..6b4fbbe447 100644 --- a/types/rx-angular/index.d.ts +++ b/types/rx-angular/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for angularjs extensions to rxjs // Project: http://reactivex.io/ -// Definitions by: Mick Delaney +// Definitions by: Mick Delaney // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/rx-core-binding/tslint.json b/types/rx-core-binding/tslint.json index fa9e9c9624..4541a9699c 100644 --- a/types/rx-core-binding/tslint.json +++ b/types/rx-core-binding/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "dt-header": false, "no-empty-interface": false, "interface-name": false, "no-single-declare-module": false diff --git a/types/rx-core/tslint.json b/types/rx-core/tslint.json index f7db40c123..0b05bed81d 100644 --- a/types/rx-core/tslint.json +++ b/types/rx-core/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "dt-header": false, "unified-signatures": false, "no-empty-interface": false, "interface-name": false, diff --git a/types/rx-lite-aggregates/tslint.json b/types/rx-lite-aggregates/tslint.json index 9fbb93b086..277fa239e2 100644 --- a/types/rx-lite-aggregates/tslint.json +++ b/types/rx-lite-aggregates/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODO + "dt-header": false, "unified-signatures": false, "no-single-declare-module": false } diff --git a/types/rx-lite-coincidence/tslint.json b/types/rx-lite-coincidence/tslint.json index 9fbb93b086..6022355a23 100644 --- a/types/rx-lite-coincidence/tslint.json +++ b/types/rx-lite-coincidence/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "dt-header": false, "unified-signatures": false, "no-single-declare-module": false } diff --git a/types/rx-lite-time/tslint.json b/types/rx-lite-time/tslint.json index 9fbb93b086..6022355a23 100644 --- a/types/rx-lite-time/tslint.json +++ b/types/rx-lite-time/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "dt-header": false, "unified-signatures": false, "no-single-declare-module": false } diff --git a/types/rx-lite-virtualtime/tslint.json b/types/rx-lite-virtualtime/tslint.json index 745fa91ad5..ab1a874893 100644 --- a/types/rx-lite-virtualtime/tslint.json +++ b/types/rx-lite-virtualtime/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "dt-header": false, "interface-name": false, "no-empty-interface": false, "no-single-declare-module": false diff --git a/types/rx-lite/rx-lite-tests.ts b/types/rx-lite/rx-lite-tests.ts index 6b5a88a341..17f0bbe726 100644 --- a/types/rx-lite/rx-lite-tests.ts +++ b/types/rx-lite/rx-lite-tests.ts @@ -124,7 +124,7 @@ function test_publish() { function createObserver(tag: string) { return Rx.Observer.create( x => { - console.log('Next: ' + tag + x); + console.log(`Next: ${tag}${x}`); }, err => { console.log('Error: ' + err); diff --git a/types/rx-lite/tslint.json b/types/rx-lite/tslint.json index 6aea0cab1a..a10ea384b1 100644 --- a/types/rx-lite/tslint.json +++ b/types/rx-lite/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODOs + "dt-header": false, "unified-signatures": false, "no-empty-interface": false, "ban-types": false, diff --git a/types/rx.wamp/index.d.ts b/types/rx.wamp/index.d.ts index 1a8027c878..8d98921ecf 100644 --- a/types/rx.wamp/index.d.ts +++ b/types/rx.wamp/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for rx.wamp 0.5.0 // Project: https://github.com/paulpdaniels/rx.wamp/ -// Definitions by: Elad Zelingher +// Definitions by: Elad Zelingher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import autobahn = require("autobahn"); diff --git a/types/rx/tslint.json b/types/rx/tslint.json index 075fa88707..25953ef466 100644 --- a/types/rx/tslint.json +++ b/types/rx/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "dt-header": false, "no-single-declare-module": false } } diff --git a/types/safe-json-stringify/index.d.ts b/types/safe-json-stringify/index.d.ts index d3eb3eec75..753a6753a5 100644 --- a/types/safe-json-stringify/index.d.ts +++ b/types/safe-json-stringify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for safe-json-stringify 1.0 // Project: https://github.com/debitoor/safe-json-stringify -// Definitions by: Eric Byers +// Definitions by: Eric Byers // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped" // TypeScript Version: 2.3 diff --git a/types/sails.io.js/index.d.ts b/types/sails.io.js/index.d.ts index 362b4cb66f..f80420b87b 100644 --- a/types/sails.io.js/index.d.ts +++ b/types/sails.io.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for sails.io.js 1.0.1 // Project: http://sailsjs.org/documentation/reference/web-sockets/socket-client -// Definitions by: Arvitaly +// Definitions by: Arvitaly // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/saml2-js/index.d.ts b/types/saml2-js/index.d.ts index 296cd6eb26..5ea6fcea07 100644 --- a/types/saml2-js/index.d.ts +++ b/types/saml2-js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for SAML2-js 1.6.0 // Project: https://github.com/Clever/saml2 -// Definitions by: horiuchi +// Definitions by: horiuchi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "saml2-js" { diff --git a/types/samlp/index.d.ts b/types/samlp/index.d.ts index 81b8ae5b60..da7d143c75 100644 --- a/types/samlp/index.d.ts +++ b/types/samlp/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for SAMLP 1.0.0 // Project: https://github.com/auth0/node-samlp -// Definitions by: horiuchi +// Definitions by: horiuchi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/sammy/index.d.ts b/types/sammy/index.d.ts index 3e7b56a5f6..3b7dc031a4 100644 --- a/types/sammy/index.d.ts +++ b/types/sammy/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Sammy.js // Project: http://sammyjs.org/ -// Definitions by: Boris Yankov , Oisin Grehan +// Definitions by: Boris Yankov , Oisin Grehan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/sandboxed-module/index.d.ts b/types/sandboxed-module/index.d.ts index dac2656f3c..e7dddba42b 100644 --- a/types/sandboxed-module/index.d.ts +++ b/types/sandboxed-module/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for sandboxed-module v2.0.3 // Project: https://github.com/felixge/node-sandboxed-module -// Definitions by: Sven Reglitzki +// Definitions by: Sven Reglitzki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/select2/index.d.ts b/types/select2/index.d.ts index 4769fb705f..e7a974f92d 100644 --- a/types/select2/index.d.ts +++ b/types/select2/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Select2 4.0.1 // Project: http://ivaynberg.github.com/select2/ -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/semaphore/index.d.ts b/types/semaphore/index.d.ts index 7ee1165ef7..5733785782 100644 --- a/types/semaphore/index.d.ts +++ b/types/semaphore/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for semaphore v1.0.3 // Project: https://github.com/abrkn/semaphore.js -// Definitions by: Matt Frantz +// Definitions by: Matt Frantz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/semver/semver-tests.ts b/types/semver/semver-tests.ts index 1774a0f482..efa6d2f387 100644 --- a/types/semver/semver-tests.ts +++ b/types/semver/semver-tests.ts @@ -6,14 +6,13 @@ let str: string; let diff: semver.ReleaseType; let strArr: string[]; -let v1: string; -let v2: string; -let version: string; -let versions: string[]; -let loose: boolean; -let SemVerObject: semver.SemVer; +declare const v1: string; +declare const v2: string; +declare const version: string; +declare const versions: string[]; +declare const loose: boolean; -SemVerObject = semver.parse(str); +const SemVerObject: semver.SemVer = semver.parse(str); str = semver.valid(str); str = semver.clean(str); diff --git a/types/sencha_touch/index.d.ts b/types/sencha_touch/index.d.ts index e9106adfae..3a09add5bd 100644 --- a/types/sencha_touch/index.d.ts +++ b/types/sencha_touch/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Touch 2.3.1 // Project: http://www.sencha.com/products/touch/ -// Definitions by: Brian Kotek +// Definitions by: Brian Kotek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Ext { diff --git a/types/seneca/index.d.ts b/types/seneca/index.d.ts index 0ee6928b57..ecf3c29096 100644 --- a/types/seneca/index.d.ts +++ b/types/seneca/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for seneca v2.1.0 // Project: https://www.npmjs.com/package/seneca -// Definitions by: Peter Snider +// Definitions by: Peter Snider // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/seneca diff --git a/types/sequelize-fixtures/index.d.ts b/types/sequelize-fixtures/index.d.ts index 5a54317668..fc7ffa6e9f 100644 --- a/types/sequelize-fixtures/index.d.ts +++ b/types/sequelize-fixtures/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Sequelize-Fixtures 0.4.7 // Project: https://github.com/domasx2/sequelize-fixtures -// Definitions by: Christian Schwarz +// Definitions by: Christian Schwarz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/serve-favicon/index.d.ts b/types/serve-favicon/index.d.ts index 0afdb00aa0..71d5fa75ff 100644 --- a/types/serve-favicon/index.d.ts +++ b/types/serve-favicon/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for serve-favicon 2.2.0 // Project: https://github.com/expressjs/serve-favicon -// Definitions by: Uros Smolnik +// Definitions by: Uros Smolnik // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/serve-static/index.d.ts b/types/serve-static/index.d.ts index 2ad70e24a4..0676f0c41e 100644 --- a/types/serve-static/index.d.ts +++ b/types/serve-static/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for serve-static 1.7.1 // Project: https://github.com/expressjs/serve-static -// Definitions by: Uros Smolnik +// Definitions by: Uros Smolnik // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/sharepoint/tslint.json b/types/sharepoint/tslint.json index 781005b507..8f46a13327 100644 --- a/types/sharepoint/tslint.json +++ b/types/sharepoint/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODOs + "dt-header": false, "jsdoc-format": false, "max-line-length": false, "no-duplicate-imports": false, @@ -10,6 +11,7 @@ "no-mergeable-namespace": false, "no-unnecessary-qualifier": false, "no-unnecessary-type-assertion": false, + "prefer-template": false, "use-default-type-parameter": false } } diff --git a/types/sharp-timer/index.d.ts b/types/sharp-timer/index.d.ts index cf2f7cba3f..6bc54e4713 100644 --- a/types/sharp-timer/index.d.ts +++ b/types/sharp-timer/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for sharp-timer library. 1.0 // Project: https://github.com/afractal/SharpTimer -// Definitions by: Hermes Gjini - afractal +// Definitions by: Hermes Gjini - afractal // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/sharp/index.d.ts b/types/sharp/index.d.ts index 216d325819..710416f109 100644 --- a/types/sharp/index.d.ts +++ b/types/sharp/index.d.ts @@ -16,8 +16,8 @@ import { Duplex } from "stream"; */ declare function sharp(input?: string | Buffer, options?: sharp.SharpOptions): sharp.SharpInstance; declare namespace sharp { - const gravity: sharp.GravityEnum; - const strategy: sharp.StrategyEnum; + const gravity: GravityEnum; + const strategy: StrategyEnum; /** * Gets, or when options are provided sets, the limits of libvips' operation cache. * Existing entries in the cache will be trimmed after any change in limits. @@ -25,7 +25,7 @@ declare namespace sharp { * @param {boolean|sharp.CacheOptions} options Object with the cache options, or Boolean where true uses default cache settings and false removes all caching. * @returns {Object} */ - function cache(options?: boolean | sharp.CacheOptions): CacheResult; + function cache(options?: boolean | CacheOptions): CacheResult; /** * Gets, or when a concurrency is provided sets, the number of threads libvips' should create to process each image. * @param {number} concurrency concurrency value @@ -35,15 +35,15 @@ declare namespace sharp { * Provides access to internal task counters. * @returns {sharp.SharpCounters} Object containing task counters */ - function counters(): sharp.SharpCounters; + function counters(): SharpCounters; /** * Get and set use of SIMD vector unit instructions. * @param {boolean} enable enable or disable use of SIMD vector unit instructions * @returns {boolean} true if usage of SIMD vector unit instructions is enabled */ function simd(enable?: boolean): boolean; - const kernel: sharp.KernelEnum; - const interpolator: sharp.InterpolatorEnum; + const kernel: KernelEnum; + const interpolator: InterpolatorEnum; /** * Object containing nested boolean values representing the available input and output formats/methods. */ diff --git a/types/sharp/sharp-tests.ts b/types/sharp/sharp-tests.ts index c7cb47fba0..d7f0282c24 100644 --- a/types/sharp/sharp-tests.ts +++ b/types/sharp/sharp-tests.ts @@ -58,7 +58,7 @@ console.log(sharp.format); console.log(sharp.versions); sharp.queue.on('change', (queueLength: number) => { - console.log('Queue contains ' + queueLength + ' task(s)'); + console.log(`Queue contains ${queueLength} task(s)`); }); let pipeline: sharp.SharpInstance = sharp().rotate(); diff --git a/types/sheetify/tslint.json b/types/sheetify/tslint.json index 3db14f85ea..26a0c302a8 100644 --- a/types/sheetify/tslint.json +++ b/types/sheetify/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-void-expression": false + } +} diff --git a/types/should-promised/index.d.ts b/types/should-promised/index.d.ts index 0c17b970f7..96d21ff534 100644 --- a/types/should-promised/index.d.ts +++ b/types/should-promised/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for should-promised // Project: https://github.com/shouldjs/promised -// Definitions by: Yaroslav Admin +// Definitions by: Yaroslav Admin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface ShouldAssertion { diff --git a/types/should/index.d.ts b/types/should/index.d.ts index 96584bfe96..8f10ae4a76 100644 --- a/types/should/index.d.ts +++ b/types/should/index.d.ts @@ -1,6 +1,8 @@ // Type definitions for should.js v11.2.0 // Project: https://github.com/shouldjs/should.js -// Definitions by: Alex Varju , Maxime LUCE , Lukas Spieß +// Definitions by: Alex Varju +// Maxime LUCE +// Lukas Spieß // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Object { diff --git a/types/showdown/index.d.ts b/types/showdown/index.d.ts index 728d58ded0..62cecfda30 100644 --- a/types/showdown/index.d.ts +++ b/types/showdown/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Showdown 1.7.2 // Project: https://github.com/coreyti/showdown -// Definitions by: cbowdon , Pei-Tang Huang +// Definitions by: cbowdon , Pei-Tang Huang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = Showdown; diff --git a/types/signalr/index.d.ts b/types/signalr/index.d.ts index 37c479fd9a..a8e80a6a3d 100644 --- a/types/signalr/index.d.ts +++ b/types/signalr/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for SignalR 2.2.0 // Project: http://www.asp.net/signalr -// Definitions by: Boris Yankov , T. Michael Keesey , Giedrius Grabauskas +// Definitions by: Boris Yankov , T. Michael Keesey , Giedrius Grabauskas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/simple-oauth2/simple-oauth2-tests.ts b/types/simple-oauth2/simple-oauth2-tests.ts index 83197a06eb..713d930f23 100644 --- a/types/simple-oauth2/simple-oauth2-tests.ts +++ b/types/simple-oauth2/simple-oauth2-tests.ts @@ -39,7 +39,8 @@ const oauth2 = oauth2lib.create(credentials); // Save the access token oauth2.authorizationCode.getToken(tokenConfig, (error, result) => { if (error) { - return console.log('Access Token Error', error.message); + console.log('Access Token Error', error.message); + return; } const token = oauth2.accessToken.create(result); @@ -64,7 +65,8 @@ const oauth2 = oauth2lib.create(credentials); // Get the access token object for the client oauth2.clientCredentials.getToken(tokenConfig, (error, result) => { if (error) { - return console.log('Access Token Error', error.message); + console.log('Access Token Error', error.message); + return; } const token = oauth2.accessToken.create(result); diff --git a/types/simplesmtp/index.d.ts b/types/simplesmtp/index.d.ts index 3331e0b0ea..dc9e342ed0 100644 --- a/types/simplesmtp/index.d.ts +++ b/types/simplesmtp/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for simplesmtp 0.3.35 // Project: https://github.com/andris9/simplesmtp -// Definitions by: Rogier Schouten +// Definitions by: Rogier Schouten // Definitions: https://github.com/borisyankov/DefinitelyTyped /// diff --git a/types/sinon-chai/index.d.ts b/types/sinon-chai/index.d.ts index 3ed2304d7a..8c6d7eb2d0 100644 --- a/types/sinon-chai/index.d.ts +++ b/types/sinon-chai/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for sinon-chai 2.7.0 // Project: https://github.com/domenic/sinon-chai -// Definitions by: Kazi Manzur Rashid , Jed Mao +// Definitions by: Kazi Manzur Rashid , Jed Mao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/slate-irc/index.d.ts b/types/slate-irc/index.d.ts index 574a08402e..47dbe178c1 100644 --- a/types/slate-irc/index.d.ts +++ b/types/slate-irc/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for slate-irc // Project: https://github.com/slate/slate-irc -// Definitions by: Elisée MAURER +// Definitions by: Elisée MAURER // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/slickgrid/index.d.ts b/types/slickgrid/index.d.ts index 669b187366..d3b30ba74f 100644 --- a/types/slickgrid/index.d.ts +++ b/types/slickgrid/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for SlickGrid 2.1.0 // Project: https://github.com/mleibman/SlickGrid -// Definitions by: Josh Baldwin +// Definitions by: Josh Baldwin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/slideout/index.d.ts b/types/slideout/index.d.ts index cc358bf190..1a8006ea81 100644 --- a/types/slideout/index.d.ts +++ b/types/slideout/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Slideout 0.1.12 // Project: https://github.com/mango/slideout -// Definitions by: Markus Peloso +// Definitions by: Markus Peloso // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = Slideout; diff --git a/types/smtp-server/index.d.ts b/types/smtp-server/index.d.ts index 09d11b5477..0edba1710a 100644 --- a/types/smtp-server/index.d.ts +++ b/types/smtp-server/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for smtp-server v1.15.0 // Project: https://github.com/andris9/smtp-server -// Definitions by: markisme +// Definitions by: markisme // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export class SMTPServer { diff --git a/types/snazzy-info-window/index.d.ts b/types/snazzy-info-window/index.d.ts index 6519305896..e4f644ece0 100644 --- a/types/snazzy-info-window/index.d.ts +++ b/types/snazzy-info-window/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for snazzy-info-window 1.1 // Project: https://github.com/atmist/snazzy-info-window -// Definitions by: Milos Danilov +// Definitions by: Milos Danilov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/snazzy-info-window/snazzy-info-window-tests.ts b/types/snazzy-info-window/snazzy-info-window-tests.ts index a980675887..6f3a104b85 100644 --- a/types/snazzy-info-window/snazzy-info-window-tests.ts +++ b/types/snazzy-info-window/snazzy-info-window-tests.ts @@ -3,17 +3,17 @@ import jQuery = require('jquery'); import Handlebars = require('handlebars'); const simple = () => { - let myMap = new google.maps.Map($('.map-canvas')[0], { + const myMap = new google.maps.Map($('.map-canvas')[0], { zoom: 14, center: new google.maps.LatLng(40.72, -74) }); - let myMarker = new google.maps.Marker({ + const myMarker = new google.maps.Marker({ map: myMap, position: new google.maps.LatLng(40.72, -74) }); - let info = new SnazzyInfoWindow({ + const info = new SnazzyInfoWindow({ marker: myMarker, content: 'Your snazzy content.' }); @@ -32,8 +32,8 @@ const multipleMarkers = () => { }; } - let mapCenter = { lat: 40.72, lng: -74 }; - let myMap = new google.maps.Map($('.map-canvas')[0], { + const mapCenter = { lat: 40.72, lng: -74 }; + const myMap = new google.maps.Map($('.map-canvas')[0], { zoom: 14, center: mapCenter }); @@ -42,8 +42,8 @@ const multipleMarkers = () => { return { lat: mapCenter.lat + dx, lng: mapCenter.lng + dy }; }; - let dx = 0.003; - let placements: Placement[] = [ + const dx = 0.003; + const placements: Placement[] = [ { type: 'top', LatLng: offsetCenter(dx, 0) }, { type: 'right', LatLng: offsetCenter(0, dx) }, { type: 'bottom', LatLng: offsetCenter(-dx, 0) }, @@ -51,14 +51,14 @@ const multipleMarkers = () => { ]; $.each(placements, (i: number, e: Placement) => { - let myMarker = new google.maps.Marker({ + const myMarker = new google.maps.Marker({ map: myMap, draggable: true, position: e.LatLng }); - let a = e.type; - let info = new SnazzyInfoWindow({ + const a = e.type; + const info = new SnazzyInfoWindow({ marker: myMarker, placement: e.type, content: e.type, @@ -71,11 +71,11 @@ const multipleMarkers = () => { // Dynamic Content const dynamicContent = () => { - let myMap = new google.maps.Map($('.map-canvas')[0], { + const myMap = new google.maps.Map($('.map-canvas')[0], { zoom: 14, center: new google.maps.LatLng(40.72, -74) }); - let myMarker = new google.maps.Marker({ + const myMarker = new google.maps.Marker({ map: myMap, position: new google.maps.LatLng(40.72, -74), draggable: true @@ -85,10 +85,10 @@ const dynamicContent = () => { return date && date.toLocaleTimeString(); }); - let template = Handlebars.compile($('#marker-content-template').html()); + const template = Handlebars.compile($('#marker-content-template').html()); - let interval: number = 0; - let info = new SnazzyInfoWindow({ + let interval = 0; + const info = new SnazzyInfoWindow({ marker: myMarker, callbacks: { beforeOpen() { @@ -114,13 +114,13 @@ const dynamicContent = () => { // Set position const setPosition = () => { - let myMap = new google.maps.Map($('.map-canvas')[0], { + const myMap = new google.maps.Map($('.map-canvas')[0], { zoom: 14, center: new google.maps.LatLng(40.72, -74), clickableIcons: false }); - let info = new SnazzyInfoWindow({ + const info = new SnazzyInfoWindow({ map: myMap, position: new google.maps.LatLng(40.72, -74), closeOnMapClick: false, @@ -137,17 +137,17 @@ const setPosition = () => { }; const jsStyling = () => { - let myMap = new google.maps.Map($('.map-canvas')[0], { + const myMap = new google.maps.Map($('.map-canvas')[0], { zoom: 14, center: new google.maps.LatLng(40.721, -73.991) }); - let myMarker = new google.maps.Marker({ + const myMarker = new google.maps.Marker({ map: myMap, position: new google.maps.LatLng(40.72, -74) }); - let info = new SnazzyInfoWindow({ + const info = new SnazzyInfoWindow({ marker: myMarker, placement: 'right', offset: { diff --git a/types/socket.io-client/index.d.ts b/types/socket.io-client/index.d.ts index 0859c58e08..2f1cc22efd 100644 --- a/types/socket.io-client/index.d.ts +++ b/types/socket.io-client/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for socket.io-client 1.4.4 // Project: http://socket.io/ -// Definitions by: PROGRE , Damian Connolly , Florent Poujol +// Definitions by: PROGRE , Damian Connolly , Florent Poujol // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var io: SocketIOClientStatic; diff --git a/types/socket.io-redis/index.d.ts b/types/socket.io-redis/index.d.ts index 03f507e50d..a4ce38a265 100644 --- a/types/socket.io-redis/index.d.ts +++ b/types/socket.io-redis/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for socket.io-redis 1.0.0 // Project: https://github.com/socketio/socket.io-redis -// Definitions by: Philipp Holzer +// Definitions by: Philipp Holzer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/socket.io/index.d.ts b/types/socket.io/index.d.ts index 9eafcec6a1..41863235ba 100644 --- a/types/socket.io/index.d.ts +++ b/types/socket.io/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for socket.io 1.4.4 // Project: http://socket.io/ -// Definitions by: PROGRE , Damian Connolly , Florent Poujol , KentarouTakeda +// Definitions by: PROGRE , Damian Connolly , Florent Poujol , KentarouTakeda // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/sockjs-client/index.d.ts b/types/sockjs-client/index.d.ts index e5ef8dc7e4..96d783aa98 100644 --- a/types/sockjs-client/index.d.ts +++ b/types/sockjs-client/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for sockjs-client 1.0 // Project: https://github.com/sockjs/sockjs-client // Definitions by: Emil Ivanov -// Alexander Rusakov +// Alexander Rusakov // BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/source-map/source-map-tests.ts b/types/source-map/source-map-tests.ts index 883abdda91..f87194395b 100644 --- a/types/source-map/source-map-tests.ts +++ b/types/source-map/source-map-tests.ts @@ -33,7 +33,7 @@ function testSourceMapConsumer() { }); // create from index map - let iscm: SourceMap.IndexedSourceMapConsumer = new SourceMap.SourceMapConsumer({ + const iscm: SourceMap.IndexedSourceMapConsumer = new SourceMap.SourceMapConsumer({ version: 3, sections: [ { offset: { line: 0, column: 0 }, map: { @@ -47,7 +47,7 @@ function testSourceMapConsumer() { }); let scg: SourceMap.SourceMapGenerator; - let bscm: SourceMap.BasicSourceMapConsumer = SourceMap.SourceMapConsumer.fromSourceMap(scg); + const bscm: SourceMap.BasicSourceMapConsumer = SourceMap.SourceMapConsumer.fromSourceMap(scg); } function testOriginalPositionFor(scm: SourceMap.SourceMapConsumer) { diff --git a/types/source-map/tslint.json b/types/source-map/tslint.json index 2750cc0197..7210289f52 100644 --- a/types/source-map/tslint.json +++ b/types/source-map/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } \ No newline at end of file +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "prefer-const": false + } +} \ No newline at end of file diff --git a/types/spatialite/index.d.ts b/types/spatialite/index.d.ts index 3edcc663c6..978185ab99 100644 --- a/types/spatialite/index.d.ts +++ b/types/spatialite/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for spatialite 0.0 // Project: https://github.com/zhm/node-spatialite -// Definitions by: Arne Schubert +// Definitions by: Arne Schubert // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export { diff --git a/types/spatialite/spatialite-tests.ts b/types/spatialite/spatialite-tests.ts index bac1bef4e9..a0cfd0cda5 100644 --- a/types/spatialite/spatialite-tests.ts +++ b/types/spatialite/spatialite-tests.ts @@ -43,7 +43,7 @@ function readAllRows() { console.log("readAllRows lorem"); db.all("SELECT rowid AS id, info FROM lorem", (err, rows) => { rows.forEach(row => { - console.log(row.id + ": " + row.info); + console.log(`${row.id}: ${row.info}`); }); readSomeRows(); }); @@ -52,7 +52,7 @@ function readAllRows() { function readSomeRows() { console.log("readAllRows lorem"); db.each("SELECT rowid AS id, info FROM lorem WHERE rowid < ? ", 5, (err, row) => { - console.log(row.id + ": " + row.info); + console.log(`${row.id}: ${row.info}`); }, closeDb); } @@ -77,7 +77,7 @@ db.serialize(() => { stmt.finalize(); db.each("SELECT rowid AS id, info FROM lorem", (err, row) => { - console.log(row.id + ": " + row.info); + console.log(`${row.id}: ${row.info}`); }); }); diff --git a/types/speakingurl/index.d.ts b/types/speakingurl/index.d.ts index 67c9678c9e..912fb0a0c1 100644 --- a/types/speakingurl/index.d.ts +++ b/types/speakingurl/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for speakingurl 13.0 // Project: http://pid.github.io/speakingurl/ -// Definitions by: Zlatko Andonovski +// Definitions by: Zlatko Andonovski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Dictionary { diff --git a/types/spin.js/index.d.ts b/types/spin.js/index.d.ts index ea9ca7aae7..633a308e53 100644 --- a/types/spin.js/index.d.ts +++ b/types/spin.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Spin.js 2.3.2 // Project: http://fgnass.github.com/spin.js/ -// Definitions by: Boris Yankov , Theodore Brown +// Definitions by: Boris Yankov , Theodore Brown // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/split2/index.d.ts b/types/split2/index.d.ts index 251bcb01b5..1c443c1a15 100644 --- a/types/split2/index.d.ts +++ b/types/split2/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for split2 2.1.0 // Project: https://github.com/mcollina/split2 -// Definitions by: TANAKA Koichi +// Definitions by: TANAKA Koichi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/sql.js/index.d.ts b/types/sql.js/index.d.ts index a823116a35..6fd6c7d84d 100644 --- a/types/sql.js/index.d.ts +++ b/types/sql.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for sql.js // Project: https://github.com/kripken/sql.js -// Definitions by: George Wu +// Definitions by: George Wu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/sqlite3/index.d.ts b/types/sqlite3/index.d.ts index 2ecd6402ba..921845e5a0 100644 --- a/types/sqlite3/index.d.ts +++ b/types/sqlite3/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for sqlite3 3.1 // Project: https://github.com/mapbox/node-sqlite3 -// Definitions by: Nick Malaguti -// Sumant Manne +// Definitions by: Nick Malaguti +// Sumant Manne // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/sqs-consumer/tslint.json b/types/sqs-consumer/tslint.json index a62d0d4e68..10e16aef18 100644 --- a/types/sqs-consumer/tslint.json +++ b/types/sqs-consumer/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "ban-types": false + // TODOs + "ban-types": false, + "dt-header": false } } diff --git a/types/sqs-producer/tslint.json b/types/sqs-producer/tslint.json index 2750cc0197..849acb7fd0 100644 --- a/types/sqs-producer/tslint.json +++ b/types/sqs-producer/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } \ No newline at end of file +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} \ No newline at end of file diff --git a/types/ss-utils/index.d.ts b/types/ss-utils/index.d.ts index e433d5430e..3f99c785a3 100644 --- a/types/ss-utils/index.d.ts +++ b/types/ss-utils/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ServiceStack Utils v0.0.1 // Project: https://servicestack.net/ -// Definitions by: Demis Bellot +// Definitions by: Demis Bellot // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/stale-lru-cache/index.d.ts b/types/stale-lru-cache/index.d.ts index 80be52905d..60e2aff14c 100644 --- a/types/stale-lru-cache/index.d.ts +++ b/types/stale-lru-cache/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for stale-lru-cache 5.1 // Project: https://github.com/cyberthom/stale-lru-cache -// Definitions by: Joona Heikkilä +// Definitions by: Joona Heikkilä // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class Cache { diff --git a/types/stale-lru-cache/stale-lru-cache-tests.ts b/types/stale-lru-cache/stale-lru-cache-tests.ts index 28f8aaddc9..8d3c47562f 100644 --- a/types/stale-lru-cache/stale-lru-cache-tests.ts +++ b/types/stale-lru-cache/stale-lru-cache-tests.ts @@ -27,7 +27,7 @@ const revalidate = (url: string, callback: (error: any, value?: string, options? }); }; -const request: (url: string, cb: (error: any, response: any, html: string) => any) => any; +declare const request: (url: string, cb: (error: any, response: any, html: string) => any) => any; cache.wrap('http://www.google.com', revalidate, (error, html) => { // Do something with cached response }); diff --git a/types/stamplay-js-sdk/index.d.ts b/types/stamplay-js-sdk/index.d.ts index 6f5d9726c2..c193a14137 100644 --- a/types/stamplay-js-sdk/index.d.ts +++ b/types/stamplay-js-sdk/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for stamplay-js-sdk 1.2 // Project: https://github.com/Stamplay/stamplay-js-sdk -// Definitions by: Riderman de Sousa Barbosa +// Definitions by: Riderman de Sousa Barbosa // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Stamplay { diff --git a/types/statsd-client/index.d.ts b/types/statsd-client/index.d.ts index e232e437ad..7bb83b7393 100644 --- a/types/statsd-client/index.d.ts +++ b/types/statsd-client/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for statsd-client v0.1.0 // Project: https://github.com/msiebuhr/node-statsd-client -// Definitions by: Peter Kooijmans +// Definitions by: Peter Kooijmans // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/status-bar/index.d.ts b/types/status-bar/index.d.ts index 44bce0436d..4c471503a7 100644 --- a/types/status-bar/index.d.ts +++ b/types/status-bar/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for status-bar // Project: https://github.com/atom/status-bar -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/storejs/index.d.ts b/types/storejs/index.d.ts index 0068d94722..e28189dea6 100644 --- a/types/storejs/index.d.ts +++ b/types/storejs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for store.js 1.3 // Project: https://github.com/marcuswestin/store.js/ -// Definitions by: Vincent Bortone +// Definitions by: Vincent Bortone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // store.js exposes a simple API for cross browser local storage diff --git a/types/stream-meter/index.d.ts b/types/stream-meter/index.d.ts index ed095c6320..d95d954e51 100644 --- a/types/stream-meter/index.d.ts +++ b/types/stream-meter/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for stream-meter // Project: https://github.com/brycebaril/node-stream-meter -// Definitions by: TANAKA Koichi +// Definitions by: TANAKA Koichi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/string-hash/index.d.ts b/types/string-hash/index.d.ts index 5b8986e05b..0a31b1ae17 100644 --- a/types/string-hash/index.d.ts +++ b/types/string-hash/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for string-hash 1.1.1 // Project: https://github.com/darkskyapp/string-hash -// Definitions by: Ethan Rubio +// Definitions by: Ethan Rubio // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function stringHash(str: string): number; diff --git a/types/string/index.d.ts b/types/string/index.d.ts index e47c0d7eca..2b4a8c9f5e 100644 --- a/types/string/index.d.ts +++ b/types/string/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for string.js // Project: http://stringjs.com -// Definitions by: Bas Pennings +// Definitions by: Bas Pennings // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface StringJS { diff --git a/types/string_score/index.d.ts b/types/string_score/index.d.ts index dbe1d78967..86d968b54c 100644 --- a/types/string_score/index.d.ts +++ b/types/string_score/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for string_score 0.1.22 // Project: https://github.com/joshaven/string_score -// Definitions by: Marcin Porębski +// Definitions by: Marcin Porębski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "string_score" diff --git a/types/strip-json-comments/index.d.ts b/types/strip-json-comments/index.d.ts index 52cf297f0a..54213bda4b 100644 --- a/types/strip-json-comments/index.d.ts +++ b/types/strip-json-comments/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for strip-json-comments // Project: https://github.com/sindresorhus/strip-json-comments -// Definitions by: Dylan R. E. Moonfire +// Definitions by: Dylan R. E. Moonfire // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/stripe-node/index.d.ts b/types/stripe-node/index.d.ts index 284d53e8c0..60310728b0 100644 --- a/types/stripe-node/index.d.ts +++ b/types/stripe-node/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for stripe-node 4.6.0 // Project: https://github.com/stripe/stripe-node/ -// Definitions by: William Johnston , Peter Harris +// Definitions by: William Johnston , Peter Harris // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/stripe-v2/index.d.ts b/types/stripe-v2/index.d.ts index 563fb89780..1350970e3e 100644 --- a/types/stripe-v2/index.d.ts +++ b/types/stripe-v2/index.d.ts @@ -1,8 +1,8 @@ // Type definitions for stripe-v2 2.x // Project: https://stripe.com/ // Definitions by: Andy Hawkins -// Eric J. Smith -// Amrit Kahlon +// Eric J. Smith +// Amrit Kahlon // Adam Cmiel // Justin Leider // Kamil Gałuszka diff --git a/types/stripe-v2/tslint.json b/types/stripe-v2/tslint.json index 3db14f85ea..946c3b6691 100644 --- a/types/stripe-v2/tslint.json +++ b/types/stripe-v2/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} diff --git a/types/stripe-v3/index.d.ts b/types/stripe-v3/index.d.ts index 2337e6adc2..5d1296f8dd 100644 --- a/types/stripe-v3/index.d.ts +++ b/types/stripe-v3/index.d.ts @@ -1,8 +1,8 @@ // Type definitions for stripe-v3 3.0 // Project: https://stripe.com/ // Definitions by: Andy Hawkins -// Eric J. Smith -// Amrit Kahlon +// Eric J. Smith +// Amrit Kahlon // Adam Cmiel // Justin Leider // Kamil Gałuszka @@ -110,7 +110,7 @@ declare namespace stripe { // Container for all elements related types namespace elements { interface ElementsCreateOptions { - fonts?: elements.Font[]; + fonts?: Font[]; locale?: string; } @@ -136,7 +136,7 @@ declare namespace stripe { } interface ElementOptions { - fonts?: elements.Font[]; + fonts?: Font[]; locale?: string; } diff --git a/types/stripe-v3/tslint.json b/types/stripe-v3/tslint.json index 3db14f85ea..26bcea6634 100644 --- a/types/stripe-v3/tslint.json +++ b/types/stripe-v3/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false + } +} diff --git a/types/strophe/index.d.ts b/types/strophe/index.d.ts index 9cff5d3e02..cc33e8883a 100644 --- a/types/strophe/index.d.ts +++ b/types/strophe/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Strophe.js v1.2.0 // Project: http://strophe.im/strophejs/ -// Definitions by: David Deutsch +// Definitions by: David Deutsch // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Strophe { diff --git a/types/sumo-logger/index.d.ts b/types/sumo-logger/index.d.ts index 03da4b9848..9ada2e9051 100644 --- a/types/sumo-logger/index.d.ts +++ b/types/sumo-logger/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for js-logging-sdk 1.0 // Project: https://github.com/SumoLogic/js-logging-sdk -// Definitions by: forabi +// Definitions by: forabi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/superagent-no-cache/index.d.ts b/types/superagent-no-cache/index.d.ts index c08b41af15..210d474f5f 100644 --- a/types/superagent-no-cache/index.d.ts +++ b/types/superagent-no-cache/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for superagent-no-cache 0.1 // Project: https://github.com/johntron/superagent-no-cache -// Definitions by: Michael Ledin +// Definitions by: Michael Ledin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/superagent-prefix/index.d.ts b/types/superagent-prefix/index.d.ts index 8b7eb1d508..39968e7701 100644 --- a/types/superagent-prefix/index.d.ts +++ b/types/superagent-prefix/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for superagent-prefix 0.0 // Project: https://github.com/johntron/superagent-prefix -// Definitions by: Michael Ledin +// Definitions by: Michael Ledin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/superagent/index.d.ts b/types/superagent/index.d.ts index 9d6c80a946..05e1275ca0 100644 --- a/types/superagent/index.d.ts +++ b/types/superagent/index.d.ts @@ -1,8 +1,8 @@ // Type definitions for SuperAgent 3.5 // Project: https://github.com/visionmedia/superagent -// Definitions by: Nico Zelaya -// Michael Ledin -// Pap Lőrinc +// Definitions by: Nico Zelaya +// Michael Ledin +// Pap Lőrinc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/supercluster/tslint.json b/types/supercluster/tslint.json index 3db14f85ea..440efbd687 100644 --- a/types/supercluster/tslint.json +++ b/types/supercluster/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-duplicate-imports": false + } +} diff --git a/types/supertest-as-promised/tslint.json b/types/supertest-as-promised/tslint.json index 4f44991c3c..47e22e1551 100644 --- a/types/supertest-as-promised/tslint.json +++ b/types/supertest-as-promised/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-duplicate-imports": false, "no-empty-interface": false } } diff --git a/types/supertest/index.d.ts b/types/supertest/index.d.ts index 4607dd55f1..6da2f54206 100644 --- a/types/supertest/index.d.ts +++ b/types/supertest/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for SuperTest v2.0.1 // Project: https://github.com/visionmedia/supertest -// Definitions by: Alex Varju +// Definitions by: Alex Varju // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/survey-knockout/index.d.ts b/types/survey-knockout/index.d.ts index fa690a5408..cb0f7776ac 100644 --- a/types/survey-knockout/index.d.ts +++ b/types/survey-knockout/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Survey JavaScript library v0.9.7 // Project: http://surveyjs.org/ -// Definitions by: Andrew Telnov +// Definitions by: Andrew Telnov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module Survey { diff --git a/types/swagger-express-middleware/index.d.ts b/types/swagger-express-middleware/index.d.ts index f6449f8485..f9d7033412 100644 --- a/types/swagger-express-middleware/index.d.ts +++ b/types/swagger-express-middleware/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for swagger-express-middleware 1.x // Project: https://github.com/BigstickCarpet/swagger-express-middleware -// Definitions by: Alexandre Roba +// Definitions by: Alexandre Roba // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/swagger-express-mw/index.d.ts b/types/swagger-express-mw/index.d.ts index 104bd0fc39..5fcd008ba0 100644 --- a/types/swagger-express-mw/index.d.ts +++ b/types/swagger-express-mw/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for swagger-express-mw 0.7 // Project: https://github.com/apigee-127/swagger-express#readme -// Definitions by: Michael Mrowetz +// Definitions by: Michael Mrowetz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -42,4 +42,4 @@ export { Config, ConnectMiddleware } from "swagger-node-runner"; * * @see @link{https://github.com/apigee-127/swagger-express|Github} */ -export function create(config: Config, cb: (err: Error | undefined, runner: ConnectMiddleware) => void ): void; +export function create(config: Config, cb: (err: Error | undefined, runner: ConnectMiddleware) => void): void; diff --git a/types/swagger-hapi/index.d.ts b/types/swagger-hapi/index.d.ts index 7e62dbbdbb..292cc46d82 100644 --- a/types/swagger-hapi/index.d.ts +++ b/types/swagger-hapi/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for swagger-hapi 0.7 // Project: https://github.com/apigee-127/swagger-hapi#readme -// Definitions by: Michael Mrowetz +// Definitions by: Michael Mrowetz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -49,4 +49,4 @@ export { Config, HapiMiddleware } from "swagger-node-runner"; * * @see @link{https://github.com/apigee-127/swagger-express|Github} */ -export function create(config: Config, cb: (err: Error | undefined, middleware: HapiMiddleware) => void ): void; +export function create(config: Config, cb: (err: Error | undefined, middleware: HapiMiddleware) => void): void; diff --git a/types/swagger-hapi/swagger-hapi-tests.ts b/types/swagger-hapi/swagger-hapi-tests.ts index c630987e0e..2c37888e61 100644 --- a/types/swagger-hapi/swagger-hapi-tests.ts +++ b/types/swagger-hapi/swagger-hapi-tests.ts @@ -23,7 +23,10 @@ SwaggerHapi.create(config, (err, swaggerHapi) => { } app.register(swaggerHapi.plugin, err => { - if (err) { return console.error("Failed to load plugin:", err); } + if (err) { + console.error("Failed to load plugin:", err); + return; + } // stat app etc.. }); }); diff --git a/types/swagger-node-runner/index.d.ts b/types/swagger-node-runner/index.d.ts index 79118bb2e5..4cea8f56dd 100644 --- a/types/swagger-node-runner/index.d.ts +++ b/types/swagger-node-runner/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for swagger-node-runner 0.5 // Project: https://www.npmjs.com/package/swagger-node-runner -// Definitions by: Michael Mrowetz +// Definitions by: Michael Mrowetz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/swagger-node-runner/swagger-node-runner-tests.ts b/types/swagger-node-runner/swagger-node-runner-tests.ts index c0fd698df1..9890bed290 100644 --- a/types/swagger-node-runner/swagger-node-runner-tests.ts +++ b/types/swagger-node-runner/swagger-node-runner-tests.ts @@ -63,7 +63,10 @@ SwaggerNodeRunner.create(config, (err, runner) => { const pluginAttributes = hapiMiddleware.plugin.register.attributes.name + hapiMiddleware.plugin.register.attributes.version; hapiapp.register(hapiMiddleware.plugin, err => { - if (err) { return console.error("Failed to load plugin:", err); } + if (err) { + console.error("Failed to load plugin:", err); + return; + } // stat app etc.. }); }); diff --git a/types/swagger-parser/index.d.ts b/types/swagger-parser/index.d.ts index e29c2630e2..3d145b802c 100644 --- a/types/swagger-parser/index.d.ts +++ b/types/swagger-parser/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for swagger-parser 4.x // Project: https://www.npmjs.com/package/swagger-parser -// Definitions by: Tobias Wolff -// Eric Henry +// Definitions by: Tobias Wolff +// Eric Henry // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Spec as Swagger } from 'swagger-schema-official'; diff --git a/types/swagger-restify-mw/index.d.ts b/types/swagger-restify-mw/index.d.ts index efc63693f3..3a4b925a81 100644 --- a/types/swagger-restify-mw/index.d.ts +++ b/types/swagger-restify-mw/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for swagger-restify-mw 0.7 // Project: https://github.com/apigee-127/swagger-restify#readme -// Definitions by: Michael Mrowetz +// Definitions by: Michael Mrowetz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/swagger-sails-hook/index.d.ts b/types/swagger-sails-hook/index.d.ts index b2e54f10a0..203dc5d62f 100644 --- a/types/swagger-sails-hook/index.d.ts +++ b/types/swagger-sails-hook/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for swagger-sails-hook 0.7 // Project: https://github.com/apigee-127/swagger-sails#readme -// Definitions by: Michael Mrowetz +// Definitions by: Michael Mrowetz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== diff --git a/types/swaggerize-express/index.d.ts b/types/swaggerize-express/index.d.ts index d419dff97d..49f2fef004 100644 --- a/types/swaggerize-express/index.d.ts +++ b/types/swaggerize-express/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for swaggerize-express 4.x // Project: https://github.com/krakenjs/swaggerize-express -// Definitions by: TANAKA Koichi +// Definitions by: TANAKA Koichi // Nick Morton // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/sweetalert/index.d.ts b/types/sweetalert/index.d.ts index 0cb192a533..bb7e135e0a 100644 --- a/types/sweetalert/index.d.ts +++ b/types/sweetalert/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for SweetAlert 1.1.3 // Project: https://github.com/t4t5/sweetalert/ -// Definitions by: Markus Peloso +// Definitions by: Markus Peloso // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var sweetAlert: SweetAlert.SweetAlertStatic; diff --git a/types/swiper/index.d.ts b/types/swiper/index.d.ts index 57edc39a61..a0e6b3da6d 100644 --- a/types/swiper/index.d.ts +++ b/types/swiper/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Swiper 3.4 // Project: https://github.com/nolimits4web/Swiper -// Definitions by: Sebastián Galiano , Luca Trazzi +// Definitions by: Sebastián Galiano , Luca Trazzi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface SwiperOptions { diff --git a/types/swipeview/index.d.ts b/types/swipeview/index.d.ts index 8d65670497..08dc6ddcd0 100644 --- a/types/swipeview/index.d.ts +++ b/types/swipeview/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for SwipeView 1.0 // Project: http://cubiq.org/swipeview -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/synaptic/index.d.ts b/types/synaptic/index.d.ts index abc975ee78..1bf7de5a6c 100644 --- a/types/synaptic/index.d.ts +++ b/types/synaptic/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for synaptic 1.0.9 // Project: https://github.com/cazala/synaptic -// Definitions by: Markus Peloso +// Definitions by: Markus Peloso // Austin Cummings // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/systemjs/index.d.ts b/types/systemjs/index.d.ts index 3550e77222..a896c3ca7d 100644 --- a/types/systemjs/index.d.ts +++ b/types/systemjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for SystemJS 0.20 // Project: https://github.com/systemjs/systemjs -// Definitions by: Ludovic HENIN , Nathan Walker , Giedrius Grabauskas +// Definitions by: Ludovic HENIN , Nathan Walker , Giedrius Grabauskas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/telebot/telebot-tests.ts b/types/telebot/telebot-tests.ts index 91f4f4531f..3bb9677b5d 100644 --- a/types/telebot/telebot-tests.ts +++ b/types/telebot/telebot-tests.ts @@ -56,7 +56,7 @@ bot.on(['/start', 'audio', 'sticker'], msg => { }); bot.mod('text', (data) => { - let msg = data.message; + const msg = data.message; msg.text = `📢 ${ msg.text }`; return data; }); diff --git a/types/text-buffer/index.d.ts b/types/text-buffer/index.d.ts index ea03dc4f69..e3200a7aff 100644 --- a/types/text-buffer/index.d.ts +++ b/types/text-buffer/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for text-buffer // Project: https://github.com/atom/text-buffer -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/text-encoding/index.d.ts b/types/text-encoding/index.d.ts index 50788db138..d86ee007fb 100644 --- a/types/text-encoding/index.d.ts +++ b/types/text-encoding/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for text-encoding // Project: https://github.com/inexorabletash/text-encoding -// Definitions by: MIZUNE Pine +// Definitions by: MIZUNE Pine // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace TextEncoding { diff --git a/types/throng/index.d.ts b/types/throng/index.d.ts index ac4712be77..76a64932db 100644 --- a/types/throng/index.d.ts +++ b/types/throng/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for throng 4.0 // Project: https://github.com/hunterloftis/throng -// Definitions by: Cyril Schumacher +// Definitions by: Cyril Schumacher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function throng(options: throng.WorkerCallback | throng.Options | number, startFunction?: throng.WorkerCallback): void; diff --git a/types/through/index.d.ts b/types/through/index.d.ts index 71397ad8d9..71be62da12 100644 --- a/types/through/index.d.ts +++ b/types/through/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for through // Project: https://github.com/dominictarr/through -// Definitions by: Andrew Gaspar +// Definitions by: Andrew Gaspar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/tinymce/index.d.ts b/types/tinymce/index.d.ts index 79d8cacecf..6e00e71dbb 100644 --- a/types/tinymce/index.d.ts +++ b/types/tinymce/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for TinyMCE 4.5 // Project: https://github.com/tinymce/tinymce -// Definitions by: Martin Duparc , Poul Poulsen +// Definitions by: Martin Duparc , Poul Poulsen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -704,7 +704,7 @@ export interface notificationManager { export namespace ui { interface ControlSettings { - menu: ui.Menu; + menu: Menu; } interface Collection {} @@ -730,7 +730,7 @@ export namespace ui { constructor(); $el: JQuery; - on(name: string, callback: string): ui.Control; + on(name: string, callback: string): Control; tooltip(): Control; settings: ControlSettings; disabled(state: boolean): void; @@ -1108,13 +1108,13 @@ export namespace html { addNodeFilter(attributes: string, callback: () => void): void; - filterNode(node: html.Node): html.Node; + filterNode(node: Node): Node; - parse(html: string, args?: {}): html.Node; + parse(html: string, args?: {}): Node; } class DomParser implements DomParser { - constructor(settings: {}, schema: html.Schema); + constructor(settings: {}, schema: Schema); } interface Entities { @@ -1132,31 +1132,31 @@ export namespace html { } interface Node { - append(node: html.Node): html.Node; + append(node: Node): Node; - attr(name: string, value?: string): string | html.Node; + attr(name: string, value?: string): string | Node; - clone(): html.Node; + clone(): Node; create(name: string, attrs: {}): void; - empty(): html.Node; + empty(): Node; - getAll(name: string): html.Node[]; + getAll(name: string): Node[]; - insert(node: html.Node, ref_node: html.Node, before?: boolean): html.Node; + insert(node: Node, ref_node: Node, before?: boolean): Node; isEmpty(elements: {}): boolean; - remove(): html.Node; + remove(): Node; - replace(node: html.Node): html.Node; + replace(node: Node): Node; unwrap(): void; - walk(prev?: boolean): html.Node; + walk(prev?: boolean): Node; - wrap(wrapperNode: html.Node): html.Node; + wrap(wrapperNode: Node): Node; } class Node implements Node { @@ -1168,7 +1168,7 @@ export namespace html { } class SaxParser implements SaxParser { - constructor(settings: {}, schema: html.Schema); + constructor(settings: {}, schema: Schema); } interface Schema { @@ -1220,11 +1220,11 @@ export namespace html { } interface Serializer { - serialize(node: html.Node): string; + serialize(node: Node): string; } class Serializer implements Serializer { - constructor(settings: {}, schema: html.Schema); + constructor(settings: {}, schema: Schema); } interface Styles { @@ -1260,7 +1260,7 @@ export class Writer implements Writer { export namespace util { interface Color { - parse(value: {}): util.Color; + parse(value: {}): Color; toHex(): string; @@ -1388,7 +1388,7 @@ export namespace util { interface URI { getURI(noProtoHost: boolean): URI; - isSameOrigin(uri: util.URI): boolean; + isSameOrigin(uri: URI): boolean; setPath(path: string): void; diff --git a/types/titanium/index.d.ts b/types/titanium/index.d.ts index ca41169c2f..3cacf3c29e 100644 --- a/types/titanium/index.d.ts +++ b/types/titanium/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Titanium Mobile 3.5.0 // Project: http://www.appcelerator.com/ -// Definitions by: Craig Younkins +// Definitions by: Craig Younkins // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Ti { diff --git a/types/tmp/tmp-tests.ts b/types/tmp/tmp-tests.ts index 3d54b3ee41..eba19552b1 100644 --- a/types/tmp/tmp-tests.ts +++ b/types/tmp/tmp-tests.ts @@ -64,4 +64,4 @@ tmpobj = tmp.dirSync({ mode: 750, prefix: 'myTmpDir_' }); console.log("Dir: ", tmpobj.name); const tmpname = tmp.tmpNameSync({ template: '/tmp/tmp-XXXXXX' }); -console.log("Created temporary filename: ", tmpname ); +console.log("Created temporary filename: ", tmpname); diff --git a/types/toastr/index.d.ts b/types/toastr/index.d.ts index ed93a08f4e..8d5d163f7b 100644 --- a/types/toastr/index.d.ts +++ b/types/toastr/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Toastr 2.1.3 // Project: https://github.com/CodeSeven/toastr -// Definitions by: Boris Yankov +// Definitions by: Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/traceback/index.d.ts b/types/traceback/index.d.ts index 69c6e9ca04..e98ff96e67 100644 --- a/types/traceback/index.d.ts +++ b/types/traceback/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Traceback v0.3.1 // Project: https://github.com/iriscouch/traceback -// Definitions by: Michael Zabka +// Definitions by: Michael Zabka // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Traceback { diff --git a/types/traverson/index.d.ts b/types/traverson/index.d.ts index 8028a172ec..7ad6e393f2 100644 --- a/types/traverson/index.d.ts +++ b/types/traverson/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Traverson v2.0.1 // Project: https://github.com/basti1302/traverson -// Definitions by: Marcin Porębski +// Definitions by: Marcin Porębski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var traverson: Traverson.TraversonMethods; diff --git a/types/trunk8/index.d.ts b/types/trunk8/index.d.ts index 1624c2f438..ff3bba8c87 100644 --- a/types/trunk8/index.d.ts +++ b/types/trunk8/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for trunk8 // Project: https://github.com/rviscomi/trunk8 -// Definitions by: Blake Niemyjski +// Definitions by: Blake Niemyjski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/tus-js-client/index.d.ts b/types/tus-js-client/index.d.ts index d5cc75b682..40097af209 100644 --- a/types/tus-js-client/index.d.ts +++ b/types/tus-js-client/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for tus-js-client 1.4 // Project: https://github.com/tus/tus-js-client/ -// Definitions by: Kevin Somers-Higgins +// Definitions by: Kevin Somers-Higgins // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface UploadOptions { diff --git a/types/type-is/type-is-tests.ts b/types/type-is/type-is-tests.ts index 219d0c7fb4..52095541b1 100644 --- a/types/type-is/type-is-tests.ts +++ b/types/type-is/type-is-tests.ts @@ -3,7 +3,7 @@ import typeis = require('type-is'); http.createServer((req, res) => { const istext = typeis(req, ['text/*']); - res.end('you ' + (istext ? 'sent' : 'did not send') + ' me text'); + res.end(`you ${istext ? 'sent' : 'did not send'} me text`); // $ExpectType string | false | null typeis(req, ['json']); @@ -37,7 +37,8 @@ const app = express(); app.use((req, res, next) => { if (!typeis.hasBody(req)) { - return next(); + next(); + return; } switch (typeis(req, ['urlencoded', 'json', 'multipart'])) { diff --git a/types/typeahead/index.d.ts b/types/typeahead/index.d.ts index 1d144e2428..715db1d126 100644 --- a/types/typeahead/index.d.ts +++ b/types/typeahead/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for typeahead.js 0.11.1 // Project: http://twitter.github.io/typeahead.js/ -// Definitions by: Ivaylo Gochkov , Gidon Junge +// Definitions by: Ivaylo Gochkov , Gidon Junge // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/typedarray-pool/index.d.ts b/types/typedarray-pool/index.d.ts index 0d005853cc..34bcc7adf7 100644 --- a/types/typedarray-pool/index.d.ts +++ b/types/typedarray-pool/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for typedarray-pool v1.1.0 // Project: https://github.com/mikolalysenko/typedarray-pool -// Definitions by: Giff Song +// Definitions by: Giff Song // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped type DataType = diff --git a/types/ui-router-extras/index.d.ts b/types/ui-router-extras/index.d.ts index 440d5900f6..b36f030689 100644 --- a/types/ui-router-extras/index.d.ts +++ b/types/ui-router-extras/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for ui-router-extras 0.1 // Project: https://github.com/christopherthielen/ui-router-extras -// Definitions by: Michael Putters , Marcel van de Kamp , Viktor Smirnov +// Definitions by: Michael Putters , Marcel van de Kamp , Viktor Smirnov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/umzug/index.d.ts b/types/umzug/index.d.ts index 0c58ef40ff..aaa9d4e014 100644 --- a/types/umzug/index.d.ts +++ b/types/umzug/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Umzug v1.8.0 // Project: https://github.com/sequelize/umzug -// Definitions by: Ivan Drinchev +// Definitions by: Ivan Drinchev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/underscore-ko/index.d.ts b/types/underscore-ko/index.d.ts index ef525a5e55..8b04a28f39 100644 --- a/types/underscore-ko/index.d.ts +++ b/types/underscore-ko/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Underscore-ko 1.2.2 with underscore 1.4 // Project: https://github.com/kamranayub/UnderscoreKO -// Definitions by: Maurits Elbers +// Definitions by: Maurits Elbers // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/underscore/index.d.ts b/types/underscore/index.d.ts index eb8fdb57e0..031da982ab 100644 --- a/types/underscore/index.d.ts +++ b/types/underscore/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Underscore 1.8 // Project: http://underscorejs.org/ -// Definitions by: Boris Yankov , Josh Baldwin , Christopher Currens +// Definitions by: Boris Yankov , Josh Baldwin , Christopher Currens // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var _: _.UnderscoreStatic; diff --git a/types/universal-analytics/index.d.ts b/types/universal-analytics/index.d.ts index 011a3adc01..25c72ed3ce 100644 --- a/types/universal-analytics/index.d.ts +++ b/types/universal-analytics/index.d.ts @@ -173,7 +173,7 @@ declare namespace ua { function createFromSession(session?: Session): Visitor; - function middleware(tid: string, options?: ua.MiddlewareOptions): (req: any, res: any, next: (err: any) => void) => void; + function middleware(tid: string, options?: MiddlewareOptions): (req: any, res: any, next: (err: any) => void) => void; } declare function ua(accountID: ua.VisitorOptions | string): ua.Visitor; diff --git a/types/update-notifier/index.d.ts b/types/update-notifier/index.d.ts index 625f93f591..cc39be7a5a 100644 --- a/types/update-notifier/index.d.ts +++ b/types/update-notifier/index.d.ts @@ -9,12 +9,12 @@ declare function UpdateNotifier(settings?: UpdateNotifier.Settings): UpdateNotif declare namespace UpdateNotifier { class UpdateNotifier { - constructor(settings?: UpdateNotifier.Settings); + constructor(settings?: Settings); - update: UpdateNotifier.UpdateInfo; + update: UpdateInfo; check(): void; checkNpm(): void; - notify(customMessage?: UpdateNotifier.NotifyOptions): void; + notify(customMessage?: NotifyOptions): void; } interface Settings { diff --git a/types/uritemplate/index.d.ts b/types/uritemplate/index.d.ts index f9c128c766..7a3f7f4d5d 100644 --- a/types/uritemplate/index.d.ts +++ b/types/uritemplate/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for URI Template JS 0.3.4 // Project: https://github.com/fxa/uritemplate-js -// Definitions by: Chui Tey +// Definitions by: Chui Tey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* diff --git a/types/url-template/index.d.ts b/types/url-template/index.d.ts index 5f3d896002..2f74f93309 100644 --- a/types/url-template/index.d.ts +++ b/types/url-template/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for url-template 2.0.6 // Project: https://github.com/bramstein/url-template -// Definitions by: Marcin Porębski +// Definitions by: Marcin Porębski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var urlTemplate: UrlTemplate.TemplateParser; diff --git a/types/utf8/index.d.ts b/types/utf8/index.d.ts index e9ee9d16b1..cf07d968a0 100644 --- a/types/utf8/index.d.ts +++ b/types/utf8/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for utf8 v2.1.1 // Project: https://github.com/mathiasbynens/utf8.js -// Definitions by: Nick Zelei +// Definitions by: Nick Zelei // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "utf8" { diff --git a/types/uuid-1345/index.d.ts b/types/uuid-1345/index.d.ts index 388eb95ee1..d17661d576 100644 --- a/types/uuid-1345/index.d.ts +++ b/types/uuid-1345/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for uuid-1345 0.99 // Project: https://github.com/scravy/uuid-1345 -// Definitions by: TANAKA Koichi +// Definitions by: TANAKA Koichi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/uuid/index.d.ts b/types/uuid/index.d.ts index a979b989fd..75bc7e6661 100644 --- a/types/uuid/index.d.ts +++ b/types/uuid/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for uuid 3.4 // Project: https://github.com/kelektiv/node-uuid -// Definitions by: Oliver Hoffmann -// Felipe Ochoa +// Definitions by: Oliver Hoffmann +// Felipe Ochoa // Chris Barth // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/uuidjs/index.d.ts b/types/uuidjs/index.d.ts index 24ab5eb160..63f911fa16 100644 --- a/types/uuidjs/index.d.ts +++ b/types/uuidjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for UUID.js v3.3.0 // Project: https://github.com/LiosK/UUID.js -// Definitions by: Jason Jarrett +// Definitions by: Jason Jarrett // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/vec3/index.d.ts b/types/vec3/index.d.ts index b35fe8ac8c..5b957f63a9 100644 --- a/types/vec3/index.d.ts +++ b/types/vec3/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Vec3 Library // Project: https://www.npmjs.com/package/vec3 -// Definitions by: Xavier Stouder +// Definitions by: Xavier Stouder // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export declare class Vec3 { diff --git a/types/velocity-animate/index.d.ts b/types/velocity-animate/index.d.ts index 84d91980e5..63574f7503 100644 --- a/types/velocity-animate/index.d.ts +++ b/types/velocity-animate/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Velocity 1.2.2 // Project: http://velocityjs.org/ -// Definitions by: Greg Smith +// Definitions by: Greg Smith // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/verror/index.d.ts b/types/verror/index.d.ts index a77a81f349..ec2cb0f698 100644 --- a/types/verror/index.d.ts +++ b/types/verror/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for verror 1.10 // Project: https://github.com/davepacheco/node-verror -// Definitions by: Sven Reglitzki , Maxime Toumi-M +// Definitions by: Sven Reglitzki , Maxime Toumi-M // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* diff --git a/types/vexflow/index.d.ts b/types/vexflow/index.d.ts index 01c8d75381..714cfe5c0a 100644 --- a/types/vexflow/index.d.ts +++ b/types/vexflow/index.d.ts @@ -1,8 +1,8 @@ // Type definitions for VexFlow v1.2.84 // Project: http://vexflow.com // Definitions by: Roman Quiring -// Sebastian Haas -// Basti Hoffmann +// Sebastian Haas +// Basti Hoffmann // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped //inconsistent namespace: this is a helper funtion from tables.js and should not pollute the global namespace! diff --git a/types/video.js/index.d.ts b/types/video.js/index.d.ts index 892390094d..db62520ac3 100644 --- a/types/video.js/index.d.ts +++ b/types/video.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Video.js 5.16 // Project: https://github.com/zencoder/video-js -// Definitions by: Vincent Bortone +// Definitions by: Vincent Bortone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // The Video.js API allows you to interact with the video through @@ -49,9 +49,9 @@ declare namespace videojs { size(width: number, height: number): Player; requestFullScreen(): Player; cancelFullScreen(): Player; - ready(callback: (this: Player) => void ): Player; - on(eventName: string, callback: (eventObject: Event) => void ): void; - off(eventName?: string, callback?: (eventObject: Event) => void ): void; + ready(callback: (this: Player) => void): Player; + on(eventName: string, callback: (eventObject: Event) => void): void; + off(eventName?: string, callback?: (eventObject: Event) => void): void; dispose(): void; addRemoteTextTrack(options: {}): HTMLTrackElement; removeRemoteTextTrack(track: HTMLTrackElement): void; diff --git a/types/vimeo/index.d.ts b/types/vimeo/index.d.ts index eb65d72d0f..d893bf2988 100644 --- a/types/vimeo/index.d.ts +++ b/types/vimeo/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Vimeo // Project: http://developer.vimeo.com/player/js-api -// Definitions by: Daz Wilkin +// Definitions by: Daz Wilkin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface VimeoParams { diff --git a/types/vimeo__player/tslint.json b/types/vimeo__player/tslint.json index 2750cc0197..849acb7fd0 100644 --- a/types/vimeo__player/tslint.json +++ b/types/vimeo__player/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } \ No newline at end of file +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "dt-header": false + } +} \ No newline at end of file diff --git a/types/vinyl-fs/index.d.ts b/types/vinyl-fs/index.d.ts index 08673da3bb..4e0ac3317b 100644 --- a/types/vinyl-fs/index.d.ts +++ b/types/vinyl-fs/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for vinyl-fs 2.4 // Project: https://github.com/wearefractal/vinyl-fs -// Definitions by: vvakame -// remisery +// Definitions by: vvakame +// remisery // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/vinyl/index.d.ts b/types/vinyl/index.d.ts index bfdb8e4bff..f6cd0c8609 100644 --- a/types/vinyl/index.d.ts +++ b/types/vinyl/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for vinyl 2.0.0 // Project: https://github.com/gulpjs/vinyl -// Definitions by: vvakame , jedmao , Georgii Dolzhykov +// Definitions by: vvakame , jedmao , Georgii Dolzhykov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/vkbeautify/index.d.ts b/types/vkbeautify/index.d.ts index 292f0ce4e7..01e346f0d6 100644 --- a/types/vkbeautify/index.d.ts +++ b/types/vkbeautify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for vkbeautify 0.99 // Project: https://github.com/aabluedragon/vkbeautify -// Definitions by: Tim Schraepen +// Definitions by: Tim Schraepen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Original project: https://github.com/vkiryukhin/vkBeautify diff --git a/types/vortex-web-client/index.d.ts b/types/vortex-web-client/index.d.ts index d878a1af6c..546f14a591 100644 --- a/types/vortex-web-client/index.d.ts +++ b/types/vortex-web-client/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Vortex Web 1.2 // Project: http://www.prismtech.com/vortex/vortex-web -// Definitions by: Stefan Profanter +// Definitions by: Stefan Profanter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* diff --git a/types/voximplant-websdk/index.d.ts b/types/voximplant-websdk/index.d.ts index 670b13b46c..825f69795e 100644 --- a/types/voximplant-websdk/index.d.ts +++ b/types/voximplant-websdk/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for VoxImplant Web SDK 3.0.x // Project: http://voximplant.com/ -// Definitions by: Alexey Aylarov +// Definitions by: Alexey Aylarov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = VoxImplant; diff --git a/types/w2ui/index.d.ts b/types/w2ui/index.d.ts index c47f940666..57be544ff3 100644 --- a/types/w2ui/index.d.ts +++ b/types/w2ui/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for w2ui 1.4.3 // Project: http://w2ui.com/ -// Definitions by: Valentin Robert +// Definitions by: Valentin Robert // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/weapp-api/index.d.ts b/types/weapp-api/index.d.ts index cb9d00383d..f22ed51765 100644 --- a/types/weapp-api/index.d.ts +++ b/types/weapp-api/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for weapp // Project: https://mp.weixin.qq.com/debug/wxadoc/dev/index.html -// Definitions by: vargeek +// Definitions by: vargeek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace wx { diff --git a/types/web-animations-js/index.d.ts b/types/web-animations-js/index.d.ts index 5441a7bb98..2424e93e92 100644 --- a/types/web-animations-js/index.d.ts +++ b/types/web-animations-js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for web-animations-js 2.2 // Project: https://github.com/web-animations/web-animations-js -// Definitions by: Kristian Moerch +// Definitions by: Kristian Moerch // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped type AnimationEffectTimingFillMode = "none" | "forwards" | "backwards" | "both" | "auto"; diff --git a/types/web-bluetooth/index.d.ts b/types/web-bluetooth/index.d.ts index f30269239c..912a7fdd55 100644 --- a/types/web-bluetooth/index.d.ts +++ b/types/web-bluetooth/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Web Bluetooth // Project: https://webbluetoothcg.github.io/web-bluetooth/ -// Definitions by: Uri Shaked +// Definitions by: Uri Shaked // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped type BluetoothServiceUUID = number | string; diff --git a/types/webcrypto/index.d.ts b/types/webcrypto/index.d.ts index 954b4d0fc9..07610c37f3 100644 --- a/types/webcrypto/index.d.ts +++ b/types/webcrypto/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for WebCrypto // Project: http://www.w3.org/TR/WebCryptoAPI/ -// Definitions by: Lucas Dixon +// Definitions by: Lucas Dixon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // DEPRECATED: use TypeScript 1.5.3 diff --git a/types/webfontloader/index.d.ts b/types/webfontloader/index.d.ts index bffe96c560..b7662afa68 100644 --- a/types/webfontloader/index.d.ts +++ b/types/webfontloader/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for typekit-webfontloader 1.6.4 // Project: https://github.com/typekit/webfontloader -// Definitions by: doskallemaskin +// Definitions by: doskallemaskin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = WebFont; diff --git a/types/webgl-ext/index.d.ts b/types/webgl-ext/index.d.ts index 56a26e3327..3f0da0c679 100644 --- a/types/webgl-ext/index.d.ts +++ b/types/webgl-ext/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for WebGL Extensions // Project: http://webgl.org/ -// Definitions by: Arthur Langereis +// Definitions by: Arthur Langereis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/webgl-ext // These definitions go beyond those already defined in TS 1.6.2 stdlib diff --git a/types/webgl2/index.d.ts b/types/webgl2/index.d.ts index fe1846a120..690f11cf50 100644 --- a/types/webgl2/index.d.ts +++ b/types/webgl2/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for WebGL 2, Editor's Draft Fri Feb 24 16:10:18 2017 -0800 // Project: https://www.khronos.org/registry/webgl/specs/latest/2.0/ -// Definitions by: Nico Kemnitz +// Definitions by: Nico Kemnitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface HTMLCanvasElement extends HTMLElement { diff --git a/types/webpack-chain/index.d.ts b/types/webpack-chain/index.d.ts index b062c42548..4a13f91530 100644 --- a/types/webpack-chain/index.d.ts +++ b/types/webpack-chain/index.d.ts @@ -83,7 +83,7 @@ declare namespace Config { class Module extends ChainedMap { rules: TypedChainedMap; rule(name: string): Rule; - noParse(noParse: RegExp | RegExp[] | ((contentPath: string) => boolean )): this; + noParse(noParse: RegExp | RegExp[] | ((contentPath: string) => boolean)): this; } class Output extends ChainedMap { diff --git a/types/webpack/tslint.json b/types/webpack/tslint.json index 3db14f85ea..9d2d6ce987 100644 --- a/types/webpack/tslint.json +++ b/types/webpack/tslint.json @@ -1 +1,9 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-unnecessary-qualifier": false, + "no-void-expression": false, + "space-within-parens": false + } +} diff --git a/types/wolfy87-eventemitter/index.d.ts b/types/wolfy87-eventemitter/index.d.ts index 07308e2210..8932d8db7a 100644 --- a/types/wolfy87-eventemitter/index.d.ts +++ b/types/wolfy87-eventemitter/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for wolfy87-eventemitter v4.2.9 // Project: https://github.com/Wolfy87/EventEmitter -// Definitions by: ryiwamoto +// Definitions by: ryiwamoto // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class EventEmitter extends Wolfy87EventEmitter.EventEmitter {} diff --git a/types/write-file-atomic/index.d.ts b/types/write-file-atomic/index.d.ts index 6e2226906c..3c27330790 100644 --- a/types/write-file-atomic/index.d.ts +++ b/types/write-file-atomic/index.d.ts @@ -11,7 +11,7 @@ declare function writeFile(filename: string, data: string | Buffer, options: wri declare function writeFile(filename: string, data: string | Buffer, callback: (error?: Error) => void): void; declare namespace writeFile { - function sync(filename: string, data: string | Buffer, options?: writeFile.Options): void; + function sync(filename: string, data: string | Buffer, options?: Options): void; interface Options { chown?: { diff --git a/types/wu/index.d.ts b/types/wu/index.d.ts index 733daa7141..640450cd81 100644 --- a/types/wu/index.d.ts +++ b/types/wu/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for wu.js 2.1 // Project: https://fitzgen.github.io/wu.js/ -// Definitions by: phiresky +// Definitions by: phiresky // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Wu { diff --git a/types/wu/tslint.json b/types/wu/tslint.json index 3db14f85ea..26a0c302a8 100644 --- a/types/wu/tslint.json +++ b/types/wu/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-void-expression": false + } +} diff --git a/types/wu/wu-tests.ts b/types/wu/wu-tests.ts index 90657734e7..385190d417 100644 --- a/types/wu/wu-tests.ts +++ b/types/wu/wu-tests.ts @@ -226,7 +226,7 @@ describe("wu.invoke", () => { this.name = name; } Greeter.prototype.greet = function(tail: string) { - return "hello " + this.name + tail; + return `hello ${this.name}${tail}`; }; assert.eqArray(["hello world!", "hello test!"], wu.invoke("greet", "!", diff --git a/types/wx-js-sdk-dt/index.d.ts b/types/wx-js-sdk-dt/index.d.ts index ec93e37efa..3e95299cd7 100644 --- a/types/wx-js-sdk-dt/index.d.ts +++ b/types/wx-js-sdk-dt/index.d.ts @@ -257,7 +257,7 @@ declare namespace wx { /** * 成功后的回调, localData是图片的base64数据,可以用img标签显示 */ - success(res: { localData: string} ): void; + success(res: { localData: string}): void; } /** diff --git a/types/x-editable/index.d.ts b/types/x-editable/index.d.ts index cfee505b95..73074d381e 100644 --- a/types/x-editable/index.d.ts +++ b/types/x-editable/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for X-Editable v1.5.1 // Project: http://vitalets.github.io/x-editable/index.html -// Definitions by: Chris Kirby +// Definitions by: Chris Kirby // Definitions: https://github.com/sirkirby/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/xdate/index.d.ts b/types/xdate/index.d.ts index 1d3089d84b..6445691ff4 100644 --- a/types/xdate/index.d.ts +++ b/types/xdate/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for XDate 0.8 // Project: http://arshaw.com/xdate/ -// Definitions by: yamada28go +// Definitions by: yamada28go // Definitions: https://github.com/daptiv/DefinitelyTyped diff --git a/types/xlsx/index.d.ts b/types/xlsx/index.d.ts index 3f3e45f297..28de67c3de 100644 --- a/types/xlsx/index.d.ts +++ b/types/xlsx/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for xlsx // Project: https://github.com/SheetJS/js-xlsx -// Definitions by: themauveavenger +// Definitions by: themauveavenger // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** Attempts to read filename and parse */ diff --git a/types/xml-parser/index.d.ts b/types/xml-parser/index.d.ts index 36d2756b23..388a70431a 100644 --- a/types/xml-parser/index.d.ts +++ b/types/xml-parser/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for xml-parser 1.2.1 // Project: https://github.com/segmentio/xml-parser -// Definitions by: Matt Frantz +// Definitions by: Matt Frantz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/xmlpoke/index.d.ts b/types/xmlpoke/index.d.ts index 5e0b33948f..d8566d4364 100644 --- a/types/xmlpoke/index.d.ts +++ b/types/xmlpoke/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for xmlpoke 0.1.12 // Project: https://github.com/mikeobrien/node-xmlpoke -// Definitions by: Garth Kidd +// Definitions by: Garth Kidd // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/xrm/index.d.ts b/types/xrm/index.d.ts index 3b8a239b96..d20992e385 100644 --- a/types/xrm/index.d.ts +++ b/types/xrm/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Microsoft Dynamics xRM API 8.2 // Project: http://www.microsoft.com/en-us/download/details.aspx?id=44567 -// Definitions by: David Berry , Matt Ngan , Markus Mauch , Daryl LaBar , Tully H +// Definitions by: David Berry , Matt Ngan , Markus Mauch , Daryl LaBar , Tully H // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/xsd-schema-validator/index.d.ts b/types/xsd-schema-validator/index.d.ts index c4fd02e8f5..0448d356c3 100644 --- a/types/xsd-schema-validator/index.d.ts +++ b/types/xsd-schema-validator/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for xsd-schema-validator 0.5 // Project: https://github.com/nikku/node-xsd-schema-validator#readme -// Definitions by: Zlatko Andonovski +// Definitions by: Zlatko Andonovski // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/yargs/tslint.json b/types/yargs/tslint.json index 3db14f85ea..fd2834499c 100644 --- a/types/yargs/tslint.json +++ b/types/yargs/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-object-literal-type-assertion": false + } +} diff --git a/types/yargs/yargs-tests.ts b/types/yargs/yargs-tests.ts index 65325900c8..3f5b8829aa 100644 --- a/types/yargs/yargs-tests.ts +++ b/types/yargs/yargs-tests.ts @@ -628,7 +628,7 @@ function Argv$commandArray() { } function Argv$check() { - let ya = yargs + const ya = yargs .check((argv, aliases) => {}) .check((argv, aliases) => {}, false); } diff --git a/types/yog-log/tslint.json b/types/yog-log/tslint.json index 2750cc0197..607d68e050 100644 --- a/types/yog-log/tslint.json +++ b/types/yog-log/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } \ No newline at end of file +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-object-literal-type-assertion": false + } +} \ No newline at end of file diff --git a/types/yog-log/yog-log-tests.ts b/types/yog-log/yog-log-tests.ts index c6129dd1eb..90dd730cfb 100644 --- a/types/yog-log/yog-log-tests.ts +++ b/types/yog-log/yog-log-tests.ts @@ -16,7 +16,7 @@ const cookie_value = log.getCookie('test'); const getLogFile = log.getLogFile(0); const log_format = log.getLogFormat('ACCESS'); -const logid = log.getLogID( {}, 'test'); +const logid = log.getLogID( {}, 'test'); const intlevel = log.getLogLevelInt('ACCESS'); const prfix = log.getLogPrefix(); const log_str = log.getLogString('test'); diff --git a/types/yog2-kernel/tslint.json b/types/yog2-kernel/tslint.json index b3fc134bd9..9f8018d7d6 100644 --- a/types/yog2-kernel/tslint.json +++ b/types/yog2-kernel/tslint.json @@ -1,8 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "only-arrow-functions": [ - false - ] + // TODOs + "no-object-literal-type-assertion": false, + "only-arrow-functions": false } } \ No newline at end of file diff --git a/types/yog2-kernel/yog2-kernel-tests.ts b/types/yog2-kernel/yog2-kernel-tests.ts index fcccdf8dcf..a53b3c4dad 100644 --- a/types/yog2-kernel/yog2-kernel-tests.ts +++ b/types/yog2-kernel/yog2-kernel-tests.ts @@ -21,11 +21,11 @@ const router = {}; ( router.action("test")).get; const handler1 = router.wrapAsync(function() { }); -const handler21 = router.wrapAsync(function( req: yog2Kernel.Request ) { }); -const handler22 = router.wrapAsync(function( req: Request ) { }); -const handler31 = router.wrapAsync(function( req: yog2Kernel.Request, resp: yog2Kernel.Response ) { }); -const handler33 = router.wrapAsync(function( req: Request, resp: Response ) { }); -const handler4 = router.wrapAsync(function( req: Request, resp: Response, next: NextFunction ) { }); +const handler21 = router.wrapAsync(function(req: yog2Kernel.Request) { }); +const handler22 = router.wrapAsync(function(req: Request) { }); +const handler31 = router.wrapAsync(function(req: yog2Kernel.Request, resp: yog2Kernel.Response) { }); +const handler33 = router.wrapAsync(function(req: Request, resp: Response) { }); +const handler4 = router.wrapAsync(function(req: Request, resp: Response, next: NextFunction) { }); yog.bootstrap({}); diff --git a/types/youtube/index.d.ts b/types/youtube/index.d.ts index 11e2a4e30d..a636894060 100644 --- a/types/youtube/index.d.ts +++ b/types/youtube/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for YouTube // Project: https://developers.google.com/youtube/ -// Definitions by: Daz Wilkin , +// Definitions by: Daz Wilkin , // Ian Obermiller , // Josh Goldberg // Eliot Fallon diff --git a/types/zepto/index.d.ts b/types/zepto/index.d.ts index acb83b82bb..1a7ed91fae 100644 --- a/types/zepto/index.d.ts +++ b/types/zepto/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Zepto 1.0 // Project: http://zeptojs.com/ -// Definitions by: Josh Baldwin +// Definitions by: Josh Baldwin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /*