diff --git a/3d-bin-packing/3d-bin-packing.d.ts b/3d-bin-packing/index.d.ts similarity index 100% rename from 3d-bin-packing/3d-bin-packing.d.ts rename to 3d-bin-packing/index.d.ts diff --git a/3d-bin-packing/tsconfig.json b/3d-bin-packing/tsconfig.json index ddad71a1fe..3d26767e8a 100644 --- a/3d-bin-packing/tsconfig.json +++ b/3d-bin-packing/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "3d-bin-packing.d.ts", + "index.d.ts", "3d-bin-packing-tests.ts" ] } \ No newline at end of file diff --git a/angular-q-spread/angular-q-spread.d.ts b/angular-q-spread/index.d.ts similarity index 100% rename from angular-q-spread/angular-q-spread.d.ts rename to angular-q-spread/index.d.ts diff --git a/angular-q-spread/tsconfig.json b/angular-q-spread/tsconfig.json index 3461eaa2db..3a3080cf81 100644 --- a/angular-q-spread/tsconfig.json +++ b/angular-q-spread/tsconfig.json @@ -1,6 +1,6 @@ { "files": [ - "angular-q-spread.d.ts", + "index.d.ts", "angular-q-spread-tests.ts" ], "compilerOptions": { diff --git a/angular-websocket/angular-websocket-tests.ts b/angular-websocket/angular-websocket-tests.ts index e7cb30fe49..1df77b7a2a 100644 --- a/angular-websocket/angular-websocket-tests.ts +++ b/angular-websocket/angular-websocket-tests.ts @@ -1,5 +1,3 @@ -/// - let dummySocket: ng.websocket.IWebSocket; let dummyPromise: ng.IPromise; let dummyScope: ng.IScope; diff --git a/angular-websocket/angular-websocket.d.ts b/angular-websocket/index.d.ts similarity index 100% rename from angular-websocket/angular-websocket.d.ts rename to angular-websocket/index.d.ts diff --git a/angular-websocket/tsconfig.json b/angular-websocket/tsconfig.json index a340f7ffbd..e278ba9a25 100644 --- a/angular-websocket/tsconfig.json +++ b/angular-websocket/tsconfig.json @@ -1,6 +1,6 @@ { "files": [ - "angular-websocket.d.ts", + "index.d.ts", "angular-websocket-tests.ts" ], "compilerOptions": { diff --git a/angular-xeditable/angular-xeditable-tests.ts b/angular-xeditable/angular-xeditable-tests.ts index 9264c47f41..57a3e53863 100644 --- a/angular-xeditable/angular-xeditable-tests.ts +++ b/angular-xeditable/angular-xeditable-tests.ts @@ -1,9 +1,7 @@ -/// - -var myApp = angular.module('testModule', ['xeditable']); +var myApp = angular.module('testModule', ['xeditable']); myApp.run(["editableOptions", (editableOptions: angular.xeditable.IEditableOptions) => { - + editableOptions.activate = "select"; editableOptions.activationEvent = "click"; editableOptions.blurElem = "ignore"; diff --git a/angular-xeditable/angular-xeditable.d.ts b/angular-xeditable/index.d.ts similarity index 100% rename from angular-xeditable/angular-xeditable.d.ts rename to angular-xeditable/index.d.ts diff --git a/angular-xeditable/tsconfig.json b/angular-xeditable/tsconfig.json index e81407b730..f85f2b4cef 100644 --- a/angular-xeditable/tsconfig.json +++ b/angular-xeditable/tsconfig.json @@ -1,6 +1,6 @@ { "files": [ - "angular-xeditable.d.ts", + "index.d.ts", "angular-xeditable-tests.ts" ], "compilerOptions": { diff --git a/assert/index.d.ts b/assert/index.d.ts index abd31688f1..f358833165 100644 --- a/assert/index.d.ts +++ b/assert/index.d.ts @@ -1,6 +1,5 @@ // Type definitions for assert and power-assert -// Project: https://github.com/Jxck/assert -// Project: https://github.com/twada/power-assert +// Project: https://github.com/Jxck/assert, https://github.com/twada/power-assert // Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/bootstrap-fileinput/bootstrap-fileinput.d.ts b/bootstrap-fileinput/index.d.ts similarity index 100% rename from bootstrap-fileinput/bootstrap-fileinput.d.ts rename to bootstrap-fileinput/index.d.ts diff --git a/bootstrap-fileinput/tsconfig.json b/bootstrap-fileinput/tsconfig.json index 5b7c6fc2bf..126718d584 100644 --- a/bootstrap-fileinput/tsconfig.json +++ b/bootstrap-fileinput/tsconfig.json @@ -13,6 +13,6 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "bootstrap-fileinput.d.ts" + "index.d.ts" ] } \ No newline at end of file diff --git a/chai-dom/chai-dom-tests.ts b/chai-dom/chai-dom-tests.ts index 2fca54765e..61b3b3c600 100644 --- a/chai-dom/chai-dom-tests.ts +++ b/chai-dom/chai-dom-tests.ts @@ -1,5 +1,3 @@ -/// - import * as chai from 'chai'; import * as chaiDom from 'chai-dom'; diff --git a/chai-dom/chai-dom.d.ts b/chai-dom/index.d.ts similarity index 100% rename from chai-dom/chai-dom.d.ts rename to chai-dom/index.d.ts diff --git a/chai-dom/tsconfig.json b/chai-dom/tsconfig.json index 79855c3e09..1e6e575470 100644 --- a/chai-dom/tsconfig.json +++ b/chai-dom/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "chai-dom.d.ts", + "index.d.ts", "chai-dom-tests.ts" ] } \ No newline at end of file diff --git a/chai-enzyme/chai-enzyme-tests.tsx b/chai-enzyme/chai-enzyme-tests.tsx index 0e491a7ba7..a70f7e7f96 100644 --- a/chai-enzyme/chai-enzyme-tests.tsx +++ b/chai-enzyme/chai-enzyme-tests.tsx @@ -1,5 +1,4 @@ /// -/// /// /// diff --git a/chai-enzyme/chai-enzyme.d.ts b/chai-enzyme/index.d.ts similarity index 100% rename from chai-enzyme/chai-enzyme.d.ts rename to chai-enzyme/index.d.ts diff --git a/chai-enzyme/tsconfig.json b/chai-enzyme/tsconfig.json index 81fa4a5105..6c0238d9d2 100644 --- a/chai-enzyme/tsconfig.json +++ b/chai-enzyme/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "chai-enzyme.d.ts", + "index.d.ts", "chai-enzyme-tests.tsx" ] } \ No newline at end of file diff --git a/chai-oequal/chai-oequal-tests.ts b/chai-oequal/chai-oequal-tests.ts new file mode 100644 index 0000000000..ae7dbdc29f --- /dev/null +++ b/chai-oequal/chai-oequal-tests.ts @@ -0,0 +1,35 @@ +import Chai = require('chai'); +import ChaiOequal = require('chai-oequal'); + +Chai.use(ChaiOequal); + +import { + expect, + assert +} from 'chai'; + +expect({ + equals: () => true, +}).to.be.oequal({}); +expect({ + customequals: () => true, +}).to.be.oequal({}, 'customequals'); +expect({ + equals: () => true, +}).to.be.oeql({}); +expect({ + equals: () => true, +}).to.be.oeq({}); + +assert.oequal({ + equals: () => true, +}, {}); +assert.oequal({ + customequals: () => true, +}, {}, 'customequals'); +assert.oeql({ + equals: () => true, +}, {}); +assert.oeq({ + equals: () => true, +}, {}); diff --git a/chai-oequal/index.d.ts b/chai-oequal/index.d.ts new file mode 100644 index 0000000000..bf5f9e201f --- /dev/null +++ b/chai-oequal/index.d.ts @@ -0,0 +1,27 @@ +// Type definitions for chai-oequal +// Project: https://github.com/wrwrwr/chai-oequal +// Definitions by: Mizunashi Mana +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace Chai { + // For BDD APIs + interface Assertion extends LanguageChains, NumericComparison, TypeComparison { + oequal(result: any, method?: string): Equal; + oeql(result: any, method?: string): Equal; + oeq(result: any, method?: string): Equal; + } + + // For Assert APIs + interface Assert { + oequal(act: any, exp: any, method?: string): Equal; + oeql(act: any, exp: any, method?: string): Equal; + oeq(act: any, exp: any, method?: string): Equal; + } +} + +declare module 'chai-oequal' { + function chaiOequal(chai: any, utils: any): void; + export = chaiOequal; +} diff --git a/chai-oequal/tsconfig.json b/chai-oequal/tsconfig.json new file mode 100644 index 0000000000..cfeb14eeee --- /dev/null +++ b/chai-oequal/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "chai-oequal-tests.ts" + ] +} diff --git a/chai-oequal/tslint.json b/chai-oequal/tslint.json new file mode 100644 index 0000000000..cfdf2986e5 --- /dev/null +++ b/chai-oequal/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "../tslint.json", + "rules": { + "no-single-declare-module": false + } +} diff --git a/commander/commander-tests.ts b/commander/commander-tests.ts index f6f3918f6a..78bd873782 100644 --- a/commander/commander-tests.ts +++ b/commander/commander-tests.ts @@ -79,6 +79,13 @@ program console.log('unknown option is allowed'); }); +program + .version('0.0.1') + .arguments(' [env]') + .action(function (cmd, env) { + console.log(cmd, env); + }); + program.parse(process.argv); console.log('stuff'); diff --git a/commander/index.d.ts b/commander/index.d.ts index e082fcebb2..15a3246710 100644 --- a/commander/index.d.ts +++ b/commander/index.d.ts @@ -74,6 +74,11 @@ declare namespace commander { */ command(name:string, desc?:string, opts?: any):ICommand; + /** + * Set / get the arguments usage `str`. + */ + arguments(str: string):ICommand; + /** * Add an implicit `help [cmd]` subcommand * which invokes `--help` for the given command. diff --git a/commangular/commangular.d.ts b/commangular/index.d.ts similarity index 100% rename from commangular/commangular.d.ts rename to commangular/index.d.ts diff --git a/commangular/tsconfig.json b/commangular/tsconfig.json index e52f7e1a12..1cc876f08d 100644 --- a/commangular/tsconfig.json +++ b/commangular/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "commangular.d.ts", + "index.d.ts", "commangular-mock.d.ts" ] } \ No newline at end of file diff --git a/connect-redis/connect-redis-tests.ts b/connect-redis/connect-redis-tests.ts index 73e0e4d8f7..ed21f3b4be 100644 --- a/connect-redis/connect-redis-tests.ts +++ b/connect-redis/connect-redis-tests.ts @@ -1,4 +1,3 @@ -/// /// import * as connectRedis from "connect-redis"; diff --git a/connect-redis/connect-redis.d.ts b/connect-redis/index.d.ts similarity index 100% rename from connect-redis/connect-redis.d.ts rename to connect-redis/index.d.ts diff --git a/connect-redis/tsconfig.json b/connect-redis/tsconfig.json index 441b3c70c6..dadee4e1f8 100644 --- a/connect-redis/tsconfig.json +++ b/connect-redis/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "connect-redis.d.ts", + "index.d.ts", "connect-redis-tests.ts" ] } diff --git a/csv-parse/csv-parse-tests.ts b/csv-parse/csv-parse-tests.ts index 3f552f1319..21df979d82 100644 --- a/csv-parse/csv-parse-tests.ts +++ b/csv-parse/csv-parse-tests.ts @@ -1,5 +1,3 @@ -/// - import parse = require('csv-parse'); function callbackAPITest() { @@ -38,7 +36,7 @@ import fs = require('fs'); function pipeFunctionTest() { var transform = require('stream-transform'); - + var output:any = []; var parser = parse({delimiter: ':'}) var input = fs.createReadStream('/etc/passwd'); diff --git a/csv-parse/csv-parse.d.ts b/csv-parse/index.d.ts similarity index 100% rename from csv-parse/csv-parse.d.ts rename to csv-parse/index.d.ts diff --git a/csv-parse/tsconfig.json b/csv-parse/tsconfig.json index 9e359a8737..b3e05f504a 100644 --- a/csv-parse/tsconfig.json +++ b/csv-parse/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "csv-parse.d.ts", + "index.d.ts", "csv-parse-tests.ts" ] } \ No newline at end of file diff --git a/d3-box/d3-box-tests.ts b/d3-box/d3-box-tests.ts index 191962ff13..ab5ca799ba 100644 --- a/d3-box/d3-box-tests.ts +++ b/d3-box/d3-box-tests.ts @@ -1,6 +1,3 @@ -/// -/// - // Inspired by http://bl.ocks.org/mbostock/4061502 function iqr(k: number) { diff --git a/d3-box/d3-box.d.ts b/d3-box/index.d.ts similarity index 93% rename from d3-box/d3-box.d.ts rename to d3-box/index.d.ts index 4bc837df31..fdc304a68e 100644 --- a/d3-box/d3-box.d.ts +++ b/d3-box/index.d.ts @@ -3,9 +3,9 @@ // Definitions by: Linkun Chen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +import * as d3 from "d3"; -declare namespace d3 { +declare module "d3" { export function box(): Box; interface Box { diff --git a/d3-box/package.json b/d3-box/package.json new file mode 100644 index 0000000000..ca67ffd471 --- /dev/null +++ b/d3-box/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@types/d3": "^3.5.36" + } +} \ No newline at end of file diff --git a/d3-box/tsconfig.json b/d3-box/tsconfig.json new file mode 100644 index 0000000000..ac2a5178dc --- /dev/null +++ b/d3-box/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": true, + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3-box-tests.ts" + ] +} diff --git a/d3.slider/d3.slider-tests.ts b/d3.slider/d3.slider-tests.ts index e0e0473059..30f5900d41 100644 --- a/d3.slider/d3.slider-tests.ts +++ b/d3.slider/d3.slider-tests.ts @@ -1,6 +1,3 @@ -/// -/// - d3.select('#slider1').call(d3.slider()); d3.select('#slider2').call(d3.slider().value( [ 10, 25 ] )); d3.select('#slider3').call(d3.slider().axis(true).value( [ 10, 25 ] ) diff --git a/d3.slider/d3.slider.d.ts b/d3.slider/index.d.ts similarity index 94% rename from d3.slider/d3.slider.d.ts rename to d3.slider/index.d.ts index d459f4f04c..7b0dfcc5c2 100644 --- a/d3.slider/d3.slider.d.ts +++ b/d3.slider/index.d.ts @@ -3,9 +3,9 @@ // Definitions by: Linkun Chen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// +import * as d3 from "d3"; -declare namespace d3 { +declare module "d3" { export function slider(): Slider; interface Slider { diff --git a/d3.slider/package.json b/d3.slider/package.json new file mode 100644 index 0000000000..ca67ffd471 --- /dev/null +++ b/d3.slider/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@types/d3": "^3.5.36" + } +} \ No newline at end of file diff --git a/d3.slider/tsconfig.json b/d3.slider/tsconfig.json new file mode 100644 index 0000000000..c56fab950f --- /dev/null +++ b/d3.slider/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": true, + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "d3.slider-tests.ts" + ] +} \ No newline at end of file diff --git a/d3kit/d3kit-tests.ts b/d3kit/d3kit-tests.ts index 5eab2a4e79..d49891822b 100644 --- a/d3kit/d3kit-tests.ts +++ b/d3kit/d3kit-tests.ts @@ -1,4 +1,3 @@ -/// /// /// /// diff --git a/d3kit/d3kit.d.ts b/d3kit/index.d.ts similarity index 100% rename from d3kit/d3kit.d.ts rename to d3kit/index.d.ts diff --git a/d3kit/tsconfig.json b/d3kit/tsconfig.json index 1937b920e2..a60dcbb573 100644 --- a/d3kit/tsconfig.json +++ b/d3kit/tsconfig.json @@ -14,7 +14,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "d3kit.d.ts", + "index.d.ts", "d3kit-tests.ts" ] } diff --git a/daterangepicker/daterangepicker-tests.ts b/daterangepicker/daterangepicker-tests.ts index 0b8051b06a..38264bb0b3 100644 --- a/daterangepicker/daterangepicker-tests.ts +++ b/daterangepicker/daterangepicker-tests.ts @@ -1,4 +1,3 @@ -/// import moment = require("moment") function tests_simple() { diff --git a/daterangepicker/daterangepicker.d.ts b/daterangepicker/index.d.ts similarity index 98% rename from daterangepicker/daterangepicker.d.ts rename to daterangepicker/index.d.ts index 88cce7c0a2..68ae67c485 100644 --- a/daterangepicker/daterangepicker.d.ts +++ b/daterangepicker/index.d.ts @@ -167,6 +167,5 @@ declare namespace daterangepicker { } } -declare module "daterangepicker" { - export = daterangepicker; -} +export = daterangepicker; +export as namespace daterangepicker; diff --git a/daterangepicker/tsconfig.json b/daterangepicker/tsconfig.json index cbf48c5f61..77e00d0845 100644 --- a/daterangepicker/tsconfig.json +++ b/daterangepicker/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "daterangepicker.d.ts", + "index.d.ts", "daterangepicker-tests.ts" ] } \ No newline at end of file diff --git a/df-visible/df-visible-tests.ts b/df-visible/df-visible-tests.ts index c5a8f1bf2b..b4fe92fdf3 100644 --- a/df-visible/df-visible-tests.ts +++ b/df-visible/df-visible-tests.ts @@ -1,5 +1,3 @@ -/// - // https://github.com/customd/jquery-visible/blob/master/examples/demo-basic.html $(function(){ diff --git a/df-visible/df-visible.d.ts b/df-visible/index.d.ts similarity index 100% rename from df-visible/df-visible.d.ts rename to df-visible/index.d.ts diff --git a/df-visible/tsconfig.json b/df-visible/tsconfig.json index 49c372fd65..93d23458ce 100644 --- a/df-visible/tsconfig.json +++ b/df-visible/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "df-visible.d.ts", + "index.d.ts", "df-visible-tests.ts" ] } \ No newline at end of file diff --git a/dva/dva.d.ts b/dva/index.d.ts similarity index 100% rename from dva/dva.d.ts rename to dva/index.d.ts diff --git a/dva/tsconfig.json b/dva/tsconfig.json index 8c73ec457e..b9093241bb 100644 --- a/dva/tsconfig.json +++ b/dva/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "dva.d.ts", + "index.d.ts", "dva-tests.tsx" ] } \ No newline at end of file diff --git a/epub/epub-tests.ts b/epub/epub-tests.ts index 6e61a26634..a69c543908 100644 --- a/epub/epub-tests.ts +++ b/epub/epub-tests.ts @@ -1,4 +1,3 @@ -/// import EPub = require("epub"); var epub = new EPub("./file.epub"); diff --git a/epub/epub.d.ts b/epub/index.d.ts similarity index 100% rename from epub/epub.d.ts rename to epub/index.d.ts diff --git a/epub/tsconfig.json b/epub/tsconfig.json index eda2b3868b..d1f91f6e53 100644 --- a/epub/tsconfig.json +++ b/epub/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "epub.d.ts", + "index.d.ts", "epub-tests.ts" ] } \ No newline at end of file diff --git a/exorcist/exorcist-tests.ts b/exorcist/exorcist-tests.ts index 26a1be0e07..3ac0d35c28 100644 --- a/exorcist/exorcist-tests.ts +++ b/exorcist/exorcist-tests.ts @@ -1,5 +1,3 @@ -/// - import exorcist = require("exorcist"); module ExorcistTest { diff --git a/exorcist/exorcist.d.ts b/exorcist/index.d.ts similarity index 100% rename from exorcist/exorcist.d.ts rename to exorcist/index.d.ts diff --git a/exorcist/tsconfig.json b/exorcist/tsconfig.json index e0ca3628a8..c57b04865a 100644 --- a/exorcist/tsconfig.json +++ b/exorcist/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "exorcist.d.ts", + "index.d.ts", "exorcist-tests.ts" ] } \ No newline at end of file diff --git a/express-domain-middleware/express-domain-middleware-tests.ts b/express-domain-middleware/express-domain-middleware-tests.ts index 446b732353..b506726ada 100644 --- a/express-domain-middleware/express-domain-middleware-tests.ts +++ b/express-domain-middleware/express-domain-middleware-tests.ts @@ -1,2 +1 @@ -/// import fn = require('express-domain-middleware'); diff --git a/express-domain-middleware/express-domain-middleware.d.ts b/express-domain-middleware/index.d.ts similarity index 100% rename from express-domain-middleware/express-domain-middleware.d.ts rename to express-domain-middleware/index.d.ts diff --git a/express-domain-middleware/tsconfig.json b/express-domain-middleware/tsconfig.json index 456e26404a..48ef657c86 100644 --- a/express-domain-middleware/tsconfig.json +++ b/express-domain-middleware/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "express-domain-middleware.d.ts", + "index.d.ts", "express-domain-middleware-tests.ts" ] } \ No newline at end of file diff --git a/fill-pdf/fill-pdf-tests.ts b/fill-pdf/fill-pdf-tests.ts index e5b34cd943..44b4f23531 100644 --- a/fill-pdf/fill-pdf-tests.ts +++ b/fill-pdf/fill-pdf-tests.ts @@ -1,5 +1,3 @@ -/// - import * as fillPdf from 'fill-pdf'; var formData: fillPdf.FormData = { FieldName: 'Text to put into form field' }; diff --git a/fill-pdf/fill-pdf.d.ts b/fill-pdf/index.d.ts similarity index 100% rename from fill-pdf/fill-pdf.d.ts rename to fill-pdf/index.d.ts diff --git a/fill-pdf/tsconfig.json b/fill-pdf/tsconfig.json index 51c99ab9de..6190a7ae98 100644 --- a/fill-pdf/tsconfig.json +++ b/fill-pdf/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "fill-pdf.d.ts", + "index.d.ts", "fill-pdf-tests.ts" ] } \ No newline at end of file diff --git a/fluent-ffmpeg/fluent-ffmpeg-tests.ts b/fluent-ffmpeg/fluent-ffmpeg-tests.ts index 8b1031ff58..112d6de09b 100644 --- a/fluent-ffmpeg/fluent-ffmpeg-tests.ts +++ b/fluent-ffmpeg/fluent-ffmpeg-tests.ts @@ -1,5 +1,3 @@ -/// - import ffmpeg = require("fluent-ffmpeg") let source: string, format: string, output: string diff --git a/fluent-ffmpeg/fluent-ffmpeg.d.ts b/fluent-ffmpeg/index.d.ts similarity index 100% rename from fluent-ffmpeg/fluent-ffmpeg.d.ts rename to fluent-ffmpeg/index.d.ts diff --git a/fluent-ffmpeg/tsconfig.json b/fluent-ffmpeg/tsconfig.json index 3e2fd3a624..e5256168e5 100644 --- a/fluent-ffmpeg/tsconfig.json +++ b/fluent-ffmpeg/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "fluent-ffmpeg.d.ts", + "index.d.ts", "fluent-ffmpeg-tests.ts" ] } \ No newline at end of file diff --git a/fullpage.js/fullpage.js-tests.ts b/fullpage.js/fullpage.js-tests.ts index 31e66fdd60..b8990ea9c8 100644 --- a/fullpage.js/fullpage.js-tests.ts +++ b/fullpage.js/fullpage.js-tests.ts @@ -1,5 +1,3 @@ -/// - function test_public_methods() { $(() => { $('#fullpage').fullpage({ diff --git a/fullpage.js/fullpage.js.d.ts b/fullpage.js/index.d.ts similarity index 100% rename from fullpage.js/fullpage.js.d.ts rename to fullpage.js/index.d.ts diff --git a/fullpage.js/tsconfig.json b/fullpage.js/tsconfig.json index 0e6588b0f4..736b4b1050 100644 --- a/fullpage.js/tsconfig.json +++ b/fullpage.js/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "fullpage.js.d.ts", + "index.d.ts", "fullpage.js-tests.ts" ] } \ No newline at end of file diff --git a/gl-matrix/gl-matrix-tests.ts b/gl-matrix/gl-matrix-tests.ts index 5df2220f72..6325ff5cd4 100644 --- a/gl-matrix/gl-matrix-tests.ts +++ b/gl-matrix/gl-matrix-tests.ts @@ -33,6 +33,11 @@ let outMat3 = mat3.create(); let outMat4 = mat4.create(); let outQuat = quat.create(); +let outMat2Null: mat2 | null; +let outMat2dNull: mat2d | null; +let outMat3Null: mat3 | null; +let outMat4Null: mat4 | null; + // vec2 outVec2 = vec2.create(); outVec2 = vec2.clone(vec2A); @@ -180,7 +185,7 @@ outMat2 = mat2.identity(outMat2); outMat2 = mat2.fromValues(1, 2, 3, 4); outMat2 = mat2.set(outMat2, 1, 2, 3, 4); outMat2 = mat2.transpose(outMat2, mat2A); -outMat2 = mat2.invert(outMat2, mat2A); +outMat2Null = mat2.invert(outMat2, mat2A); outMat2 = mat2.adjoint(outMat2, mat2A); outVal = mat2.determinant(mat2A); outMat2 = mat2.multiply(outMat2, mat2A, mat2B); @@ -210,7 +215,7 @@ outMat2d = mat2d.copy(outMat2d, mat2dA); outMat2d = mat2d.identity(outMat2d); outMat2d = mat2d.fromValues(1, 2, 3, 4, 5, 6); outMat2d = mat2d.set(outMat2d, 1, 2, 3, 4, 5, 6); -outMat2d = mat2d.invert(outMat2d, mat2dA); +outMat2dNull = mat2d.invert(outMat2d, mat2dA); outVal = mat2d.determinant(mat2dA); outMat2d = mat2d.multiply(outMat2d, mat2dA, mat2dB); outMat2d = mat2d.mul(outMat2d, mat2dA, mat2dB); @@ -239,7 +244,7 @@ outMat3 = mat3.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9); outMat3 = mat3.set(outMat3, 1, 2, 3, 4, 5, 6, 7, 8, 9); outMat3 = mat3.identity(outMat3); outMat3 = mat3.transpose(outMat3, mat3A); -outMat3 = mat3.invert(outMat3, mat3A); +outMat3Null = mat3.invert(outMat3, mat3A); outMat3 = mat3.adjoint(outMat3, mat3A); outVal = mat3.determinant(mat3A); outMat3 = mat3.multiply(outMat3, mat3A, mat3B); @@ -252,7 +257,7 @@ outMat3 = mat3.fromRotation(outMat3, Math.PI); outMat3 = mat3.fromScaling(outMat3, vec2A); outMat3 = mat3.fromMat2d(outMat3, mat2dA); outMat3 = mat3.fromQuat(outMat3, quatA); -outMat3 = mat3.normalFromMat4(outMat3, mat4A); +outMat3Null = mat3.normalFromMat4(outMat3, mat4A); outStr = mat3.str(mat3A); outVal = mat3.frob(mat3A); outMat3 = mat3.add(outMat3, mat3A, mat3B); @@ -271,19 +276,19 @@ outMat4 = mat4.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16) outMat4 = mat4.set(outMat4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); outMat4 = mat4.identity(outMat4); outMat4 = mat4.transpose(outMat4, mat4A); -outMat4 = mat4.invert(outMat4, mat4A); +outMat4Null = mat4.invert(outMat4, mat4A); outMat4 = mat4.adjoint(outMat4, mat4A); outVal = mat4.determinant(mat4A); outMat4 = mat4.multiply(outMat4, mat4A, mat4B); outMat4 = mat4.mul(outMat4, mat4A, mat4B); outMat4 = mat4.translate(outMat4, mat4A, vec3A); outMat4 = mat4.scale(outMat4, mat4A, vec3A); -outMat4 = mat4.rotate(outMat4, mat4A, Math.PI, vec3A); +outMat4Null = mat4.rotate(outMat4, mat4A, Math.PI, vec3A); outMat4 = mat4.rotateX(outMat4, mat4A, Math.PI); outMat4 = mat4.rotateY(outMat4, mat4A, Math.PI); outMat4 = mat4.rotateZ(outMat4, mat4A, Math.PI); outMat4 = mat4.fromTranslation(outMat4, vec3A); -outMat4 = mat4.fromRotation(outMat4, Math.PI, vec3A); +outMat4Null = mat4.fromRotation(outMat4, Math.PI, vec3A); outMat4 = mat4.fromScaling(outMat4, vec3A); outMat4 = mat4.fromXRotation(outMat4, Math.PI); outMat4 = mat4.fromYRotation(outMat4, Math.PI); @@ -529,7 +534,7 @@ outMat2 = _mat2.identity(outMat2); outMat2 = _mat2.fromValues(1, 2, 3, 4); outMat2 = _mat2.set(outMat2, 1, 2, 3, 4); outMat2 = _mat2.transpose(outMat2, mat2A); -outMat2 = _mat2.invert(outMat2, mat2A); +outMat2Null = _mat2.invert(outMat2, mat2A); outMat2 = _mat2.adjoint(outMat2, mat2A); outVal = _mat2.determinant(mat2A); outMat2 = _mat2.multiply(outMat2, mat2A, mat2B); @@ -559,7 +564,7 @@ outMat2d = _mat2d.copy(outMat2d, mat2dA); outMat2d = _mat2d.identity(outMat2d); outMat2d = _mat2d.fromValues(1, 2, 3, 4, 5, 6); outMat2d = _mat2d.set(outMat2d, 1, 2, 3, 4, 5, 6); -outMat2d = _mat2d.invert(outMat2d, mat2dA); +outMat2dNull = _mat2d.invert(outMat2d, mat2dA); outVal = _mat2d.determinant(mat2dA); outMat2d = _mat2d.multiply(outMat2d, mat2dA, mat2dB); outMat2d = _mat2d.mul(outMat2d, mat2dA, mat2dB); @@ -588,7 +593,7 @@ outMat3 = _mat3.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9); outMat3 = _mat3.set(outMat3, 1, 2, 3, 4, 5, 6, 7, 8, 9); outMat3 = _mat3.identity(outMat3); outMat3 = _mat3.transpose(outMat3, mat3A); -outMat3 = _mat3.invert(outMat3, mat3A); +outMat3Null = _mat3.invert(outMat3, mat3A); outMat3 = _mat3.adjoint(outMat3, mat3A); outVal = _mat3.determinant(mat3A); outMat3 = _mat3.multiply(outMat3, mat3A, mat3B); @@ -601,7 +606,7 @@ outMat3 = _mat3.fromRotation(outMat3, Math.PI); outMat3 = _mat3.fromScaling(outMat3, vec2A); outMat3 = _mat3.fromMat2d(outMat3, mat2dA); outMat3 = _mat3.fromQuat(outMat3, quatA); -outMat3 = _mat3.normalFromMat4(outMat3, mat4A); +outMat3Null = _mat3.normalFromMat4(outMat3, mat4A); outStr = _mat3.str(mat3A); outVal = _mat3.frob(mat3A); outMat3 = _mat3.add(outMat3, mat3A, mat3B); @@ -620,19 +625,19 @@ outMat4 = _mat4.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 outMat4 = _mat4.set(outMat4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); outMat4 = _mat4.identity(outMat4); outMat4 = _mat4.transpose(outMat4, mat4A); -outMat4 = _mat4.invert(outMat4, mat4A); +outMat4Null = _mat4.invert(outMat4, mat4A); outMat4 = _mat4.adjoint(outMat4, mat4A); outVal = _mat4.determinant(mat4A); outMat4 = _mat4.multiply(outMat4, mat4A, mat4B); outMat4 = _mat4.mul(outMat4, mat4A, mat4B); outMat4 = _mat4.translate(outMat4, mat4A, vec3A); outMat4 = _mat4.scale(outMat4, mat4A, vec3A); -outMat4 = _mat4.rotate(outMat4, mat4A, Math.PI, vec3A); +outMat4Null = _mat4.rotate(outMat4, mat4A, Math.PI, vec3A); outMat4 = _mat4.rotateX(outMat4, mat4A, Math.PI); outMat4 = _mat4.rotateY(outMat4, mat4A, Math.PI); outMat4 = _mat4.rotateZ(outMat4, mat4A, Math.PI); outMat4 = _mat4.fromTranslation(outMat4, vec3A); -outMat4 = _mat4.fromRotation(outMat4, Math.PI, vec3A); +outMat4Null = _mat4.fromRotation(outMat4, Math.PI, vec3A); outMat4 = _mat4.fromScaling(outMat4, vec3A); outMat4 = _mat4.fromXRotation(outMat4, Math.PI); outMat4 = _mat4.fromYRotation(outMat4, Math.PI); diff --git a/gl-matrix/index.d.ts b/gl-matrix/index.d.ts index b8a6694e40..89f28934b8 100644 --- a/gl-matrix/index.d.ts +++ b/gl-matrix/index.d.ts @@ -1384,7 +1384,7 @@ declare module 'gl-matrix' { * @param a the source matrix * @returns out */ - public static invert(out: mat2, a: mat2): mat2; + public static invert(out: mat2, a: mat2): mat2 | null; /** * Calculates the adjugate of a mat2 @@ -1638,7 +1638,7 @@ declare module 'gl-matrix' { * @param a the source matrix * @returns out */ - public static invert(out: mat2d, a: mat2d): mat2d; + public static invert(out: mat2d, a: mat2d): mat2d | null; /** * Calculates the determinant of a mat2d @@ -1918,7 +1918,7 @@ declare module 'gl-matrix' { * @param a the source matrix * @returns out */ - public static invert(out: mat3, a: mat3): mat3; + public static invert(out: mat3, a: mat3): mat3 | null; /** * Calculates the adjugate of a mat3 @@ -2054,7 +2054,7 @@ declare module 'gl-matrix' { * * @returns out */ - public static normalFromMat4(out: mat3, a: mat4): mat3; + public static normalFromMat4(out: mat3, a: mat4): mat3 | null; /** * Returns a string representation of a mat3 @@ -2242,7 +2242,7 @@ declare module 'gl-matrix' { * @param a the source matrix * @returns out */ - public static invert(out: mat4, a: mat4): mat4; + public static invert(out: mat4, a: mat4): mat4 | null; /** * Calculates the adjugate of a mat4 diff --git a/gl-matrix/tsconfig.json b/gl-matrix/tsconfig.json index 5350b55fb6..4a5a2ae6bb 100644 --- a/gl-matrix/tsconfig.json +++ b/gl-matrix/tsconfig.json @@ -3,7 +3,7 @@ "module": "commonjs", "target": "es6", "noImplicitAny": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -16,4 +16,4 @@ "index.d.ts", "gl-matrix-tests.ts" ] -} \ No newline at end of file +} diff --git a/google-libphonenumber/index.d.ts b/google-libphonenumber/index.d.ts index 28f72f67a3..0c0e1efda3 100644 --- a/google-libphonenumber/index.d.ts +++ b/google-libphonenumber/index.d.ts @@ -1,6 +1,5 @@ // Type definitions for libphonenumber v7.4.3 -// Project: https://github.com/googlei18n/libphonenumber -// Project: https://github.com/seegno/google-libphonenumber +// Project: https://github.com/googlei18n/libphonenumber, https://github.com/seegno/google-libphonenumber // Definitions by: Leon Yu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/graphql/index.d.ts b/graphql/index.d.ts index 43ca0fdc36..14b29144eb 100644 --- a/graphql/index.d.ts +++ b/graphql/index.d.ts @@ -2091,7 +2091,7 @@ declare module "graphql/error/GraphQLError" { * * Enumerable, and appears in the result of JSON.stringify(). */ - locations: Array<{ line: number, column: number }> | void; + locations?: Array<{ line: number, column: number }> | void; /** * An array describing the JSON-path into the execution response which @@ -2099,28 +2099,37 @@ declare module "graphql/error/GraphQLError" { * * Enumerable, and appears in the result of JSON.stringify(). */ - path: Array | void; + path?: Array | void; /** * An array of GraphQL AST Nodes corresponding to this error. */ - nodes: Array | void; + nodes?: Array | void; /** * The source GraphQL document corresponding to this error. */ - source: Source | void; + source?: Source | void; /** * An array of character offsets within the source GraphQL document * which correspond to this error. */ - positions: Array | void; + positions?: Array | void; /** * The original error thrown from a field resolver during execution. */ - originalError: Error; + originalError?: Error; + + constructor( + message: string, + nodes?: Array, + source?: Source, + positions?: Array, + path?: Array, + originalError?: Error, + ); } } diff --git a/gulp-angular-templatecache/gulp-angular-templatecache.d.ts b/gulp-angular-templatecache/index.d.ts similarity index 100% rename from gulp-angular-templatecache/gulp-angular-templatecache.d.ts rename to gulp-angular-templatecache/index.d.ts diff --git a/gulp-angular-templatecache/tsconfig.json b/gulp-angular-templatecache/tsconfig.json index 6b3a7a2fa2..4a33a52943 100644 --- a/gulp-angular-templatecache/tsconfig.json +++ b/gulp-angular-templatecache/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "gulp-angular-templatecache.d.ts", + "index.d.ts", "gulp-angular-templatecache-tests.ts" ] } \ No newline at end of file diff --git a/gulp-help-doc/gulp-help-doc.d.ts b/gulp-help-doc/index.d.ts similarity index 100% rename from gulp-help-doc/gulp-help-doc.d.ts rename to gulp-help-doc/index.d.ts diff --git a/gulp-help-doc/tsconfig.json b/gulp-help-doc/tsconfig.json index f7206b7785..ba2c2857a0 100644 --- a/gulp-help-doc/tsconfig.json +++ b/gulp-help-doc/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "gulp-help-doc.d.ts", + "index.d.ts", "gulp-help-doc-tests.ts" ] } \ No newline at end of file diff --git a/gulp-insert/gulp-insert.d.ts b/gulp-insert/index.d.ts similarity index 100% rename from gulp-insert/gulp-insert.d.ts rename to gulp-insert/index.d.ts diff --git a/gulp-insert/tsconfig.json b/gulp-insert/tsconfig.json index 109f4aaa90..6de90874d4 100644 --- a/gulp-insert/tsconfig.json +++ b/gulp-insert/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "gulp-insert.d.ts", + "index.d.ts", "gulp-insert-tests.ts" ] } \ No newline at end of file diff --git a/html-pdf/html-pdf.d.ts b/html-pdf/index.d.ts similarity index 100% rename from html-pdf/html-pdf.d.ts rename to html-pdf/index.d.ts diff --git a/html-pdf/tsconfig.json b/html-pdf/tsconfig.json index b3b3941f12..7eafce4004 100644 --- a/html-pdf/tsconfig.json +++ b/html-pdf/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "html-pdf.d.ts", + "index.d.ts", "html-pdf-tests.ts" ] } \ No newline at end of file diff --git a/html-webpack-plugin/html-webpack-plugin-tests.ts b/html-webpack-plugin/html-webpack-plugin-tests.ts index 9aac8c9b98..9d4ec35e11 100644 --- a/html-webpack-plugin/html-webpack-plugin-tests.ts +++ b/html-webpack-plugin/html-webpack-plugin-tests.ts @@ -1,5 +1,3 @@ -/// - import {Configuration} from "webpack"; import HtmlWebpackPlugin = require("html-webpack-plugin"); diff --git a/html-webpack-plugin/html-webpack-plugin.d.ts b/html-webpack-plugin/index.d.ts similarity index 100% rename from html-webpack-plugin/html-webpack-plugin.d.ts rename to html-webpack-plugin/index.d.ts diff --git a/html-webpack-plugin/tsconfig.json b/html-webpack-plugin/tsconfig.json index ea542ae271..b19027e8f0 100644 --- a/html-webpack-plugin/tsconfig.json +++ b/html-webpack-plugin/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "html-webpack-plugin.d.ts", + "index.d.ts", "html-webpack-plugin-tests.ts" ] } \ No newline at end of file diff --git a/imagemapster/imagemapster.d.ts b/imagemapster/index.d.ts similarity index 100% rename from imagemapster/imagemapster.d.ts rename to imagemapster/index.d.ts diff --git a/imagemapster/tsconfig.json b/imagemapster/tsconfig.json index 02230dff2f..e0bcab265e 100644 --- a/imagemapster/tsconfig.json +++ b/imagemapster/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "imagemapster.d.ts", + "index.d.ts", "imagemapster-tests.ts" ] } \ No newline at end of file diff --git a/intl-tel-input/intl-tel-input.d.ts b/intl-tel-input/index.d.ts similarity index 100% rename from intl-tel-input/intl-tel-input.d.ts rename to intl-tel-input/index.d.ts diff --git a/intl-tel-input/tsconfig.json b/intl-tel-input/tsconfig.json index 2290a860c8..2186d90c1d 100644 --- a/intl-tel-input/tsconfig.json +++ b/intl-tel-input/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "intl-tel-input.d.ts", + "index.d.ts", "intl-tel-input-tests.ts" ] } \ No newline at end of file diff --git a/inversify-express-utils/inversify-express-utils.d.ts b/inversify-express-utils/index.d.ts similarity index 100% rename from inversify-express-utils/inversify-express-utils.d.ts rename to inversify-express-utils/index.d.ts diff --git a/inversify-express-utils/tsconfig.json b/inversify-express-utils/tsconfig.json index c7e399100e..1a136bbfe3 100644 --- a/inversify-express-utils/tsconfig.json +++ b/inversify-express-utils/tsconfig.json @@ -14,7 +14,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "inversify-express-utils.d.ts", + "index.d.ts", "inversify-express-utils-tests.ts" ] } \ No newline at end of file diff --git a/istanbul-middleware/istanbul-middleware.d.ts b/istanbul-middleware/index.d.ts similarity index 100% rename from istanbul-middleware/istanbul-middleware.d.ts rename to istanbul-middleware/index.d.ts diff --git a/istanbul-middleware/tsconfig.json b/istanbul-middleware/tsconfig.json index e755a0b80e..95df263847 100644 --- a/istanbul-middleware/tsconfig.json +++ b/istanbul-middleware/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "istanbul-middleware.d.ts", + "index.d.ts", "istanbul-middleware-tests.ts" ] } \ No newline at end of file diff --git a/jquery-mousewheel/jquery-mousewheel.d.ts b/jquery-mousewheel/index.d.ts similarity index 100% rename from jquery-mousewheel/jquery-mousewheel.d.ts rename to jquery-mousewheel/index.d.ts diff --git a/jquery-mousewheel/tsconfig.json b/jquery-mousewheel/tsconfig.json index 0c0c88bcb6..6c4ffbe27a 100644 --- a/jquery-mousewheel/tsconfig.json +++ b/jquery-mousewheel/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "jquery-mousewheel.d.ts", + "index.d.ts", "jquery-mousewheel-tests.ts" ] } \ No newline at end of file diff --git a/jquery-truncate-html/jquery-truncate-html.d.ts b/jquery-truncate-html/index.d.ts similarity index 100% rename from jquery-truncate-html/jquery-truncate-html.d.ts rename to jquery-truncate-html/index.d.ts diff --git a/jquery-truncate-html/tsconfig.json b/jquery-truncate-html/tsconfig.json index a282bbf024..d265c19db1 100644 --- a/jquery-truncate-html/tsconfig.json +++ b/jquery-truncate-html/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "jquery-truncate-html.d.ts", + "index.d.ts", "jquery-truncate-html-tests.ts" ] } \ No newline at end of file diff --git a/jsoneditor/jsoneditor.d.ts b/jsoneditor/index.d.ts similarity index 100% rename from jsoneditor/jsoneditor.d.ts rename to jsoneditor/index.d.ts diff --git a/jsoneditor/jsoneditor-tests.ts b/jsoneditor/jsoneditor-tests.ts index 99bbb51b92..3c8b66d76b 100644 --- a/jsoneditor/jsoneditor-tests.ts +++ b/jsoneditor/jsoneditor-tests.ts @@ -1,5 +1,3 @@ -/// - import JSONEditor, {JSONEditorMode, JSONEditorNode, JSONEditorOptions} from 'jsoneditor'; let options: JSONEditorOptions; diff --git a/jsoneditor/tsconfig.json b/jsoneditor/tsconfig.json index ac1de683cd..55b5ac9998 100644 --- a/jsoneditor/tsconfig.json +++ b/jsoneditor/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "jsoneditor.d.ts", + "index.d.ts", "jsoneditor-tests.ts" ] } \ No newline at end of file diff --git a/jsuite/jsuite.d.ts b/jsuite/index.d.ts similarity index 100% rename from jsuite/jsuite.d.ts rename to jsuite/index.d.ts diff --git a/jsuite/tsconfig.json b/jsuite/tsconfig.json index 0742f18c9f..79b9eb6b27 100644 --- a/jsuite/tsconfig.json +++ b/jsuite/tsconfig.json @@ -13,6 +13,6 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "jsuite.d.ts" + "index.d.ts" ] } \ No newline at end of file diff --git a/karma-chai-sinon/karma-chai-sinon.d.ts b/karma-chai-sinon/index.d.ts similarity index 100% rename from karma-chai-sinon/karma-chai-sinon.d.ts rename to karma-chai-sinon/index.d.ts diff --git a/karma-chai-sinon/tsconfig.json b/karma-chai-sinon/tsconfig.json index aef2986498..a7f480c167 100644 --- a/karma-chai-sinon/tsconfig.json +++ b/karma-chai-sinon/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "karma-chai-sinon.d.ts", + "index.d.ts", "karma-chai-sinon-tests.ts" ] } \ No newline at end of file diff --git a/koa-compress/koa-compress.d.ts b/koa-compress/index.d.ts similarity index 100% rename from koa-compress/koa-compress.d.ts rename to koa-compress/index.d.ts diff --git a/koa-compress/tsconfig.json b/koa-compress/tsconfig.json index 05c84b0a3a..3a922f661c 100644 --- a/koa-compress/tsconfig.json +++ b/koa-compress/tsconfig.json @@ -1,6 +1,6 @@ { "files": [ - "koa-compress.d.ts", + "index.d.ts", "koa-compress-tests.ts" ], "compilerOptions": { diff --git a/koa-hbs/koa-hbs.d.ts b/koa-hbs/index.d.ts similarity index 100% rename from koa-hbs/koa-hbs.d.ts rename to koa-hbs/index.d.ts diff --git a/koa-hbs/tsconfig.json b/koa-hbs/tsconfig.json index c20e3481c9..ba124e4c80 100644 --- a/koa-hbs/tsconfig.json +++ b/koa-hbs/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "koa-hbs.d.ts", + "index.d.ts", "koa-hbs-tests.ts" ] } \ No newline at end of file diff --git a/leaflet-geocoder-mapzen/leaflet-geocoder-mapzen.d.ts b/leaflet-geocoder-mapzen/index.d.ts similarity index 100% rename from leaflet-geocoder-mapzen/leaflet-geocoder-mapzen.d.ts rename to leaflet-geocoder-mapzen/index.d.ts diff --git a/leaflet-geocoder-mapzen/tsconfig.json b/leaflet-geocoder-mapzen/tsconfig.json index 75d2cf911a..6fb796302e 100644 --- a/leaflet-geocoder-mapzen/tsconfig.json +++ b/leaflet-geocoder-mapzen/tsconfig.json @@ -10,7 +10,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "leaflet-geocoder-mapzen.d.ts", + "index.d.ts", "leaflet-geocoder-mapzen-tests.ts" ] } \ No newline at end of file diff --git a/marker-animate-unobtrusive/marker-animate-unobtrusive.d.ts b/marker-animate-unobtrusive/index.d.ts similarity index 100% rename from marker-animate-unobtrusive/marker-animate-unobtrusive.d.ts rename to marker-animate-unobtrusive/index.d.ts diff --git a/marker-animate-unobtrusive/tsconfig.json b/marker-animate-unobtrusive/tsconfig.json index 3961120707..9398f7b73e 100644 --- a/marker-animate-unobtrusive/tsconfig.json +++ b/marker-animate-unobtrusive/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "marker-animate-unobtrusive.d.ts", + "index.d.ts", "marker-animate-unobtrusive-tests.ts", "marker-animate-unobtrusive-amd-tests.ts" ] diff --git a/masonry-layout/masonry-layout.d.ts b/masonry-layout/index.d.ts similarity index 100% rename from masonry-layout/masonry-layout.d.ts rename to masonry-layout/index.d.ts diff --git a/masonry-layout/tsconfig.json b/masonry-layout/tsconfig.json index 0638ecd09d..125331bcd8 100644 --- a/masonry-layout/tsconfig.json +++ b/masonry-layout/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "masonry-layout.d.ts", + "index.d.ts", "masonry-layout-tests.ts" ] } \ No newline at end of file diff --git a/mitm/mitm.d.ts b/mitm/index.d.ts similarity index 100% rename from mitm/mitm.d.ts rename to mitm/index.d.ts diff --git a/mitm/tsconfig.json b/mitm/tsconfig.json index e14e440597..d37bc6fddb 100644 --- a/mitm/tsconfig.json +++ b/mitm/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "mitm.d.ts", + "index.d.ts", "mitm-tests.ts" ] } \ No newline at end of file diff --git a/mongoose-paginate/mongoose-paginate.d.ts b/mongoose-paginate/index.d.ts similarity index 100% rename from mongoose-paginate/mongoose-paginate.d.ts rename to mongoose-paginate/index.d.ts diff --git a/mongoose-paginate/tsconfig.json b/mongoose-paginate/tsconfig.json index 6cd106d699..a580a52c42 100644 --- a/mongoose-paginate/tsconfig.json +++ b/mongoose-paginate/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "mongoose-paginate.d.ts", + "index.d.ts", "mongoose-paginate-tests.ts" ] } \ No newline at end of file diff --git a/multer-s3/multer-s3.d.ts b/multer-s3/index.d.ts similarity index 100% rename from multer-s3/multer-s3.d.ts rename to multer-s3/index.d.ts diff --git a/multer-s3/tsconfig.json b/multer-s3/tsconfig.json index 04e16429ee..e05b4498c8 100644 --- a/multer-s3/tsconfig.json +++ b/multer-s3/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "multer-s3.d.ts", + "index.d.ts", "multer-s3-tests.ts" ] } \ No newline at end of file diff --git a/musicmetadata/musicmetadata.d.ts b/musicmetadata/index.d.ts similarity index 100% rename from musicmetadata/musicmetadata.d.ts rename to musicmetadata/index.d.ts diff --git a/musicmetadata/tsconfig.json b/musicmetadata/tsconfig.json index d403132a8d..aaecf53410 100644 --- a/musicmetadata/tsconfig.json +++ b/musicmetadata/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "musicmetadata.d.ts", + "index.d.ts", "musicmetadata-tests.ts" ] } \ No newline at end of file diff --git a/nes/nes.d.ts b/nes/index.d.ts similarity index 100% rename from nes/nes.d.ts rename to nes/index.d.ts diff --git a/nes/tsconfig.json b/nes/tsconfig.json index c0b45f689b..283844577b 100644 --- a/nes/tsconfig.json +++ b/nes/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "nes.d.ts", + "index.d.ts", "nes-tests.ts" ] } \ No newline at end of file diff --git a/ngmap/ngmap.d.ts b/ngmap/index.d.ts similarity index 100% rename from ngmap/ngmap.d.ts rename to ngmap/index.d.ts diff --git a/ngmap/tsconfig.json b/ngmap/tsconfig.json index d86f53d20a..132e6d6842 100644 --- a/ngmap/tsconfig.json +++ b/ngmap/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "ngmap.d.ts", + "index.d.ts", "ngmap-tests.ts" ] } \ No newline at end of file diff --git a/ngreact/ngreact.d.ts b/ngreact/index.d.ts similarity index 100% rename from ngreact/ngreact.d.ts rename to ngreact/index.d.ts diff --git a/ngreact/tsconfig.json b/ngreact/tsconfig.json index 1b80eaf055..194de86d87 100644 --- a/ngreact/tsconfig.json +++ b/ngreact/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "ngreact.d.ts", + "index.d.ts", "ngreact-tests.tsx" ] } \ No newline at end of file diff --git a/node/index.d.ts b/node/index.d.ts index ea81e61147..ea22eb6486 100644 --- a/node/index.d.ts +++ b/node/index.d.ts @@ -1851,6 +1851,7 @@ declare module "net" { localPort: number; bytesRead: number; bytesWritten: number; + destroyed: boolean; // Extended base methods end(): void; diff --git a/node/node-tests.ts b/node/node-tests.ts index 9873b19e72..9116125b1e 100644 --- a/node/node-tests.ts +++ b/node/node-tests.ts @@ -47,33 +47,33 @@ namespace global_tests { namespace assert_tests { { assert(1 + 1 - 2 === 0, "The universe isn't how it should."); - + assert.deepEqual({ x: { y: 3 } }, { x: { y: 3 } }, "DEEP WENT DERP"); - + assert.deepStrictEqual({ a: 1 }, { a: 1 }, "uses === comparator"); - + assert.doesNotThrow(() => { const b = false; if (b) { throw "a hammer at your face"; } }, undefined, "What the...*crunch*"); - + assert.equal(3, "3", "uses == comparator"); assert.fail(1, 2, undefined, '>'); - + assert.ifError(0); - + assert.notDeepStrictEqual({ x: { y: "3" } }, { x: { y: 3 } }, "uses !== comparator"); - + assert.notEqual(1, 2, "uses != comparator"); - + assert.notStrictEqual(2, "2", "uses === comparator"); - + assert.ok(true); assert.ok(1); - + assert.strictEqual(1, 1, "uses === comparator"); - + assert.throws(() => { throw "a hammer at your face"; }, undefined, "DODGED IT"); } } @@ -153,21 +153,21 @@ namespace fs_tests { fs.writeFile("thebible.txt", "Do unto others as you would have them do unto you.", assert.ifError); - + fs.write(1234, "test"); - + fs.writeFile("Harry Potter", "\"You be wizzing, Harry,\" jived Dumbledore.", { encoding: "ascii" }, - assert.ifError); + assert.ifError); } { var content: string; var buffer: Buffer; - + content = fs.readFileSync('testfile', 'utf8'); content = fs.readFileSync('testfile', { encoding: 'utf8' }); buffer = fs.readFileSync('testfile'); @@ -177,7 +177,7 @@ namespace fs_tests { fs.readFile('testfile', (err, data) => buffer = data); fs.readFile('testfile', { flag: 'r' }, (err, data) => buffer = data); } - + { var errno: number; fs.readFile('testfile', (err, data) => { @@ -186,28 +186,28 @@ namespace fs_tests { } }); } - + { fs.mkdtemp('/tmp/foo-', (err, folder) => { console.log(folder); // Prints: /tmp/foo-itXde2 }); } - + { var tempDir: string; tempDir = fs.mkdtempSync('/tmp/foo-'); } - + { fs.watch('/tmp/foo-', (event, filename) => { console.log(event, filename); }); - + fs.watch('/tmp/foo-', 'utf8', (event, filename) => { console.log(event, filename); }); - + fs.watch('/tmp/foo-', { recursive: true, persistent: true, @@ -216,22 +216,22 @@ namespace fs_tests { console.log(event, filename); }); } - + { fs.access('/path/to/folder', (err) => { }); - + fs.access(Buffer.from(''), (err) => { }); - + fs.access('/path/to/folder', fs.constants.F_OK | fs.constants.R_OK, (err) => { }); - + fs.access(Buffer.from(''), fs.constants.F_OK | fs.constants.R_OK, (err) => { }); - + fs.accessSync('/path/to/folder'); - + fs.accessSync(Buffer.from('')); - + fs.accessSync('path/to/folder', fs.constants.W_OK | fs.constants.X_OK); - + fs.accessSync(Buffer.from(''), fs.constants.W_OK | fs.constants.X_OK); } } @@ -400,14 +400,14 @@ function bufferTests() { namespace url_tests { { url.format(url.parse('http://www.example.com/xyz')); - + // https://google.com/search?q=you're%20a%20lizard%2C%20gary url.format({ protocol: 'https', host: "google.com", pathname: 'search', query: { q: "you're a lizard, gary" } - }); + }); } { @@ -424,7 +424,7 @@ namespace util_tests { { // Old and new util.inspect APIs util.inspect(["This is nice"], false, 5); - util.inspect(["This is nice"], { colors: true, depth: 5, customInspect: false }); + util.inspect(["This is nice"], { colors: true, depth: 5, customInspect: false }); } } @@ -772,7 +772,7 @@ namespace tls_tests { let _response: Buffer = response; }) _TLSSocket = _TLSSocket.prependOnceListener("secureConnect", () => { }); - } + } } //////////////////////////////////////////////////// @@ -1315,7 +1315,7 @@ namespace string_decoder_tests { namespace child_process_tests { { childProcess.exec("echo test"); - childProcess.spawnSync("echo test"); + childProcess.spawnSync("echo test"); } { @@ -1574,7 +1574,7 @@ namespace process_tests { { var eventEmitter: events.EventEmitter; eventEmitter = process; // Test that process implements EventEmitter... - + var _p: NodeJS.Process = process; _p = p; } @@ -1770,6 +1770,9 @@ namespace net_tests { str = host; }) _socket = _socket.prependOnceListener("timeout", () => { }) + + bool = _socket.destroyed; + _socket.destroy(); } { diff --git a/nodemailer-ses-transport/nodemailer-ses-transport.d.ts b/nodemailer-ses-transport/index.d.ts similarity index 100% rename from nodemailer-ses-transport/nodemailer-ses-transport.d.ts rename to nodemailer-ses-transport/index.d.ts diff --git a/nodemailer-ses-transport/tsconfig.json b/nodemailer-ses-transport/tsconfig.json index 8aa631bf9a..6e77bfb4f1 100644 --- a/nodemailer-ses-transport/tsconfig.json +++ b/nodemailer-ses-transport/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "nodemailer-ses-transport.d.ts", + "index.d.ts", "nodemailer-ses-transport-tests.ts" ] } \ No newline at end of file diff --git a/notify.js/notify.js.d.ts b/notify.js/index.d.ts similarity index 100% rename from notify.js/notify.js.d.ts rename to notify.js/index.d.ts diff --git a/notify.js/tsconfig.json b/notify.js/tsconfig.json index 1c62932129..520d32ba10 100644 --- a/notify.js/tsconfig.json +++ b/notify.js/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "notify.js.d.ts", + "index.d.ts", "notify.js.tests.ts" ] } \ No newline at end of file diff --git a/nw.js/nw.js.d.ts b/nw.js/index.d.ts similarity index 100% rename from nw.js/nw.js.d.ts rename to nw.js/index.d.ts diff --git a/nw.js/tsconfig.json b/nw.js/tsconfig.json index 63803a69d9..61fc71fe70 100644 --- a/nw.js/tsconfig.json +++ b/nw.js/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "nw.js.d.ts", + "index.d.ts", "nw.js-tests.ts" ] } \ No newline at end of file diff --git a/o.js/o.js.d.ts b/o.js/index.d.ts similarity index 100% rename from o.js/o.js.d.ts rename to o.js/index.d.ts diff --git a/o.js/tsconfig.json b/o.js/tsconfig.json index a630e4dee7..9902659eec 100644 --- a/o.js/tsconfig.json +++ b/o.js/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "o.js.d.ts", + "index.d.ts", "o.js-tests.ts" ] } \ No newline at end of file diff --git a/passport-local-mongoose/passport-local-mongoose.d.ts b/passport-local-mongoose/index.d.ts similarity index 100% rename from passport-local-mongoose/passport-local-mongoose.d.ts rename to passport-local-mongoose/index.d.ts diff --git a/passport-local-mongoose/tsconfig.json b/passport-local-mongoose/tsconfig.json index 96c1a13bf1..a30ca49bbf 100644 --- a/passport-local-mongoose/tsconfig.json +++ b/passport-local-mongoose/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "passport-local-mongoose.d.ts", + "index.d.ts", "passport-local-mongoose-tests.ts" ] } \ No newline at end of file diff --git a/pino/pino.d.ts b/pino/index.d.ts similarity index 100% rename from pino/pino.d.ts rename to pino/index.d.ts diff --git a/pino/tsconfig.json b/pino/tsconfig.json index d1c0f04972..f80ebefe14 100644 --- a/pino/tsconfig.json +++ b/pino/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "pino.d.ts", + "index.d.ts", "pino-tests.ts" ] } \ No newline at end of file diff --git a/pouchdb-upsert/pouchdb-upsert.d.ts b/pouchdb-upsert/index.d.ts similarity index 100% rename from pouchdb-upsert/pouchdb-upsert.d.ts rename to pouchdb-upsert/index.d.ts diff --git a/pouchdb-upsert/pouchdb-upsert-tests.ts b/pouchdb-upsert/pouchdb-upsert-tests.ts index fa4eb83af3..5ed17266b1 100644 --- a/pouchdb-upsert/pouchdb-upsert-tests.ts +++ b/pouchdb-upsert/pouchdb-upsert-tests.ts @@ -1,5 +1,3 @@ -/// - import * as pouchdbUpsert from 'pouchdb-upsert'; PouchDB.plugin(pouchdbUpsert); diff --git a/pouchdb-upsert/tsconfig.json b/pouchdb-upsert/tsconfig.json index a88f26d221..a0719c3eaf 100644 --- a/pouchdb-upsert/tsconfig.json +++ b/pouchdb-upsert/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "pouchdb-upsert.d.ts", + "index.d.ts", "pouchdb-upsert-tests.ts" ] } \ No newline at end of file diff --git a/rc-tooltip/rc-tooltip.d.ts b/rc-tooltip/index.d.ts similarity index 100% rename from rc-tooltip/rc-tooltip.d.ts rename to rc-tooltip/index.d.ts diff --git a/rc-tooltip/tsconfig.json b/rc-tooltip/tsconfig.json index 3ad29fc103..2f9aa65a4b 100644 --- a/rc-tooltip/tsconfig.json +++ b/rc-tooltip/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "rc-tooltip.d.ts", + "index.d.ts", "rc-tooltip-tests.tsx" ] } \ No newline at end of file diff --git a/react-autosuggest/react-autosuggest.d.ts b/react-autosuggest/index.d.ts similarity index 100% rename from react-autosuggest/react-autosuggest.d.ts rename to react-autosuggest/index.d.ts diff --git a/react-autosuggest/tsconfig.json b/react-autosuggest/tsconfig.json index 3f2805e714..6c2ea102f6 100644 --- a/react-autosuggest/tsconfig.json +++ b/react-autosuggest/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-autosuggest.d.ts", + "index.d.ts", "react-autosuggest-tests.tsx" ] } \ No newline at end of file diff --git a/react-big-calendar/react-big-calendar.d.ts b/react-big-calendar/index.d.ts similarity index 100% rename from react-big-calendar/react-big-calendar.d.ts rename to react-big-calendar/index.d.ts diff --git a/react-big-calendar/tsconfig.json b/react-big-calendar/tsconfig.json index ef22e3c080..219b769f52 100644 --- a/react-big-calendar/tsconfig.json +++ b/react-big-calendar/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-big-calendar.d.ts", + "index.d.ts", "react-big-calendar-tests.tsx" ] } \ No newline at end of file diff --git a/react-breadcrumbs/react-breadcrumbs.d.ts b/react-breadcrumbs/index.d.ts similarity index 100% rename from react-breadcrumbs/react-breadcrumbs.d.ts rename to react-breadcrumbs/index.d.ts diff --git a/react-breadcrumbs/tsconfig.json b/react-breadcrumbs/tsconfig.json index 5fc6650176..79fc7c00c4 100644 --- a/react-breadcrumbs/tsconfig.json +++ b/react-breadcrumbs/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-breadcrumbs.d.ts", + "index.d.ts", "react-breadcrumbs-tests.tsx" ] } \ No newline at end of file diff --git a/react-calendar-timeline/react-calendar-timeline.d.ts b/react-calendar-timeline/index.d.ts similarity index 100% rename from react-calendar-timeline/react-calendar-timeline.d.ts rename to react-calendar-timeline/index.d.ts diff --git a/react-calendar-timeline/tsconfig.json b/react-calendar-timeline/tsconfig.json index 4bd69bf193..7e2c69e149 100644 --- a/react-calendar-timeline/tsconfig.json +++ b/react-calendar-timeline/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-calendar-timeline.d.ts", + "index.d.ts", "react-calendar-timeline-tests.tsx" ] } \ No newline at end of file diff --git a/react-codemirror/react-codemirror.d.ts b/react-codemirror/index.d.ts similarity index 100% rename from react-codemirror/react-codemirror.d.ts rename to react-codemirror/index.d.ts diff --git a/react-codemirror/tsconfig.json b/react-codemirror/tsconfig.json index 2c0e4d2ad5..1a0d6a5a8b 100644 --- a/react-codemirror/tsconfig.json +++ b/react-codemirror/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-codemirror.d.ts", + "index.d.ts", "react-codemirror-tests.tsx" ] } \ No newline at end of file diff --git a/react-datepicker/react-datepicker.d.ts b/react-datepicker/index.d.ts similarity index 100% rename from react-datepicker/react-datepicker.d.ts rename to react-datepicker/index.d.ts diff --git a/react-datepicker/tsconfig.json b/react-datepicker/tsconfig.json index 60fcd89c5f..8f2905ef26 100644 --- a/react-datepicker/tsconfig.json +++ b/react-datepicker/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-datepicker.d.ts", + "index.d.ts", "react-datepicker-tests.tsx" ] } \ No newline at end of file diff --git a/react-dnd-html5-backend/react-dnd-html5-backend.d.ts b/react-dnd-html5-backend/index.d.ts similarity index 100% rename from react-dnd-html5-backend/react-dnd-html5-backend.d.ts rename to react-dnd-html5-backend/index.d.ts diff --git a/react-dnd-html5-backend/react-dnd-html5-backend-tests.ts b/react-dnd-html5-backend/react-dnd-html5-backend-tests.ts index 6a94717e92..670790c46a 100644 --- a/react-dnd-html5-backend/react-dnd-html5-backend-tests.ts +++ b/react-dnd-html5-backend/react-dnd-html5-backend-tests.ts @@ -1,4 +1,3 @@ -/// "use strict"; // Test adapted from the ReactDnD chess game tutorial: diff --git a/react-dnd-html5-backend/tsconfig.json b/react-dnd-html5-backend/tsconfig.json index b7ef8e9789..68c26e2605 100644 --- a/react-dnd-html5-backend/tsconfig.json +++ b/react-dnd-html5-backend/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "react-dnd-html5-backend.d.ts", + "index.d.ts", "react-dnd-html5-backend-tests.ts" ] } \ No newline at end of file diff --git a/react-easy-chart/index.d.ts b/react-easy-chart/index.d.ts new file mode 100644 index 0000000000..8728ad0eaf --- /dev/null +++ b/react-easy-chart/index.d.ts @@ -0,0 +1,277 @@ +// Type definitions for react-easy-chart v0.1.12 +// Project: https://github.com/rma-consulting/react-easy-chart +// Definitions by: Dave Leaver +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare module "react-easy-chart" { + + interface BarData { + x: number | Date | string; + y: number; + color?: string + } + interface BarChartProps { + /** Whether to show axis labels */ + axes?: boolean; + + /** Labels for each of the axis */ + axisLabels?: { x?: string, y?: string, y2?: string }; + + /** The width of an individual bar in pixels */ + barWidth?: number; + + clickHandler?: (data: BarData, mouseEvent: MouseEvent) => any; + + /** Whether to automatically color the bars */ + colorBars?: boolean; + + data: Array; + + /** A d3 time formatting pattern to be applied to format the x axis values */ + datePattern?: string; + + /** Whether to show horizontal grid lines on the chart */ + grid?: boolean; + + /** Height of the chart in pixels */ + height?: number; + + /** Interpolation method if you add a line to this chart (via lineData) */ + interpolate?: string; + + lineData?: Array; + + /** css margins */ + margin?: { top?: number, right?: number, bottom?: number, left?: number }; + + mouseMoveHandler?: (data: BarData, mouseEvent: MouseEvent) => any; + + mouseOutHandler?: (data: BarData, mouseEvent: MouseEvent) => any; + + mouseOverHandler?: (data: BarData, mouseEvent: MouseEvent) => any; + + /** The d3 time format to be used for the x axis (when xType is 'time') */ + tickTimeDisplayFormat?: string; + + /** Width of the chart in pixels */ + width?: number; + + /** The range that the x axis should show (otherwise automatically calculated) */ + xDomainRange?: Array | Array | Array; + + /** The amount of ticks to be shown on the x axis */ + xTickNumber?: number; + + /** What data type the x axis is */ + xType?: 'time' | 'text' | 'linear'; + + /** What data type the second y axis is */ + y2Type?: 'time' | 'text' | 'linear'; + + /** Whether to show the axis on the right (default false: left) */ + yAxisOrientRight?: boolean; + + /** The range that the y axis should show (otherwise automatically calculated) */ + yDomainRange?: Array; + + /** The amount of ticks to be shown on the y axis */ + yTickNumber?: number; + } + class BarChart extends React.Component { + } + + interface PieData { + key: string; + value: number; + color?: string; + } + interface PieChartProps { + clickHandler?: (data: PieData, mouseEvent: MouseEvent) => any; + + data: Array<{ key: string, value: number, color?: string }>; + + /** Size in pixels of the inner hole (diameter) */ + innerHoleSize?: number; + + /** Whether to add labels the to pie segments */ + labels?: boolean; + + mouseMoveHandler?: (data: PieData, mouseEvent: MouseEvent) => any; + + mouseOutHandler?: (data: PieData, mouseEvent: MouseEvent) => any; + + mouseOverHandler?: (data: PieData, mouseEvent: MouseEvent) => any; + + /** Padding around the chart in pixels */ + padding?: number; + + /** Size in pixels in each dimension */ + size?: number; + + styles?: { [cssSelector: string]: React.CSSProperties }; + } + class PieChart extends React.Component { + } + + interface LineData { + x: number | Date | string; + y: number | Date | string; + } + interface LineChartProps { + /** Whether to show axis labels */ + axes?: boolean; + + /** Labels for each of the axis */ + axisLabels?: { x?: string, y?: string }; + + clickHandler?: (data: LineData, mouseEvent: MouseEvent) => any; + + data: Array>; + + /** Whether to show circles on the data points */ + dataPoints?: boolean; + + /** Whether to show horizontal grid lines on the chart */ + grid?: boolean; + + /** Height of the chart in pixels */ + height?: number; + + /** Smoothing option for the lines */ + interpolate?: 'linear' | 'linear-closed' | 'step' | 'step-before' | 'step-after' | 'basis' | 'basis-open' | 'basis-closed' | 'bundle' | 'cardinal' | 'cardinal-open' | 'cardinal-closed' | 'monotone'; + + lineColors?: Array; + + /** css margins */ + margin?: { top?: number, right?: number, bottom?: number, left?: number }; + + mouseMoveHandler?: (data: LineData, mouseEvent: MouseEvent) => any; + + mouseOutHandler?: (data: LineData, mouseEvent: MouseEvent) => any; + + mouseOverHandler?: (data: LineData, mouseEvent: MouseEvent) => any; + + /** The d3 time format to be used for the x axis (when xType is 'time') */ + tickTimeDisplayFormat?: string; + + /** Whether to show vertical grid lines on the chart */ + verticalGrid?: boolean; + + /** Width of the chart in pixels */ + width?: number; + + /** The range that the x axis should show (otherwise automatically calculated) */ + xDomainRange?: Array | Array | Array; + + /** The amount of ticks to be shown on the x axis */ + xTicks?: number; + + /** What data type the x axis is */ + xType?: 'time' | 'text' | 'linear'; + + /** Whether to show the axis on the right (default false: left) */ + yAxisOrientRight?: boolean; + + /** The range that the y axis should show (otherwise automatically calculated) */ + yDomainRange?: Array | Array; + + /** The amount of ticks to be shown on the y axis */ + yTicks?: number; + + /** What data type the x axis is */ + yType?: 'time' | 'text' | 'linear'; + } + class LineChart extends React.Component { + } + + interface AreaChartProps extends LineChartProps { + /** Make the gradient area a solid fill rather than a gradient */ + noAreaGradient?: boolean; + } + class AreaChart extends React.Component { + } + + interface ScatterplotData { + type: string | number; + x: number | Date | string; + y: number | Date | string; + z?: number; + } + interface ScatterplotChartProps { + /** Whether to show axis labels */ + axes?: boolean; + + /** Labels for each of the axis */ + axisLabels?: { x?: string, y?: string }; + + clickHandler?: (data: ScatterplotData, mouseEvent: MouseEvent) => any; + + /** Allows styling of individual types of points */ + config?: Array<{ type: string, color: string, stroke: string }>; + + data: Array; + + /** Radius of the dots on the chart */ + dotRadius?: number; + + /** Whether to show horizontal grid lines on the chart */ + grid?: boolean; + + /** Height of the chart in pixels */ + height?: number; + + /** css margins */ + margin?: { top?: number, right?: number, bottom?: number, left?: number }; + + mouseMoveHandler?: (data: ScatterplotData, mouseEvent: MouseEvent) => any; + + mouseOutHandler?: (data: ScatterplotData, mouseEvent: MouseEvent) => any; + + mouseOverHandler?: (data: ScatterplotData, mouseEvent: MouseEvent) => any; + + /** Whether to show vertical grid lines on the chart */ + verticalGrid?: boolean; + + /** Width of the chart in pixels */ + width?: number; + + /** The range that the x axis should show (otherwise automatically calculated) */ + xDomainRange?: Array | Array | Array; + + /** What data type the x axis is */ + xType?: 'time' | 'text' | 'linear'; + + /** Whether to show the axis on the right (default false: left) */ + yAxisOrientRight?: boolean; + + /** The range that the y axis should show (otherwise automatically calculated) */ + yDomainRange?: Array | Array | Array; + + /** What data type the x axis is */ + yType?: 'time' | 'text' | 'linear'; + } + class ScatterplotChart extends React.Component { + } + + interface LegendProps { + /** Override the color of the items */ + config?: Array<{ color: string }>; + + data: Array; + + dataId: string; + + /** change list items to inline-block (default block) */ + horizontal?: boolean; + + /** Override the css styles of individual components, see http://rma-consulting.github.io/react-easy-chart/legend/index.html */ + styles?: { [cssSelector: string]: React.CSSProperties }; + } + class Legend extends React.Component { + + } + +} + diff --git a/react-easy-chart/react-easy-chart-tests.tsx b/react-easy-chart/react-easy-chart-tests.tsx new file mode 100644 index 0000000000..65ab377ccc --- /dev/null +++ b/react-easy-chart/react-easy-chart-tests.tsx @@ -0,0 +1,2021 @@ +import * as React from 'react'; +import { AreaChart, BarChart, Legend, LineChart, PieChart, ScatterplotChart } from 'react-easy-chart'; + +class BarChartData extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartHeightAndWidth extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartColorBars extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartMargin extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartOverridingBarColors extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartAxes extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartAxesLabels extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartYAxisOrientation extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartYAxesType extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartYAxesType2 extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartDatePattern extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartBarWidth extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartDomainRange extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartTickDisplayFormat extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartNumberOfTicks extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartGrid extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartBarAndLine extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class BarChartMouseHandlers extends React.Component<{}, {}> { + mouseOverHandler(d: any, e: any) { + } + + mouseMoveHandler(e: any) { + } + + mouseOutHandler() { + } + + render(): any { + return ( + this.setState({ dataDisplay: `The value on the ${d.x} is ${d.y}` })} + mouseOverHandler={this.mouseOverHandler} + mouseOutHandler={this.mouseOutHandler} + mouseMoveHandler={this.mouseMoveHandler} + yDomainRange={[0, 100]} + /> + ); + } +} + + +class PieChartData extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class PieChartColor extends React.Component<{}, {}> { + render(): any { + return ( + + + ); + } +} + +class PieChartSize extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class PieChartDonut extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class PieChartPadding extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class PieChartLabels extends React.Component<{}, {}> { + render(): any { + return ( + rt_text': { + fontSize: '1em', + fill: '#fff' + } + }} + /> + ); + } +} + +class PieChartStyle extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class PieChartMouseHandlers extends React.Component<{}, {}> { + mouseOverHandler(d: any, e: any) { } + mouseMoveHandler(e: any) { } + mouseOutHandler() { } + render(): any { + return ( + this.setState({})} + mouseOverHandler={this.mouseOverHandler} + mouseOutHandler={this.mouseOutHandler.bind(this)} + mouseMoveHandler={this.mouseMoveHandler.bind(this)} + padding={10} + /> + ); + } +} + + +class LineChartData extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartData2 extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartHeightAndWidth extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartMargin extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartAxes extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartAxesLabels extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartYAxisOrientation extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartInterpolate extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartXType extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartXTypeTime extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartYTypeText extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartYTypeTime extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartGrid extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartVerticalGrid extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartDomainRange extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartTickDisplayFormat extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartNumberOfTicks extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartLineColors extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartDataPoints extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LineChartMouseEvents extends React.Component<{}, {}> { + mouseOverHandler(d: any, e: any) { } + mouseMoveHandler(e: any) { } + mouseOutHandler() { } + render(): any { + return ( + { } } + mouseOverHandler={this.mouseOverHandler} + mouseOutHandler={this.mouseOutHandler} + mouseMoveHandler={this.mouseMoveHandler} + width={700} + height={350} + interpolate={'cardinal'} + data={[ + [ + { x: 10, y: 25 }, + { x: 20, y: 10 }, + { x: 30, y: 25 }, + { x: 40, y: 10 }, + { x: 50, y: 12 }, + { x: 60, y: 25 } + ], [ + { x: 10, y: 40 }, + { x: 20, y: 30 }, + { x: 30, y: 25 }, + { x: 40, y: 60 }, + { x: 50, y: 22 }, + { x: 60, y: 9 } + ] + ]} + /> + ); + } +} + + +class AreaChartData extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartData2 extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartHeightAndWidth extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartMargin extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartAxes extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartAxesLabels extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartYAxisOrientation extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartInterpolate extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartAxisType extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartAxisTypeXTime extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartYTypeText extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartGrid extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartVerticalGrid extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartDomainRange extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartTickDisplayFormat extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartTickNumbers extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartDataPoints extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class AreaChartMouseHandlers extends React.Component<{}, {}> { + mouseOverHandler(d: any, e: any) { } + mouseMoveHandler(e: any) { } + mouseOutHandler() { } + render(): any { + return ( + { } } + mouseOverHandler={this.mouseOverHandler} + mouseOutHandler={this.mouseOutHandler} + mouseMoveHandler={this.mouseMoveHandler} + tickTimeDisplayFormat={'%d %m'} + interpolate={'cardinal'} + width={750} + height={250} + data={[ + [ + { x: '1-Jan-15', y: 20 }, + { x: '1-Feb-15', y: 10 }, + { x: '1-Mar-15', y: 33 }, + { x: '1-Apr-15', y: 45 }, + { x: '1-May-15', y: 15 } + ], [ + { x: '1-Jan-15', y: 10 }, + { x: '1-Feb-15', y: 15 }, + { x: '1-Mar-15', y: 13 }, + { x: '1-Apr-15', y: 15 }, + { x: '1-May-15', y: 10 } + ] + ]} + /> + ); + } +} + + +const data = [ + { + type: 'One', + x: 1, + y: 5 + }, + { + type: 'Two', + x: 3, + y: 1 + }, + { + type: 'Three', + x: 0, + y: 6 + }, + { + type: 'Four', + x: 5, + y: 2 + }, + { + type: 'Five', + x: 4, + y: 4 + }, + { + type: 'Six', + x: 5, + y: 9 + }, + { + type: 'Seven', + x: 9, + y: 1 + }, + { + type: 'Eight', + x: 5, + y: 6 + }, + { + type: 'Nine', + x: 3, + y: 9 + }, + { + type: 'Ten', + x: 7, + y: 9 + } +]; + +class ScatterplotData extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class ScatterplotHeightAndWidth extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class ScatterplotMargin extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class ScatterplotAxes extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class ScatterplotYAxisOrientation extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class ScatterplotAxesLabels extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class ScatterplotDotRadius extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class ScatterplotConfig extends React.Component<{}, {}> { + config = [ + { + type: 'One', + color: '#ff0000', + stroke: 'blue' + }, + { + type: 'Two', + color: '#00ff00', + stroke: 'blue' + }, + { + type: 'Three', + color: '#ffffff', + stroke: 'black' + } + ]; + render(): any { + return ( + + ); + } +} + +class ScatterplotGrid extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class ScatterplotVerticalGrid extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class ScatterplotAxisType extends React.Component<{}, {}> { + + typedData = [ + { + type: 1, + x: 'Tue', + y: 10 + }, + { + type: 1, + x: 'Wed', + y: 20 + }, + { + type: 2, + x: 'Tue', + y: 30 + }, + { + type: 3, + x: 'Thu', + y: 40 + } + ]; + render(): any { + return ( + + + ); + } +} + +class ScatterplotDomainRange extends React.Component<{}, {}> { + + typedData = [ + { + type: 1, + x: '1-Jan-15', + y: 10 + }, + { + type: 1, + x: '2-Jan-15', + y: 20 + }, + { + type: 2, + x: '1-Jan-15', + y: 30 + }, + { + type: 2, + x: '2-Jan-15', + y: 30 + }, + { + type: 3, + x: '3-Jan-15', + y: 40 + } + ]; + + render(): any { + return ( + + ); + } +} + +class ScatterplotMouseEvents extends React.Component<{}, {}> { + mouseOverHandler(d: any, e: any) { } + mouseMoveHandler(e: any) { } + mouseOutHandler() { } + render(): any { + return ( + + { } } + /> + ); + } +} + + +const pieData = [ + { key: 'Cats', value: 100 }, + { key: 'Dogs', value: 200 }, + { key: 'Other', value: 50 } +]; + +class LegendData extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +class LegendHorizontal extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + +const pieDataCustom = [ + { key: 'Cats', value: 100, color: '#aaac84' }, + { key: 'Dogs', value: 200, color: '#dce7c5' }, + { key: 'Other', value: 50, color: '#e3a51a' } +]; + +const config = [ + { color: '#aaac84' }, + { color: '#dce7c5' }, + { color: '#e3a51a' } +]; + +class LegendConfig extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} + + +/* default component styles */ +const defaultStyles = { + '.legend': { + 'list-style': 'none', + margin: 0, + padding: 0 + }, + '.legend li': { + display: 'block', + lineHeight: '24px', + marginRight: '24px', + marginBottom: '6px', + paddingLeft: '24px', + position: 'relative' + }, + '.legend li.horizontal': { + display: 'inline-block' + }, + '.legend .icon': { + width: '12px', + height: '12px', + background: 'red', + borderRadius: '6px', + position: 'absolute', + left: '0', + top: '50%', + marginTop: '-6px' + } +}; + +/* example override */ +const customStyle = { + '.legend': { + backgroundColor: '#f9f9f9', + border: '1px solid #e5e5e5', + borderRadius: '12px', + fontSize: '0.8em', + maxWidth: '300px', + padding: '12px' + } +}; + +class LegendStyles extends React.Component<{}, {}> { + render(): any { + return ( + + ); + } +} \ No newline at end of file diff --git a/react-easy-chart/tsconfig.json b/react-easy-chart/tsconfig.json new file mode 100644 index 0000000000..fa7efaac28 --- /dev/null +++ b/react-easy-chart/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "jsx": "react", + "typeRoots": [ + "../" + ], + "types": ["react"], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-easy-chart-tests.tsx" + ] +} \ No newline at end of file diff --git a/react-file-input/react-file-input.d.ts b/react-file-input/index.d.ts similarity index 100% rename from react-file-input/react-file-input.d.ts rename to react-file-input/index.d.ts diff --git a/react-file-input/tsconfig.json b/react-file-input/tsconfig.json index 6e2b25f0d2..25521dc631 100644 --- a/react-file-input/tsconfig.json +++ b/react-file-input/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-file-input.d.ts", + "index.d.ts", "react-file-input-tests.tsx" ] } \ No newline at end of file diff --git a/react-file-reader-input/react-file-reader-input.d.ts b/react-file-reader-input/index.d.ts similarity index 100% rename from react-file-reader-input/react-file-reader-input.d.ts rename to react-file-reader-input/index.d.ts diff --git a/react-file-reader-input/tsconfig.json b/react-file-reader-input/tsconfig.json index ec09339b0e..968de91e87 100644 --- a/react-file-reader-input/tsconfig.json +++ b/react-file-reader-input/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-file-reader-input.d.ts", + "index.d.ts", "react-file-reader-input-tests.tsx" ] } \ No newline at end of file diff --git a/react-flexr/react-flexr.d.ts b/react-flexr/index.d.ts similarity index 100% rename from react-flexr/react-flexr.d.ts rename to react-flexr/index.d.ts diff --git a/react-flexr/tsconfig.json b/react-flexr/tsconfig.json index 658fa94b63..4ae2aa3a91 100644 --- a/react-flexr/tsconfig.json +++ b/react-flexr/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-flexr.d.ts", + "index.d.ts", "react-flexr-tests.tsx" ] } \ No newline at end of file diff --git a/react-fontawesome/react-fontawesome.d.ts b/react-fontawesome/index.d.ts similarity index 100% rename from react-fontawesome/react-fontawesome.d.ts rename to react-fontawesome/index.d.ts diff --git a/react-fontawesome/tsconfig.json b/react-fontawesome/tsconfig.json index 9d1784f8a7..136824e9bc 100644 --- a/react-fontawesome/tsconfig.json +++ b/react-fontawesome/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-fontawesome.d.ts", + "index.d.ts", "react-fontawesome-tests.tsx" ] } \ No newline at end of file diff --git a/react-imageloader/react-imageloader.d.ts b/react-imageloader/index.d.ts similarity index 100% rename from react-imageloader/react-imageloader.d.ts rename to react-imageloader/index.d.ts diff --git a/react-imageloader/tsconfig.json b/react-imageloader/tsconfig.json index ce35e9adb2..457ffae645 100644 --- a/react-imageloader/tsconfig.json +++ b/react-imageloader/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-imageloader.d.ts", + "index.d.ts", "react-imageloader-tests.tsx" ] } \ No newline at end of file diff --git a/react-is-deprecated/react-is-deprecated.d.ts b/react-is-deprecated/index.d.ts similarity index 100% rename from react-is-deprecated/react-is-deprecated.d.ts rename to react-is-deprecated/index.d.ts diff --git a/react-is-deprecated/tsconfig.json b/react-is-deprecated/tsconfig.json index f9d5739a14..c5cf1213a3 100644 --- a/react-is-deprecated/tsconfig.json +++ b/react-is-deprecated/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-is-deprecated.d.ts", + "index.d.ts", "react-is-deprecated-tests.ts" ] } \ No newline at end of file diff --git a/react-jsonschema-form/react-jsonschema-form.d.ts b/react-jsonschema-form/index.d.ts similarity index 100% rename from react-jsonschema-form/react-jsonschema-form.d.ts rename to react-jsonschema-form/index.d.ts diff --git a/react-jsonschema-form/tsconfig.json b/react-jsonschema-form/tsconfig.json index b70a03d4ba..f1b6bb257d 100644 --- a/react-jsonschema-form/tsconfig.json +++ b/react-jsonschema-form/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-jsonschema-form.d.ts", + "index.d.ts", "react-jsonschema-form-tests.tsx" ] } \ No newline at end of file diff --git a/react-measure/react-measure.d.ts b/react-measure/index.d.ts similarity index 100% rename from react-measure/react-measure.d.ts rename to react-measure/index.d.ts diff --git a/react-measure/tsconfig.json b/react-measure/tsconfig.json index 0a0e3ad58e..99338af61d 100644 --- a/react-measure/tsconfig.json +++ b/react-measure/tsconfig.json @@ -15,7 +15,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "react-measure.d.ts", + "index.d.ts", "react-measure-tests.tsx" ] } \ No newline at end of file diff --git a/react-modal/react-modal.d.ts b/react-modal/index.d.ts similarity index 100% rename from react-modal/react-modal.d.ts rename to react-modal/index.d.ts diff --git a/react-modal/tsconfig.json b/react-modal/tsconfig.json index 87f956ff88..61490f70b7 100644 --- a/react-modal/tsconfig.json +++ b/react-modal/tsconfig.json @@ -14,7 +14,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "react-modal.d.ts", + "index.d.ts", "react-modal-tests.tsx" ] } \ No newline at end of file diff --git a/react-motion-slider/react-motion-slider.d.ts b/react-motion-slider/index.d.ts similarity index 100% rename from react-motion-slider/react-motion-slider.d.ts rename to react-motion-slider/index.d.ts diff --git a/react-motion-slider/tsconfig.json b/react-motion-slider/tsconfig.json index 09a7065508..d93775736c 100644 --- a/react-motion-slider/tsconfig.json +++ b/react-motion-slider/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-motion-slider.d.ts", + "index.d.ts", "react-motion-slider-tests.tsx" ] } \ No newline at end of file diff --git a/react-redux-i18n/index.d.ts b/react-redux-i18n/index.d.ts index aa47bb2723..d7851b23dc 100644 --- a/react-redux-i18n/index.d.ts +++ b/react-redux-i18n/index.d.ts @@ -20,6 +20,10 @@ declare module 'react-redux-i18n' { type TranslationObjects = { [lang: string]: SubTranslationObject }; + type DispatchCallback = { + (dispatch?: redux.Dispatch, getState?: () => S): any; + } + type I18nState = { translations: TranslationObjects; locale: string; @@ -55,8 +59,8 @@ declare module 'react-redux-i18n' { /** * Redux Actions */ - export function loadTranslations(translationsObject: TranslationObjects): void; + export function loadTranslations(translationsObject: TranslationObjects): DispatchCallback; - export function setLocale(locale: string): void; + export function setLocale(locale: string): DispatchCallback; } diff --git a/react-relay/react-relay.d.ts b/react-relay/index.d.ts similarity index 100% rename from react-relay/react-relay.d.ts rename to react-relay/index.d.ts diff --git a/react-relay/tsconfig.json b/react-relay/tsconfig.json index c3b3c4e209..c3fca33dab 100644 --- a/react-relay/tsconfig.json +++ b/react-relay/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-relay.d.ts", + "index.d.ts", "react-relay-test.tsx" ] } \ No newline at end of file diff --git a/react-responsive/react-responsive.d.ts b/react-responsive/index.d.ts similarity index 100% rename from react-responsive/react-responsive.d.ts rename to react-responsive/index.d.ts diff --git a/react-responsive/tsconfig.json b/react-responsive/tsconfig.json index a15be69b1e..2b46a3f997 100644 --- a/react-responsive/tsconfig.json +++ b/react-responsive/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-responsive.d.ts", + "index.d.ts", "react-responsive-tests.tsx" ] } \ No newline at end of file diff --git a/react-scrollbar/react-scrollbar.d.ts b/react-scrollbar/index.d.ts similarity index 100% rename from react-scrollbar/react-scrollbar.d.ts rename to react-scrollbar/index.d.ts diff --git a/react-scrollbar/tsconfig.json b/react-scrollbar/tsconfig.json index 1f4f102561..940cf56fbd 100644 --- a/react-scrollbar/tsconfig.json +++ b/react-scrollbar/tsconfig.json @@ -14,7 +14,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "react-scrollbar.d.ts", + "index.d.ts", "react-scrollbar-tests.tsx" ] } \ No newline at end of file diff --git a/react-slick/react-slick.d.ts b/react-slick/index.d.ts similarity index 100% rename from react-slick/react-slick.d.ts rename to react-slick/index.d.ts diff --git a/react-slick/tsconfig.json b/react-slick/tsconfig.json index f29388a78f..1a32f8f96a 100644 --- a/react-slick/tsconfig.json +++ b/react-slick/tsconfig.json @@ -14,7 +14,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "react-slick.d.ts", + "index.d.ts", "react-slick-test.tsx" ] } \ No newline at end of file diff --git a/react-sortable-hoc/react-sortable-hoc.d.ts b/react-sortable-hoc/index.d.ts similarity index 100% rename from react-sortable-hoc/react-sortable-hoc.d.ts rename to react-sortable-hoc/index.d.ts diff --git a/react-sortable-hoc/tsconfig.json b/react-sortable-hoc/tsconfig.json index 595b57b362..9873b4d2be 100644 --- a/react-sortable-hoc/tsconfig.json +++ b/react-sortable-hoc/tsconfig.json @@ -14,7 +14,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "react-sortable-hoc.d.ts", + "index.d.ts", "react-sortable-hoc-tests.tsx" ] } \ No newline at end of file diff --git a/react-split-pane/react-split-pane.d.ts b/react-split-pane/index.d.ts similarity index 100% rename from react-split-pane/react-split-pane.d.ts rename to react-split-pane/index.d.ts diff --git a/react-split-pane/tsconfig.json b/react-split-pane/tsconfig.json index e6db5fa417..f476a14fd6 100644 --- a/react-split-pane/tsconfig.json +++ b/react-split-pane/tsconfig.json @@ -14,7 +14,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "react-split-pane.d.ts", + "index.d.ts", "react-split-pane-tests.tsx" ] } \ No newline at end of file diff --git a/react-swipeable/react-swipeable.d.ts b/react-swipeable/index.d.ts similarity index 100% rename from react-swipeable/react-swipeable.d.ts rename to react-swipeable/index.d.ts diff --git a/react-swipeable/tsconfig.json b/react-swipeable/tsconfig.json index 02fd1d28d5..0ae8b22d4e 100644 --- a/react-swipeable/tsconfig.json +++ b/react-swipeable/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-swipeable.d.ts", + "index.d.ts", "react-swipeable-tests.tsx" ] } \ No newline at end of file diff --git a/react-textarea-autosize/react-textarea-autosize.d.ts b/react-textarea-autosize/index.d.ts similarity index 100% rename from react-textarea-autosize/react-textarea-autosize.d.ts rename to react-textarea-autosize/index.d.ts diff --git a/react-textarea-autosize/tsconfig.json b/react-textarea-autosize/tsconfig.json index 5f7456c652..90f12412d1 100644 --- a/react-textarea-autosize/tsconfig.json +++ b/react-textarea-autosize/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-textarea-autosize.d.ts", + "index.d.ts", "react-textarea-autosize-tests.tsx" ] } \ No newline at end of file diff --git a/react-user-tour/react-user-tour.d.ts b/react-user-tour/index.d.ts similarity index 100% rename from react-user-tour/react-user-tour.d.ts rename to react-user-tour/index.d.ts diff --git a/react-user-tour/tsconfig.json b/react-user-tour/tsconfig.json index 6ba3336beb..2a7f80fd83 100644 --- a/react-user-tour/tsconfig.json +++ b/react-user-tour/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "react-user-tour.d.ts", + "index.d.ts", "react-user-tour-tests.tsx" ] } \ No newline at end of file diff --git a/redux-bootstrap/redux-bootstrap.d.ts b/redux-bootstrap/index.d.ts similarity index 100% rename from redux-bootstrap/redux-bootstrap.d.ts rename to redux-bootstrap/index.d.ts diff --git a/redux-bootstrap/tsconfig.json b/redux-bootstrap/tsconfig.json index e5e83c285f..264ed2e6be 100644 --- a/redux-bootstrap/tsconfig.json +++ b/redux-bootstrap/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "redux-bootstrap.d.ts", + "index.d.ts", "redux-bootstrap-tests.tsx" ] } \ No newline at end of file diff --git a/redux-mock-store/redux-mock-store.d.ts b/redux-mock-store/index.d.ts similarity index 100% rename from redux-mock-store/redux-mock-store.d.ts rename to redux-mock-store/index.d.ts diff --git a/redux-mock-store/tsconfig.json b/redux-mock-store/tsconfig.json index 9e015629bd..1e0540ee2f 100644 --- a/redux-mock-store/tsconfig.json +++ b/redux-mock-store/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "redux-mock-store.d.ts", + "index.d.ts", "redux-mock-store-tests.ts" ] } \ No newline at end of file diff --git a/redux-optimistic-ui/redux-optimistic-ui.d.ts b/redux-optimistic-ui/index.d.ts similarity index 100% rename from redux-optimistic-ui/redux-optimistic-ui.d.ts rename to redux-optimistic-ui/index.d.ts diff --git a/redux-optimistic-ui/tsconfig.json b/redux-optimistic-ui/tsconfig.json index 8de339b93a..0f4499bc00 100644 --- a/redux-optimistic-ui/tsconfig.json +++ b/redux-optimistic-ui/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "redux-optimistic-ui.d.ts", + "index.d.ts", "redux-optimistic-ui-tests.ts" ] } \ No newline at end of file diff --git a/redux-promise-middleware/redux-promise-middleware.d.ts b/redux-promise-middleware/index.d.ts similarity index 100% rename from redux-promise-middleware/redux-promise-middleware.d.ts rename to redux-promise-middleware/index.d.ts diff --git a/redux-promise-middleware/tsconfig.json b/redux-promise-middleware/tsconfig.json index 380792b821..4b98cbafa9 100644 --- a/redux-promise-middleware/tsconfig.json +++ b/redux-promise-middleware/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "redux-promise-middleware.d.ts", + "index.d.ts", "redux-promise-middleware-tests.ts" ] } \ No newline at end of file diff --git a/redux-storage/redux-storage.d.ts b/redux-storage/index.d.ts similarity index 100% rename from redux-storage/redux-storage.d.ts rename to redux-storage/index.d.ts diff --git a/redux-storage/tsconfig.json b/redux-storage/tsconfig.json index 2559181263..08ffc4fd8c 100644 --- a/redux-storage/tsconfig.json +++ b/redux-storage/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "redux-storage.d.ts", + "index.d.ts", "redux-storage-tests.ts" ] } \ No newline at end of file diff --git a/redux-ui/redux-ui.d.ts b/redux-ui/index.d.ts similarity index 100% rename from redux-ui/redux-ui.d.ts rename to redux-ui/index.d.ts diff --git a/redux-ui/tsconfig.json b/redux-ui/tsconfig.json index 7bfc0fc3b7..b79ee9a548 100644 --- a/redux-ui/tsconfig.json +++ b/redux-ui/tsconfig.json @@ -15,7 +15,7 @@ "experimentalDecorators": true }, "files": [ - "redux-ui.d.ts", + "index.d.ts", "redux-ui-tests.ts" ] } \ No newline at end of file diff --git a/restler/restler.d.ts b/restler/index.d.ts similarity index 100% rename from restler/restler.d.ts rename to restler/index.d.ts diff --git a/restler/restler-tests.ts b/restler/restler-tests.ts index 8c53455d08..5cb11d71c1 100644 --- a/restler/restler-tests.ts +++ b/restler/restler-tests.ts @@ -1,5 +1,3 @@ -/// - import rest = require("restler"); rest.get("http://google.com").on("complete", function(result) { diff --git a/restler/tsconfig.json b/restler/tsconfig.json index 4d717eca0b..0944a4d389 100644 --- a/restler/tsconfig.json +++ b/restler/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "restler.d.ts", + "index.d.ts", "restler-tests.ts" ] } \ No newline at end of file diff --git a/rx-node/rx-node.d.ts b/rx-node/index.d.ts similarity index 100% rename from rx-node/rx-node.d.ts rename to rx-node/index.d.ts diff --git a/rx-node/tsconfig.json b/rx-node/tsconfig.json index e3bd39f99b..c54c9376e0 100644 --- a/rx-node/tsconfig.json +++ b/rx-node/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "rx-node.d.ts", + "index.d.ts", "rx-node-tests.ts" ] } \ No newline at end of file diff --git a/samchon-collection/samchon-collection.d.ts b/samchon-collection/index.d.ts similarity index 100% rename from samchon-collection/samchon-collection.d.ts rename to samchon-collection/index.d.ts diff --git a/samchon-collection/tsconfig.json b/samchon-collection/tsconfig.json index a429882ac7..8059eff31e 100644 --- a/samchon-collection/tsconfig.json +++ b/samchon-collection/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "samchon-collection.d.ts", + "index.d.ts", "samchon-collection-tests.ts" ] } \ No newline at end of file diff --git a/samchon-library/samchon-library.d.ts b/samchon-library/index.d.ts similarity index 100% rename from samchon-library/samchon-library.d.ts rename to samchon-library/index.d.ts diff --git a/samchon-library/tsconfig.json b/samchon-library/tsconfig.json index e0415f7dce..8a82cba20e 100644 --- a/samchon-library/tsconfig.json +++ b/samchon-library/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "samchon-library.d.ts", + "index.d.ts", "samchon-library-tests.ts" ] } \ No newline at end of file diff --git a/samlp/samlp.d.ts b/samlp/index.d.ts similarity index 100% rename from samlp/samlp.d.ts rename to samlp/index.d.ts diff --git a/samlp/tsconfig.json b/samlp/tsconfig.json index b15ade33c8..232e1c91c9 100644 --- a/samlp/tsconfig.json +++ b/samlp/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "samlp.d.ts", + "index.d.ts", "samlp-tests.ts" ] } \ No newline at end of file diff --git a/set-cookie-parser/set-cookie-parser.d.ts b/set-cookie-parser/index.d.ts similarity index 100% rename from set-cookie-parser/set-cookie-parser.d.ts rename to set-cookie-parser/index.d.ts diff --git a/set-cookie-parser/tsconfig.json b/set-cookie-parser/tsconfig.json index a913efaa2f..7421e98713 100644 --- a/set-cookie-parser/tsconfig.json +++ b/set-cookie-parser/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "set-cookie-parser.d.ts", + "index.d.ts", "set-cookie-parser-tests.ts" ] } \ No newline at end of file diff --git a/sinon-as-promised/sinon-as-promised.d.ts b/sinon-as-promised/index.d.ts similarity index 100% rename from sinon-as-promised/sinon-as-promised.d.ts rename to sinon-as-promised/index.d.ts diff --git a/sinon-as-promised/tsconfig.json b/sinon-as-promised/tsconfig.json index 401bb42813..e0f4115b31 100644 --- a/sinon-as-promised/tsconfig.json +++ b/sinon-as-promised/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "sinon-as-promised.d.ts", + "index.d.ts", "sinon-as-promised-tests.ts" ] } \ No newline at end of file diff --git a/socket.io-parser/socket.io-parser.d.ts b/socket.io-parser/index.d.ts similarity index 100% rename from socket.io-parser/socket.io-parser.d.ts rename to socket.io-parser/index.d.ts diff --git a/socket.io-parser/tsconfig.json b/socket.io-parser/tsconfig.json index 3f1b76a17d..5f4cc707bf 100644 --- a/socket.io-parser/tsconfig.json +++ b/socket.io-parser/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "socket.io-parser.d.ts", + "index.d.ts", "socket.io-parser-tests.ts" ] } \ No newline at end of file diff --git a/spectacle/spectacle.d.ts b/spectacle/index.d.ts similarity index 100% rename from spectacle/spectacle.d.ts rename to spectacle/index.d.ts diff --git a/spectacle/tsconfig.json b/spectacle/tsconfig.json index 3c7af053b3..8744505972 100644 --- a/spectacle/tsconfig.json +++ b/spectacle/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "spectacle.d.ts", + "index.d.ts", "spectacle-tests.tsx" ] } \ No newline at end of file diff --git a/spin/index.d.ts b/spin.js/index.d.ts similarity index 100% rename from spin/index.d.ts rename to spin.js/index.d.ts diff --git a/spin/spin-tests.ts b/spin.js/spin.js-tests.ts similarity index 100% rename from spin/spin-tests.ts rename to spin.js/spin.js-tests.ts diff --git a/spin/tsconfig.json b/spin.js/tsconfig.json similarity index 93% rename from spin/tsconfig.json rename to spin.js/tsconfig.json index c05545cf34..e4aaa00965 100644 --- a/spin/tsconfig.json +++ b/spin.js/tsconfig.json @@ -14,6 +14,6 @@ }, "files": [ "index.d.ts", - "spin-tests.ts" + "spin.js-tests.ts" ] } \ No newline at end of file diff --git a/split2/split2.d.ts b/split2/index.d.ts similarity index 100% rename from split2/split2.d.ts rename to split2/index.d.ts diff --git a/split2/tsconfig.json b/split2/tsconfig.json index c53b9e6d26..fe7b3061f4 100644 --- a/split2/tsconfig.json +++ b/split2/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "split2.d.ts", + "index.d.ts", "split2-tests.ts" ] } \ No newline at end of file diff --git a/sqs-consumer/sqs-consumer.d.ts b/sqs-consumer/index.d.ts similarity index 100% rename from sqs-consumer/sqs-consumer.d.ts rename to sqs-consumer/index.d.ts diff --git a/sqs-consumer/tsconfig.json b/sqs-consumer/tsconfig.json index b485ab29dd..309e7f7fe2 100644 --- a/sqs-consumer/tsconfig.json +++ b/sqs-consumer/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "sqs-consumer.d.ts", + "index.d.ts", "sqs-consumer-tests.ts" ] } \ No newline at end of file diff --git a/sqs-producer/sqs-producer.d.ts b/sqs-producer/index.d.ts similarity index 100% rename from sqs-producer/sqs-producer.d.ts rename to sqs-producer/index.d.ts diff --git a/sqs-producer/tsconfig.json b/sqs-producer/tsconfig.json index 375eb798b3..12076b1b87 100644 --- a/sqs-producer/tsconfig.json +++ b/sqs-producer/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "sqs-producer.d.ts", + "index.d.ts", "sqs-producer-tests.ts" ] } \ No newline at end of file diff --git a/ssh2-sftp-client/ssh2-sftp-client.d.ts b/ssh2-sftp-client/index.d.ts similarity index 100% rename from ssh2-sftp-client/ssh2-sftp-client.d.ts rename to ssh2-sftp-client/index.d.ts diff --git a/ssh2-sftp-client/tsconfig.json b/ssh2-sftp-client/tsconfig.json index 205f36fe68..c63555d3d9 100644 --- a/ssh2-sftp-client/tsconfig.json +++ b/ssh2-sftp-client/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "ssh2-sftp-client.d.ts", + "index.d.ts", "ssh2-sftp-client-tests.ts" ] } \ No newline at end of file diff --git a/swagger-express-middleware/swagger-express-middleware.d.ts b/swagger-express-middleware/index.d.ts similarity index 100% rename from swagger-express-middleware/swagger-express-middleware.d.ts rename to swagger-express-middleware/index.d.ts diff --git a/swagger-express-middleware/tsconfig.json b/swagger-express-middleware/tsconfig.json index b9091e6829..8b0d9bbded 100644 --- a/swagger-express-middleware/tsconfig.json +++ b/swagger-express-middleware/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "swagger-express-middleware.d.ts", + "index.d.ts", "swagger-express-middleware-tests.ts" ] } \ No newline at end of file diff --git a/three/index.d.ts b/three/index.d.ts index 3fa2c60b12..75c3332ec6 100644 --- a/three/index.d.ts +++ b/three/index.d.ts @@ -2737,7 +2737,7 @@ declare namespace THREE { constructor(parameters?: ShaderMaterialParameters); defines: any; - uniforms: any; // type should be { [uniform: string]: { value: any }; }; but gives "Index signature is missing in type" error during compilation + uniforms: { [uniform: string]: IUniform }; vertexShader: string; fragmentShader: string; linewidth: number; @@ -3646,7 +3646,7 @@ declare namespace THREE { inverse(): Quaternion; conjugate(): Quaternion; - dot(v: Vector3): number; + dot(v: Quaternion): number; lengthSq(): number; /** @@ -5115,7 +5115,7 @@ declare namespace THREE { }; export interface Shader { - uniforms: IUniform; + uniforms: { [uniform: string]: IUniform }; vertexShader: string; fragmentShader: string; } diff --git a/tinder/tinder.d.ts b/tinder/index.d.ts similarity index 100% rename from tinder/tinder.d.ts rename to tinder/index.d.ts diff --git a/tinder/tsconfig.json b/tinder/tsconfig.json index 891c7e47a7..4c7ff01101 100644 --- a/tinder/tsconfig.json +++ b/tinder/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "tinder.d.ts", + "index.d.ts", "tinder-tests.ts" ] } \ No newline at end of file diff --git a/torrent-stream/torrent-stream.d.ts b/torrent-stream/index.d.ts similarity index 100% rename from torrent-stream/torrent-stream.d.ts rename to torrent-stream/index.d.ts diff --git a/torrent-stream/tsconfig.json b/torrent-stream/tsconfig.json index d19142a503..b6662c06b2 100644 --- a/torrent-stream/tsconfig.json +++ b/torrent-stream/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "torrent-stream.d.ts", + "index.d.ts", "torrent-stream-tests.ts" ] } \ No newline at end of file diff --git a/twit/twit.d.ts b/twit/index.d.ts similarity index 100% rename from twit/twit.d.ts rename to twit/index.d.ts diff --git a/twit/tsconfig.json b/twit/tsconfig.json index 0b866f484a..aaed4adfad 100644 --- a/twit/tsconfig.json +++ b/twit/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "twit.d.ts", + "index.d.ts", "twit-tests.ts" ] } \ No newline at end of file diff --git a/usb/index.d.ts b/usb/index.d.ts index 1e8a994383..da2cce8b96 100644 --- a/usb/index.d.ts +++ b/usb/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for node-usb 1.1.2 +// Type definitions for node-usb 1.1 // Project: https://github.com/nonolith/node-usb // Definitions by: Eric Brody // Definitions: https://github.com/borisyankov/DefinitelyTyped diff --git a/v8-profiler/v8-profiler.d.ts b/v8-profiler/index.d.ts similarity index 100% rename from v8-profiler/v8-profiler.d.ts rename to v8-profiler/index.d.ts diff --git a/v8-profiler/tsconfig.json b/v8-profiler/tsconfig.json index d7b22ff846..a7f491edce 100644 --- a/v8-profiler/tsconfig.json +++ b/v8-profiler/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "v8-profiler.d.ts", + "index.d.ts", "v8-profiler-tests.ts" ] } \ No newline at end of file diff --git a/v8-profiler/v8-profiler-tests.ts b/v8-profiler/v8-profiler-tests.ts index aebaee7a15..635dee085f 100644 --- a/v8-profiler/v8-profiler-tests.ts +++ b/v8-profiler/v8-profiler-tests.ts @@ -1,5 +1,3 @@ -/// - import * as fs from "fs"; import * as profiler from "v8-profiler"; diff --git a/victory/victory.d.ts b/victory/index.d.ts similarity index 100% rename from victory/victory.d.ts rename to victory/index.d.ts diff --git a/victory/tsconfig.json b/victory/tsconfig.json index 35f1bf290d..9da672453f 100644 --- a/victory/tsconfig.json +++ b/victory/tsconfig.json @@ -15,7 +15,7 @@ "jsx": "react" }, "files": [ - "victory.d.ts", + "index.d.ts", "victory-tests.tsx" ] } \ No newline at end of file diff --git a/webpack-dev-server/webpack-dev-server.d.ts b/webpack-dev-server/index.d.ts similarity index 100% rename from webpack-dev-server/webpack-dev-server.d.ts rename to webpack-dev-server/index.d.ts diff --git a/webpack-dev-server/tsconfig.json b/webpack-dev-server/tsconfig.json index 2332ded163..c505986fbb 100644 --- a/webpack-dev-server/tsconfig.json +++ b/webpack-dev-server/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "webpack-dev-server.d.ts", + "index.d.ts", "webpack-dev-server-tests.ts" ] } \ No newline at end of file diff --git a/webpack-dev-server/webpack-dev-server-tests.ts b/webpack-dev-server/webpack-dev-server-tests.ts index 8761eb9a59..21af59885a 100644 --- a/webpack-dev-server/webpack-dev-server-tests.ts +++ b/webpack-dev-server/webpack-dev-server-tests.ts @@ -1,5 +1,3 @@ -/// - import * as webpack from 'webpack'; import * as WebpackDevServer from 'webpack-dev-server'; var compiler = webpack({}); @@ -20,7 +18,7 @@ server = new WebpackDevServer(compiler, { // Enable special support for Hot Module Replacement // Page is no longer updated, but a "webpackHotUpdate" message is send to the content // Use "webpack/hot/dev-server" as additional module in your entry point - // Note: this does _not_ add the `HotModuleReplacementPlugin` like the CLI option does. + // Note: this does _not_ add the `HotModuleReplacementPlugin` like the CLI option does. // Set this as true if you want to access dev server from arbitrary url. // This is handy if you are using a html5 router. diff --git a/webpack-fail-plugin/webpack-fail-plugin.d.ts b/webpack-fail-plugin/index.d.ts similarity index 100% rename from webpack-fail-plugin/webpack-fail-plugin.d.ts rename to webpack-fail-plugin/index.d.ts diff --git a/webpack-fail-plugin/tsconfig.json b/webpack-fail-plugin/tsconfig.json index b2dcb556ba..45da9eda05 100644 --- a/webpack-fail-plugin/tsconfig.json +++ b/webpack-fail-plugin/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "webpack-fail-plugin.d.ts", + "index.d.ts", "webpack-fail-plugin-tests.ts" ] } \ No newline at end of file diff --git a/webpack-merge/webpack-merge.d.ts b/webpack-merge/index.d.ts similarity index 100% rename from webpack-merge/webpack-merge.d.ts rename to webpack-merge/index.d.ts diff --git a/webpack-merge/tsconfig.json b/webpack-merge/tsconfig.json index 9a790a0d67..1ac41b1a73 100644 --- a/webpack-merge/tsconfig.json +++ b/webpack-merge/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "webpack-merge.d.ts", + "index.d.ts", "webpack-merge-tests.ts" ] } \ No newline at end of file diff --git a/webpack-stream/webpack-stream.d.ts b/webpack-stream/index.d.ts similarity index 100% rename from webpack-stream/webpack-stream.d.ts rename to webpack-stream/index.d.ts diff --git a/webpack-stream/tsconfig.json b/webpack-stream/tsconfig.json index 22cb00921f..b5b8e7f1bf 100644 --- a/webpack-stream/tsconfig.json +++ b/webpack-stream/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "webpack-stream.d.ts", + "index.d.ts", "webpack-stream-tests.ts" ] } \ No newline at end of file diff --git a/webpack-validator/webpack-validator.d.ts b/webpack-validator/index.d.ts similarity index 100% rename from webpack-validator/webpack-validator.d.ts rename to webpack-validator/index.d.ts diff --git a/webpack-validator/tsconfig.json b/webpack-validator/tsconfig.json index 6361cb196b..eba1923f74 100644 --- a/webpack-validator/tsconfig.json +++ b/webpack-validator/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "webpack-validator.d.ts", + "index.d.ts", "webpack-validator-tests.ts" ] } \ No newline at end of file diff --git a/why-did-you-update/why-did-you-update.d.ts b/why-did-you-update/index.d.ts similarity index 100% rename from why-did-you-update/why-did-you-update.d.ts rename to why-did-you-update/index.d.ts diff --git a/why-did-you-update/tsconfig.json b/why-did-you-update/tsconfig.json index 4ce50757f7..912bd84be8 100644 --- a/why-did-you-update/tsconfig.json +++ b/why-did-you-update/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "why-did-you-update.d.ts", + "index.d.ts", "why-did-you-update-tests.ts" ] } \ No newline at end of file diff --git a/winston-dynamodb/winston-dynamodb.d.ts b/winston-dynamodb/index.d.ts similarity index 100% rename from winston-dynamodb/winston-dynamodb.d.ts rename to winston-dynamodb/index.d.ts diff --git a/winston-dynamodb/tsconfig.json b/winston-dynamodb/tsconfig.json index c5b2035097..ddfaa0fb8c 100644 --- a/winston-dynamodb/tsconfig.json +++ b/winston-dynamodb/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "winston-dynamodb.d.ts", + "index.d.ts", "winston-dynamodb-tests.ts" ] } \ No newline at end of file diff --git a/winston/index.d.ts b/winston/index.d.ts index 6fccfe514c..0b10766d10 100644 --- a/winston/index.d.ts +++ b/winston/index.d.ts @@ -11,6 +11,8 @@ /// Winston v2.2.x ///****************** +import {Agent} from 'http'; + declare var winston: winston.Winston; export = winston; @@ -159,6 +161,15 @@ declare namespace winston { } export interface TransportInstance extends TransportStatic, NodeJS.EventEmitter { + silent: boolean; + raw: boolean; + name: string; + formatter?: Function; + level?: string; + handleExceptions: boolean; + exceptionsLevel: string; + humanReadableUnhandledException: boolean; + formatQuery(query: (string | Object)): (string | Object); normalizeQuery(options: QueryOptions): QueryOptions; formatResults(results: (Object | Array), options?: Object): (Object | Array); @@ -166,6 +177,19 @@ declare namespace winston { } export interface ConsoleTransportInstance extends TransportInstance { + json: boolean; + colorize: boolean; + prettyPrint: boolean; + timestamp: boolean; + showLevel: boolean; + label: string|null; + logstash: boolean; + depth: string|null; + align: boolean; + stderrLevels: {[key: string]: LeveledLogMethod;} + eol: string; + stringify?: (obj: Object) => string; + new (options?: ConsoleTransportOptions): ConsoleTransportInstance; } @@ -174,15 +198,52 @@ declare namespace winston { } export interface FileTransportInstance extends TransportInstance { + json: boolean; + logstash: boolean; + colorize: boolean; + maxsize: number|null; + rotationFormat: boolean; + zippedArchive: boolean; + maxFiles: number|null; + prettyPrint: boolean; + label: string|null; + timestamp: boolean; + eol: string; + tailable: boolean; + depth: string|null; + showLevel: boolean; + maxRetries: number; + stringify?: (obj: Object) => string; + new (options?: FileTransportOptions): FileTransportInstance; close(): void; } export interface HttpTransportInstance extends TransportInstance { + name: string; + ssl: boolean; + host: string; + port: number; + auth?: {username: string, password: string}; + path: string; + agent?: Agent|null; + new (options?: HttpTransportOptions): HttpTransportInstance; } export interface MemoryTransportInstance extends TransportInstance { + errorOutput: GenericTextTransportOptions[]; + writeOutput: GenericTextTransportOptions[]; + + json: boolean; + colorize: boolean; + prettyPrint: boolean; + timestamp: boolean; + showLevel: boolean; + label: string|null; + depth: string|null; + stringify?: (obj: Object) => string; + new (options?: MemoryTransportOptions): MemoryTransportInstance; } diff --git a/xmlpoke/xmlpoke.d.ts b/xmlpoke/index.d.ts similarity index 100% rename from xmlpoke/xmlpoke.d.ts rename to xmlpoke/index.d.ts diff --git a/xmlpoke/tsconfig.json b/xmlpoke/tsconfig.json index 7157d9aad3..d2ab396bd2 100644 --- a/xmlpoke/tsconfig.json +++ b/xmlpoke/tsconfig.json @@ -13,7 +13,7 @@ "forceConsistentCasingInFileNames": true }, "files": [ - "xmlpoke.d.ts", + "index.d.ts", "xmlpoke-tests.ts" ] } \ No newline at end of file