(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