From b57d44c4c9bfff531b35a9210b9d2d3a84d24aba Mon Sep 17 00:00:00 2001 From: Olga Isakova Date: Tue, 19 Feb 2019 02:02:28 +0500 Subject: [PATCH 1/5] Adjust the export to work with esModuleInterop --- types/mongo-sanitize/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/mongo-sanitize/index.d.ts b/types/mongo-sanitize/index.d.ts index 44c5d04a7d..1c5308d55c 100644 --- a/types/mongo-sanitize/index.d.ts +++ b/types/mongo-sanitize/index.d.ts @@ -1,9 +1,9 @@ // Type definitions for mongo-sanitize 1.0 // Project: https://github.com/vkarpov15/mongo-sanitize -// Definitions by: Cedric Cazin +// Definitions by: Cedric Cazin , Olga Isakova // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -export function sanitize(v: T): T; +declare function sanitize(v: T): T; -export as namespace mongoSanitize; +export = sanitize; From 5bf116d71b09273334b70f5e96a272ad5fa4c104 Mon Sep 17 00:00:00 2001 From: Olga Isakova Date: Tue, 19 Feb 2019 02:19:33 +0500 Subject: [PATCH 2/5] Tests, TS version --- types/mongo-sanitize/index.d.ts | 2 +- types/mongo-sanitize/mongo-sanitize-tests.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/types/mongo-sanitize/index.d.ts b/types/mongo-sanitize/index.d.ts index 1c5308d55c..aedff46b0b 100644 --- a/types/mongo-sanitize/index.d.ts +++ b/types/mongo-sanitize/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/vkarpov15/mongo-sanitize // Definitions by: Cedric Cazin , Olga Isakova // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 3.3 declare function sanitize(v: T): T; diff --git a/types/mongo-sanitize/mongo-sanitize-tests.ts b/types/mongo-sanitize/mongo-sanitize-tests.ts index 4d4534bbeb..3f86dc256e 100644 --- a/types/mongo-sanitize/mongo-sanitize-tests.ts +++ b/types/mongo-sanitize/mongo-sanitize-tests.ts @@ -1,11 +1,11 @@ -import * as mongoSanitize from 'mongo-sanitize'; +import sanitize from "mongo-sanitize"; -const objectSanitized = mongoSanitize.sanitize({ $gt: 5, a: 1 }); +const objectSanitized = sanitize({ $gt: 5, a: 1 }); -const arraySanitized = mongoSanitize.sanitize([1, 2, 3]); +const arraySanitized = sanitize([1, 2, 3]); class Clazz { $gt = 5; a = 1; } -const classSanitized = mongoSanitize.sanitize(new Clazz()); +const classSanitized = sanitize(new Clazz()); From a29a526c915dbf7d74b7e02a9806afbeea4f7f28 Mon Sep 17 00:00:00 2001 From: Olga Isakova Date: Sun, 10 Mar 2019 22:33:20 +0300 Subject: [PATCH 3/5] TS version back to 2.3 I tested with 3.3 and thought the comment referred to the latest compatible version. But yes, 3.3 is not a requirement. --- types/mongo-sanitize/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mongo-sanitize/index.d.ts b/types/mongo-sanitize/index.d.ts index aedff46b0b..1c5308d55c 100644 --- a/types/mongo-sanitize/index.d.ts +++ b/types/mongo-sanitize/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/vkarpov15/mongo-sanitize // Definitions by: Cedric Cazin , Olga Isakova // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.3 +// TypeScript Version: 2.3 declare function sanitize(v: T): T; From ac041e3704e81a56b7c12d1dd2be4d5a6e302706 Mon Sep 17 00:00:00 2001 From: Olga Isakova Date: Sun, 10 Mar 2019 23:45:18 +0300 Subject: [PATCH 4/5] Version 2.7 import foo from "foo" from CommonJS modules is only possible since TS v2.7 --- types/mongo-sanitize/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mongo-sanitize/index.d.ts b/types/mongo-sanitize/index.d.ts index 1c5308d55c..cf187384a4 100644 --- a/types/mongo-sanitize/index.d.ts +++ b/types/mongo-sanitize/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/vkarpov15/mongo-sanitize // Definitions by: Cedric Cazin , Olga Isakova // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.7 declare function sanitize(v: T): T; From f0e6c9792866d15cf439a44717832c6f447cc3c8 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com> Date: Mon, 11 Mar 2019 09:09:21 -0700 Subject: [PATCH 5/5] Add missing authors. Uncovered by dtslint 0.5.4, which now requires that definitions cannot be by "My Self", which is the default from dts-gen. --- types/axe-webdriverjs/index.d.ts | 2 +- types/basicauth-middleware/index.d.ts | 2 +- types/bip32/index.d.ts | 2 +- types/braft-editor/index.d.ts | 2 +- types/cli-progress/index.d.ts | 2 +- types/config-yaml/index.d.ts | 2 +- types/jsreport-html-to-xlsx/index.d.ts | 2 +- types/jsreport-html-to-xlsx/v1/index.d.ts | 2 +- types/permit/index.d.ts | 2 +- types/pet-finder-api/index.d.ts | 2 +- types/provinces/index.d.ts | 2 +- types/react-blessed/index.d.ts | 2 +- types/react-native-tab-navigator/index.d.ts | 2 +- types/require-directory/index.d.ts | 2 +- types/urlencode/index.d.ts | 2 +- types/vue-color/index.d.ts | 2 +- 16 files changed, 16 insertions(+), 16 deletions(-) diff --git a/types/axe-webdriverjs/index.d.ts b/types/axe-webdriverjs/index.d.ts index 3c8ae27249..c3bf23f788 100644 --- a/types/axe-webdriverjs/index.d.ts +++ b/types/axe-webdriverjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for axe-webdriverjs 2.0 // Project: https://github.com/dequelabs/axe-webdriverjs#readme -// Definitions by: My Self +// Definitions by: Joshua Goldberg // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/basicauth-middleware/index.d.ts b/types/basicauth-middleware/index.d.ts index 21e3a27ad8..38aedd850b 100644 --- a/types/basicauth-middleware/index.d.ts +++ b/types/basicauth-middleware/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for basicauth-middleware 3.1 // Project: https://github.com/nchaulet/basicauth-middleware -// Definitions by: My Self +// Definitions by: Nicolas Chaulet // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/bip32/index.d.ts b/types/bip32/index.d.ts index c536f741af..e76deef810 100644 --- a/types/bip32/index.d.ts +++ b/types/bip32/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bip32 1.0 // Project: https://github.com/bitcoinjs/bip32#readme -// Definitions by: My Self +// Definitions by: eduhenke // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/braft-editor/index.d.ts b/types/braft-editor/index.d.ts index 62f339a41b..0edeb34b2c 100644 --- a/types/braft-editor/index.d.ts +++ b/types/braft-editor/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for braft-editor 1.9 // Project: https://github.com/margox/braft#readme -// Definitions by: My Self +// Definitions by: Jonny Yao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/cli-progress/index.d.ts b/types/cli-progress/index.d.ts index 3ac9dfe8a3..4c2c516d37 100644 --- a/types/cli-progress/index.d.ts +++ b/types/cli-progress/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for cli-progress 1.8 // Project: https://github.com/AndiDittrich/Node.CLI-Progress -// Definitions by: My Self +// Definitions by: Mohamed Hegazy // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/config-yaml/index.d.ts b/types/config-yaml/index.d.ts index 6f2be7957b..2b4e07628d 100644 --- a/types/config-yaml/index.d.ts +++ b/types/config-yaml/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for config-yaml 1.1 // Project: https://github.com/neolao/config-yaml#readme -// Definitions by: My Self +// Definitions by: Arylo Yeung // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/jsreport-html-to-xlsx/index.d.ts b/types/jsreport-html-to-xlsx/index.d.ts index 83ac765c1f..85850dcbe7 100644 --- a/types/jsreport-html-to-xlsx/index.d.ts +++ b/types/jsreport-html-to-xlsx/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jsreport-html-to-xlsx 2.0 // Project: https://github.com/jsreport/jsreport-html-to-xlsx -// Definitions by: My Self +// Definitions by: Tao Quifeng // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jsreport-html-to-xlsx/v1/index.d.ts b/types/jsreport-html-to-xlsx/v1/index.d.ts index 84b37480aa..8801d637a2 100644 --- a/types/jsreport-html-to-xlsx/v1/index.d.ts +++ b/types/jsreport-html-to-xlsx/v1/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for jsreport-html-to-xlsx 1.4 // Project: https://github.com/jsreport/jsreport-html-to-xlsx -// Definitions by: My Self +// Definitions by: Tao Quifeng // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/permit/index.d.ts b/types/permit/index.d.ts index b0c2db9b42..961aee845b 100644 --- a/types/permit/index.d.ts +++ b/types/permit/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for permit 0.2 // Project: https://github.com/ianstormtaylor/permit#readme -// Definitions by: My Self +// Definitions by: Jannik Keye // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/pet-finder-api/index.d.ts b/types/pet-finder-api/index.d.ts index e438bda1c2..39855aab1a 100644 --- a/types/pet-finder-api/index.d.ts +++ b/types/pet-finder-api/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for pet-finder-api 1.0 // Project: https://github.com/drlukeangel/Pet-Finder-API-Javascript-Library -// Definitions by: My Self +// Definitions by: ncipollina // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function petFinder(api_key: string, api_secret: string, options?: any): petFinder.PetFinder; diff --git a/types/provinces/index.d.ts b/types/provinces/index.d.ts index 2601d14da4..17d59ee03d 100644 --- a/types/provinces/index.d.ts +++ b/types/provinces/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for provinces 1.11 // Project: https://github.com/substack/provinces -// Definitions by: My Self +// Definitions by: William Lohan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare global { diff --git a/types/react-blessed/index.d.ts b/types/react-blessed/index.d.ts index 33c9fe2790..46d0e7e495 100644 --- a/types/react-blessed/index.d.ts +++ b/types/react-blessed/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-blessed 0.3 // Project: https://github.com/yomguithereal/react-blessed#readme -// Definitions by: My Self +// Definitions by: Century Guo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/react-native-tab-navigator/index.d.ts b/types/react-native-tab-navigator/index.d.ts index 1586b7279a..7ee7a52cf2 100644 --- a/types/react-native-tab-navigator/index.d.ts +++ b/types/react-native-tab-navigator/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-native-tab-navigator 0.3 // Project: https://github.com/exponentjs/react-native-tab-navigator#readme -// Definitions by: My Self +// Definitions by: Kyle Roach // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 diff --git a/types/require-directory/index.d.ts b/types/require-directory/index.d.ts index bd2b520865..5d45f66f00 100644 --- a/types/require-directory/index.d.ts +++ b/types/require-directory/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for require-directory 2.1 // Project: https://github.com/troygoode/node-require-directory/ -// Definitions by: My Self +// Definitions by: Ihor Chulinda // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 /// diff --git a/types/urlencode/index.d.ts b/types/urlencode/index.d.ts index 451626cb79..a32e7bea25 100644 --- a/types/urlencode/index.d.ts +++ b/types/urlencode/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for urlencode 1.1 // Project: https://github.com/node-modules/urlencode -// Definitions by: My Self +// Definitions by: kimcoder // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface charsetParam { diff --git a/types/vue-color/index.d.ts b/types/vue-color/index.d.ts index 758d823589..0d59b5965e 100644 --- a/types/vue-color/index.d.ts +++ b/types/vue-color/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for vue-color 2.4 // Project: https://github.com/xiaokaike/vue-color#readme -// Definitions by: My Self +// Definitions by: Clément Flodrops // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4