diff --git a/scripts/try-node16.js b/scripts/try-node16.js index 69bff2140a6ebe..bbe4e65cdb0028 100644 --- a/scripts/try-node16.js +++ b/scripts/try-node16.js @@ -1,12 +1,23 @@ +import { AllPackages, getDefinitelyTyped } from "@definitelytyped/definitions-parser"; +import { loggerWithErrors } from "@definitelytyped/utils"; import cp from "child_process"; import fs from "fs"; import path from "path"; import url from "url"; -const tsconfigs = process.argv.slice(2); const __dirname = url.fileURLToPath(new URL(".", import.meta.url)); +const repoRoot = path.join(__dirname, ".."); -for (const tsconfigPath of tsconfigs) { +const dtFS = await getDefinitelyTyped({ + definitelyTypedPath: repoRoot, + progress: false, +}, loggerWithErrors()[0]); + +const allPackages = AllPackages.fromFS(dtFS); + +for (const pkg of await allPackages.allTypings()) { + console.log(`Trying ${pkg.subDirectoryPath}...`); + const tsconfigPath = path.join(repoRoot, "types", pkg.subDirectoryPath, "tsconfig.json"); const tsconfigString = fs.readFileSync(tsconfigPath, "utf-8"); const tsconfig = JSON.parse(tsconfigString); if (tsconfig.compilerOptions.module === "node16") { @@ -20,7 +31,7 @@ for (const tsconfigPath of tsconfigs) { try { cp.execFileSync( - path.join(__dirname, "node_modules/.bin/tsc"), + path.join(repoRoot, "node_modules/.bin/tsc"), ["-p", tsconfigPath, "--noEmit"], { stdio: "ignore" }, ); diff --git a/types/accounting/tsconfig.json b/types/accounting/tsconfig.json index 21bcd8cb745b0f..b1d68410df6326 100644 --- a/types/accounting/tsconfig.json +++ b/types/accounting/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/ace/tsconfig.json b/types/ace/tsconfig.json index b923ccb3eca18f..d2fedc4c4b78ae 100644 --- a/types/ace/tsconfig.json +++ b/types/ace/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/activex-adodb/tsconfig.json b/types/activex-adodb/tsconfig.json index 2395eab841a2a1..9508a91858f27b 100644 --- a/types/activex-adodb/tsconfig.json +++ b/types/activex-adodb/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/activex-adox/tsconfig.json b/types/activex-adox/tsconfig.json index 2189cf0490e7bd..df73784ccf361a 100644 --- a/types/activex-adox/tsconfig.json +++ b/types/activex-adox/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/activex-excel/tsconfig.json b/types/activex-excel/tsconfig.json index 349bb399e8935e..d3b44b4824660a 100644 --- a/types/activex-excel/tsconfig.json +++ b/types/activex-excel/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/activex-office/tsconfig.json b/types/activex-office/tsconfig.json index 4a5741d31749a0..6b2aeca61c0496 100644 --- a/types/activex-office/tsconfig.json +++ b/types/activex-office/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/activex-shell/tsconfig.json b/types/activex-shell/tsconfig.json index 3c123318be4d02..8f728cb86ea668 100644 --- a/types/activex-shell/tsconfig.json +++ b/types/activex-shell/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/activex-vbide/tsconfig.json b/types/activex-vbide/tsconfig.json index a6c3e428df035a..ac12a4976a91d2 100644 --- a/types/activex-vbide/tsconfig.json +++ b/types/activex-vbide/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/activex-wia/tsconfig.json b/types/activex-wia/tsconfig.json index 69cf8129baabca..6dc416a6df8409 100644 --- a/types/activex-wia/tsconfig.json +++ b/types/activex-wia/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/adal-angular/tsconfig.json b/types/adal-angular/tsconfig.json index bd9668f2c455f2..b61da9f812643b 100644 --- a/types/adal-angular/tsconfig.json +++ b/types/adal-angular/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/add-dom-event-listener/add-dom-event-listener-tests.ts b/types/add-dom-event-listener/add-dom-event-listener-tests.ts index 5a5beab7deabc6..6a79508307a9f6 100644 --- a/types/add-dom-event-listener/add-dom-event-listener-tests.ts +++ b/types/add-dom-event-listener/add-dom-event-listener-tests.ts @@ -1,4 +1,4 @@ -import * as addDomEventListener from "add-dom-event-listener"; +import addDomEventListener from "add-dom-event-listener"; let count = 0; const a = document.createElement("a"); const handle: addDomEventListener.Listener = addDomEventListener(a, "click", () => { diff --git a/types/add-dom-event-listener/tsconfig.json b/types/add-dom-event-listener/tsconfig.json index efb7eb2007809b..f92d3d786358d5 100644 --- a/types/add-dom-event-listener/tsconfig.json +++ b/types/add-dom-event-listener/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/adlib/adlib-tests.ts b/types/adlib/adlib-tests.ts index 258e214321d2fc..957d03cfec6700 100644 --- a/types/adlib/adlib-tests.ts +++ b/types/adlib/adlib-tests.ts @@ -14,7 +14,7 @@ | limitations under the License. */ -import * as adlib from "adlib"; +import adlib from "adlib"; const transform1: adlib.TransformFunction = (key: string, value: any, settings: any, param?: any): any => { return null; diff --git a/types/adobe__ccweb-add-on-sdk/tsconfig.json b/types/adobe__ccweb-add-on-sdk/tsconfig.json index 9b052a53a024bb..eb0e2ed60720f7 100644 --- a/types/adobe__ccweb-add-on-sdk/tsconfig.json +++ b/types/adobe__ccweb-add-on-sdk/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/af-utils__react-table/af-utils__react-table-tests.tsx b/types/af-utils__react-table/af-utils__react-table-tests.tsx index dd0548acd21013..4343c1d6859f6a 100644 --- a/types/af-utils__react-table/af-utils__react-table-tests.tsx +++ b/types/af-utils__react-table/af-utils__react-table-tests.tsx @@ -1,4 +1,4 @@ -import * as Table from "@af-utils/react-table"; +import Table from "@af-utils/react-table"; import * as React from "react"; const basicTable = () => { diff --git a/types/aframe/index.d.ts b/types/aframe/index.d.ts index dfa51dae6d76e0..77ec2e57b70ade 100644 --- a/types/aframe/index.d.ts +++ b/types/aframe/index.d.ts @@ -2,7 +2,7 @@ * Extended tests and examples available at https://github.com/devpaul/aframe-experiments.git */ -import * as anime from "animejs"; +import anime = require("animejs"); import * as three from "three"; export type ThreeLib = typeof three; diff --git a/types/aframe/tsconfig.json b/types/aframe/tsconfig.json index 4cbc9bb65dd24e..324404734f5e8e 100755 --- a/types/aframe/tsconfig.json +++ b/types/aframe/tsconfig.json @@ -14,7 +14,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/ajv-pack/ajv-pack-tests.ts b/types/ajv-pack/ajv-pack-tests.ts index 92d101f2aa39e5..70c5aa16d8800a 100644 --- a/types/ajv-pack/ajv-pack-tests.ts +++ b/types/ajv-pack/ajv-pack-tests.ts @@ -1,5 +1,5 @@ -import * as Ajv from "ajv"; -import * as pack from "ajv-pack"; +import Ajv from "ajv"; +import pack from "ajv-pack"; const ajv = new Ajv({ sourceCode: true }); diff --git a/types/ajv-pack/tsconfig.json b/types/ajv-pack/tsconfig.json index 2cd6674b2a041a..f4facc97c8c928 100644 --- a/types/ajv-pack/tsconfig.json +++ b/types/ajv-pack/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/alexa-voice-service/alexa-voice-service-tests.ts b/types/alexa-voice-service/alexa-voice-service-tests.ts index 0e6f89c3951bfb..481e5002e7da3f 100644 --- a/types/alexa-voice-service/alexa-voice-service-tests.ts +++ b/types/alexa-voice-service/alexa-voice-service-tests.ts @@ -1,4 +1,4 @@ -import * as AVS from "alexa-voice-service"; +import AVS from "alexa-voice-service"; const options = { debug: true, diff --git a/types/alexa-voice-service/tsconfig.json b/types/alexa-voice-service/tsconfig.json index 2cf9a058222836..87971dee74c7d5 100644 --- a/types/alexa-voice-service/tsconfig.json +++ b/types/alexa-voice-service/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/ali-app/tsconfig.json b/types/ali-app/tsconfig.json index 22cb51819baba6..726dc3ef613e20 100644 --- a/types/ali-app/tsconfig.json +++ b/types/ali-app/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/ali-oss/ali-oss-tests.ts b/types/ali-oss/ali-oss-tests.ts index 676907c9b32b82..14fcc34ce57376 100644 --- a/types/ali-oss/ali-oss-tests.ts +++ b/types/ali-oss/ali-oss-tests.ts @@ -1,4 +1,4 @@ -import * as OSS from "ali-oss"; +import OSS from "ali-oss"; const ossOptions: OSS.Options = { accessKeyId: "your access key", diff --git a/types/ali-oss/tsconfig.json b/types/ali-oss/tsconfig.json index 594370c1a16227..ce4c72cf424445 100644 --- a/types/ali-oss/tsconfig.json +++ b/types/ali-oss/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/alicloud__log/tsconfig.json b/types/alicloud__log/tsconfig.json index 56f73391cfb6bc..2a57f1901b532f 100644 --- a/types/alicloud__log/tsconfig.json +++ b/types/alicloud__log/tsconfig.json @@ -3,7 +3,7 @@ "lib": [ "es6" ], - "module": "commonjs", + "module": "node16", "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/almost-equal/almost-equal-tests.ts b/types/almost-equal/almost-equal-tests.ts index 50cc4fd0cd8a04..de99344d2f7948 100644 --- a/types/almost-equal/almost-equal-tests.ts +++ b/types/almost-equal/almost-equal-tests.ts @@ -1,4 +1,4 @@ -import * as almostEqual from "almost-equal"; +import almostEqual from "almost-equal"; const res1 = almostEqual(1.999999, 2.0); diff --git a/types/almost-equal/tsconfig.json b/types/almost-equal/tsconfig.json index 7627ef84c6b596..587c56851c3306 100644 --- a/types/almost-equal/tsconfig.json +++ b/types/almost-equal/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/amazon-cognito-auth-js/tsconfig.json b/types/amazon-cognito-auth-js/tsconfig.json index b3c44ad5294f38..ed1ac62073e6dd 100644 --- a/types/amazon-cognito-auth-js/tsconfig.json +++ b/types/amazon-cognito-auth-js/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/ambient-weather-api/tsconfig.json b/types/ambient-weather-api/tsconfig.json index e6b7d21aa1725e..b794b63a3891d6 100644 --- a/types/ambient-weather-api/tsconfig.json +++ b/types/ambient-weather-api/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/amp/index.d.ts b/types/amp/index.d.ts index 7e1d4bbfc873d6..e19d215868b834 100644 --- a/types/amp/index.d.ts +++ b/types/amp/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export function decode(buf: Buffer): Buffer[]; diff --git a/types/amplify-deferred/tsconfig.json b/types/amplify-deferred/tsconfig.json index 5b79a40f0bf8f7..be2f226e2804af 100644 --- a/types/amplify-deferred/tsconfig.json +++ b/types/amplify-deferred/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/amqp/index.d.ts b/types/amqp/index.d.ts index 5a45ca4591d432..6ceba7ff2f494a 100644 --- a/types/amqp/index.d.ts +++ b/types/amqp/index.d.ts @@ -1,6 +1,6 @@ /// -import * as events from "events"; +import events = require("events"); import * as net from "net"; export type Callback = (value: T) => void; diff --git a/types/amqplib/index.d.ts b/types/amqplib/index.d.ts index a1ed4bf1303185..8cbf588672693f 100644 --- a/types/amqplib/index.d.ts +++ b/types/amqplib/index.d.ts @@ -1,6 +1,6 @@ /// -import * as events from "events"; +import events = require("events"); import { ConsumeMessage, GetMessage, Message, Options, Replies, ServerProperties } from "./properties"; export * from "./properties"; diff --git a/types/anchor-js/tsconfig.json b/types/anchor-js/tsconfig.json index 7f245f9336f1fb..c3aac046b5a2fb 100644 --- a/types/anchor-js/tsconfig.json +++ b/types/anchor-js/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-block-ui/tsconfig.json b/types/angular-block-ui/tsconfig.json index 7fc79ee722a8b2..1da84dacf6be32 100644 --- a/types/angular-block-ui/tsconfig.json +++ b/types/angular-block-ui/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-bootstrap-calendar/index.d.ts b/types/angular-bootstrap-calendar/index.d.ts index 885b0e87beb2b9..60c626bb3d7471 100644 --- a/types/angular-bootstrap-calendar/index.d.ts +++ b/types/angular-bootstrap-calendar/index.d.ts @@ -1,5 +1,5 @@ import * as angular from "angular"; -import * as moment from "moment"; +import moment = require("moment"); declare module "angular" { export namespace bootstrap.calendar { diff --git a/types/angular-bootstrap-calendar/tsconfig.json b/types/angular-bootstrap-calendar/tsconfig.json index 9079c4d58d42e1..c310f248ed4597 100644 --- a/types/angular-bootstrap-calendar/tsconfig.json +++ b/types/angular-bootstrap-calendar/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-desktop-notification/tsconfig.json b/types/angular-desktop-notification/tsconfig.json index 71490a356b5527..dca9f8b5862244 100644 --- a/types/angular-desktop-notification/tsconfig.json +++ b/types/angular-desktop-notification/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/angular-file-saver/tsconfig.json b/types/angular-file-saver/tsconfig.json index c8eecdb64947f6..0ed00224d2a837 100644 --- a/types/angular-file-saver/tsconfig.json +++ b/types/angular-file-saver/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-formly/tsconfig.json b/types/angular-formly/tsconfig.json index 3de365701c420f..10fc8261c499c0 100644 --- a/types/angular-formly/tsconfig.json +++ b/types/angular-formly/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-fullscreen/tsconfig.json b/types/angular-fullscreen/tsconfig.json index b4163c21bfd3a9..0c1b7cff523430 100644 --- a/types/angular-fullscreen/tsconfig.json +++ b/types/angular-fullscreen/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-gettext/tsconfig.json b/types/angular-gettext/tsconfig.json index 7f572fda09cd78..60fe6c6b490999 100644 --- a/types/angular-gettext/tsconfig.json +++ b/types/angular-gettext/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-growl-v2/tsconfig.json b/types/angular-growl-v2/tsconfig.json index d115636164ad69..b9d71358fdcd76 100644 --- a/types/angular-growl-v2/tsconfig.json +++ b/types/angular-growl-v2/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-http-auth/tsconfig.json b/types/angular-http-auth/tsconfig.json index 2fc2265658c0b3..e351f54c5d2cf0 100644 --- a/types/angular-http-auth/tsconfig.json +++ b/types/angular-http-auth/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-httpi/tsconfig.json b/types/angular-httpi/tsconfig.json index d9423fe355376c..406d2fe4ed5744 100644 --- a/types/angular-httpi/tsconfig.json +++ b/types/angular-httpi/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-idle/tsconfig.json b/types/angular-idle/tsconfig.json index 905e15cf84e269..d3dc3f1b122134 100644 --- a/types/angular-idle/tsconfig.json +++ b/types/angular-idle/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-jwt/tsconfig.json b/types/angular-jwt/tsconfig.json index 9925b70f3999cb..c209507900de23 100644 --- a/types/angular-jwt/tsconfig.json +++ b/types/angular-jwt/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-loading-bar/tsconfig.json b/types/angular-loading-bar/tsconfig.json index 0e939263a0a3cd..2c8234268e0753 100644 --- a/types/angular-loading-bar/tsconfig.json +++ b/types/angular-loading-bar/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-local-storage/tsconfig.json b/types/angular-local-storage/tsconfig.json index e5bd67b73bf2f8..a713e61e403861 100644 --- a/types/angular-local-storage/tsconfig.json +++ b/types/angular-local-storage/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-localforage/tsconfig.json b/types/angular-localforage/tsconfig.json index 48b0ad609a7703..cbef04b528b5ca 100644 --- a/types/angular-localforage/tsconfig.json +++ b/types/angular-localforage/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-material/tsconfig.json b/types/angular-material/tsconfig.json index 4dcae159b67dec..343b1b3f837f59 100644 --- a/types/angular-material/tsconfig.json +++ b/types/angular-material/tsconfig.json @@ -15,6 +15,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/angular-media-queries/tsconfig.json b/types/angular-media-queries/tsconfig.json index 5c70c9f50304e3..719cd995ace92f 100644 --- a/types/angular-media-queries/tsconfig.json +++ b/types/angular-media-queries/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-modal/tsconfig.json b/types/angular-modal/tsconfig.json index f8b4c04f026805..f8b5ee3e4ae282 100644 --- a/types/angular-modal/tsconfig.json +++ b/types/angular-modal/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-notifications/tsconfig.json b/types/angular-notifications/tsconfig.json index 2f538a63f585de..5aa441aba223d8 100644 --- a/types/angular-notifications/tsconfig.json +++ b/types/angular-notifications/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-notify/tsconfig.json b/types/angular-notify/tsconfig.json index f90ace62ad97a2..058f2a3524441f 100644 --- a/types/angular-notify/tsconfig.json +++ b/types/angular-notify/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-promise-tracker/tsconfig.json b/types/angular-promise-tracker/tsconfig.json index a4fecab54b9142..110cd7c2bf3664 100644 --- a/types/angular-promise-tracker/tsconfig.json +++ b/types/angular-promise-tracker/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-q-extras/tsconfig.json b/types/angular-q-extras/tsconfig.json index 4acdcf29490772..c25163bf33fcc3 100644 --- a/types/angular-q-extras/tsconfig.json +++ b/types/angular-q-extras/tsconfig.json @@ -15,6 +15,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/angular-q-spread/tsconfig.json b/types/angular-q-spread/tsconfig.json index 17c41e3106acdc..dd5272767612d2 100644 --- a/types/angular-q-spread/tsconfig.json +++ b/types/angular-q-spread/tsconfig.json @@ -15,6 +15,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/angular-resource/tsconfig.json b/types/angular-resource/tsconfig.json index 914a23dbe5a34d..cca5d96df57158 100644 --- a/types/angular-resource/tsconfig.json +++ b/types/angular-resource/tsconfig.json @@ -15,6 +15,7 @@ "strictFunctionTypes": false, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/angular-signalr-hub/tsconfig.json b/types/angular-signalr-hub/tsconfig.json index 6c0440ecad3722..99600e75d70b06 100644 --- a/types/angular-signalr-hub/tsconfig.json +++ b/types/angular-signalr-hub/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-spinner/tsconfig.json b/types/angular-spinner/tsconfig.json index 8c76c6160accd1..adef3789797395 100644 --- a/types/angular-spinner/tsconfig.json +++ b/types/angular-spinner/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-storage/tsconfig.json b/types/angular-storage/tsconfig.json index a81413cfacd03d..d80d9ffa5447f9 100644 --- a/types/angular-storage/tsconfig.json +++ b/types/angular-storage/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-strap/tsconfig.json b/types/angular-strap/tsconfig.json index f18b772716df3e..4b115a135cadb7 100644 --- a/types/angular-strap/tsconfig.json +++ b/types/angular-strap/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-toastr/tsconfig.json b/types/angular-toastr/tsconfig.json index d5e0afe5e6b4f9..84127e01af9290 100644 --- a/types/angular-toastr/tsconfig.json +++ b/types/angular-toastr/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-toasty/tsconfig.json b/types/angular-toasty/tsconfig.json index b6964731285c17..b22a7e945891ad 100644 --- a/types/angular-toasty/tsconfig.json +++ b/types/angular-toasty/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-ui-bootstrap/tsconfig.json b/types/angular-ui-bootstrap/tsconfig.json index 76692fe5b7a1c8..ac593033de01e0 100644 --- a/types/angular-ui-bootstrap/tsconfig.json +++ b/types/angular-ui-bootstrap/tsconfig.json @@ -12,7 +12,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-ui-router/angular-ui-router-tests.ts b/types/angular-ui-router/angular-ui-router-tests.ts index 2d00b4c3522bd2..96f50281734e7b 100644 --- a/types/angular-ui-router/angular-ui-router-tests.ts +++ b/types/angular-ui-router/angular-ui-router-tests.ts @@ -1,4 +1,4 @@ -import * as ng from "angular"; +import ng from "angular"; import * as angular from "angular"; import uiRouterModule from "angular-ui-router"; diff --git a/types/angular-ui-scroll/tsconfig.json b/types/angular-ui-scroll/tsconfig.json index d12b3305ab923a..29e34148c0c5a9 100644 --- a/types/angular-ui-scroll/tsconfig.json +++ b/types/angular-ui-scroll/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-ui-sortable/tsconfig.json b/types/angular-ui-sortable/tsconfig.json index 25fa057b81b336..df887735a50ac9 100644 --- a/types/angular-ui-sortable/tsconfig.json +++ b/types/angular-ui-sortable/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular-xeditable/tsconfig.json b/types/angular-xeditable/tsconfig.json index c6cb7ee3d85e6b..fd5f7c1f030587 100644 --- a/types/angular-xeditable/tsconfig.json +++ b/types/angular-xeditable/tsconfig.json @@ -15,6 +15,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/angular.throttle/tsconfig.json b/types/angular.throttle/tsconfig.json index 65dfab3c9d237e..938b061270e812 100644 --- a/types/angular.throttle/tsconfig.json +++ b/types/angular.throttle/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angular/tsconfig.json b/types/angular/tsconfig.json index 139c3ab2508086..4545642c7999d5 100644 --- a/types/angular/tsconfig.json +++ b/types/angular/tsconfig.json @@ -19,6 +19,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/angularfire/tsconfig.json b/types/angularfire/tsconfig.json index 75b72c4f523da6..7e9c4c9d836367 100644 --- a/types/angularfire/tsconfig.json +++ b/types/angularfire/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angularjs-dragula/tsconfig.json b/types/angularjs-dragula/tsconfig.json index 3759c18c52a458..1508580c14dca0 100644 --- a/types/angularjs-dragula/tsconfig.json +++ b/types/angularjs-dragula/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/angularlocalstorage/tsconfig.json b/types/angularlocalstorage/tsconfig.json index 9b2a5be34cc431..1ebbc2446a0989 100644 --- a/types/angularlocalstorage/tsconfig.json +++ b/types/angularlocalstorage/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/antlr4-autosuggest/antlr4-autosuggest-tests.ts b/types/antlr4-autosuggest/antlr4-autosuggest-tests.ts index 4967d84e9dd5df..02f32813800c50 100644 --- a/types/antlr4-autosuggest/antlr4-autosuggest-tests.ts +++ b/types/antlr4-autosuggest/antlr4-autosuggest-tests.ts @@ -1,5 +1,5 @@ import antlr4 from "antlr4"; -import * as autosuggest from "antlr4-autosuggest"; +import autosuggest from "antlr4-autosuggest"; class Antlr4JSLexer extends antlr4.Lexer { constructor(chars: antlr4.InputStream) { diff --git a/types/api-error-handler/index.d.ts b/types/api-error-handler/index.d.ts index c21df511737dc1..259711b30d18f0 100644 --- a/types/api-error-handler/index.d.ts +++ b/types/api-error-handler/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); declare namespace apiErrorHandler { // Body response: the JSON returned by api-error-handler diff --git a/types/apicache/index.d.ts b/types/apicache/index.d.ts index b8944e2132a5f7..c008a7bd23d69c 100644 --- a/types/apicache/index.d.ts +++ b/types/apicache/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); import { RedisClient } from "redis"; export const id: number; diff --git a/types/applest-atem/applest-atem-tests.ts b/types/applest-atem/applest-atem-tests.ts index 42acaf94e2fa3a..561c7e4c25f029 100644 --- a/types/applest-atem/applest-atem-tests.ts +++ b/types/applest-atem/applest-atem-tests.ts @@ -1,4 +1,4 @@ -import * as ATEM from "applest-atem"; +import ATEM from "applest-atem"; const atem = new ATEM(); atem.event.setMaxListeners(5); diff --git a/types/applest-atem/tsconfig.json b/types/applest-atem/tsconfig.json index 6fc577878fe58a..10313fc535bdad 100644 --- a/types/applest-atem/tsconfig.json +++ b/types/applest-atem/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/approximate-number/tsconfig.json b/types/approximate-number/tsconfig.json index 0e3bb085c0f5b9..087ba3ae49f9c2 100644 --- a/types/approximate-number/tsconfig.json +++ b/types/approximate-number/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "Node16", + "module": "node16", "lib": [ "es6" ], diff --git a/types/archiver/index.d.ts b/types/archiver/index.d.ts index 31b6083dc5cf56..03d2d7d4cdd914 100644 --- a/types/archiver/index.d.ts +++ b/types/archiver/index.d.ts @@ -1,6 +1,6 @@ import * as fs from "fs"; -import * as ReaddirGlob from "readdir-glob"; -import * as stream from "stream"; +import ReaddirGlob = require("readdir-glob"); +import stream = require("stream"); import { ZlibOptions } from "zlib"; type Partial = { diff --git a/types/are.na/tsconfig.json b/types/are.na/tsconfig.json index 96bfb372f31d8b..1a13baf7f0aa18 100644 --- a/types/are.na/tsconfig.json +++ b/types/are.na/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/ari-client/tsconfig.json b/types/ari-client/tsconfig.json index 9fde5dc9af7edb..9953ce9a538762 100644 --- a/types/ari-client/tsconfig.json +++ b/types/ari-client/tsconfig.json @@ -20,7 +20,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/artillery/index.d.ts b/types/artillery/index.d.ts index e88bd12b19c1c4..990644cf68db2c 100644 --- a/types/artillery/index.d.ts +++ b/types/artillery/index.d.ts @@ -1,7 +1,7 @@ /// import { OptionsOfJSONResponseBody, OptionsOfTextResponseBody, OptionsOfUnknownResponseBody, Response } from "got"; -import * as events from "node:events"; +import events = require("node:events"); import { CookieJar } from "tough-cookie"; export type ActionFn< diff --git a/types/asana/index.d.ts b/types/asana/index.d.ts index 0ee59c06aa57b5..6e50e0d4907309 100644 --- a/types/asana/index.d.ts +++ b/types/asana/index.d.ts @@ -1,4 +1,4 @@ -import * as Promise from "bluebird"; +import Promise = require("bluebird"); declare namespace asana { var Client: ClientStatic; diff --git a/types/ascii2mathml/ascii2mathml-tests.ts b/types/ascii2mathml/ascii2mathml-tests.ts index 553358f7e81a81..71e94ce74037cf 100644 --- a/types/ascii2mathml/ascii2mathml-tests.ts +++ b/types/ascii2mathml/ascii2mathml-tests.ts @@ -1,4 +1,4 @@ -import * as ascii2mathml from "ascii2mathml"; +import ascii2mathml from "ascii2mathml"; const fn = ascii2mathml({}); // $ExpectType ascii2mathml fn(""); // $ExpectType string diff --git a/types/ascii2mathml/tsconfig.json b/types/ascii2mathml/tsconfig.json index 062bbf59b06195..5db5377ba81340 100644 --- a/types/ascii2mathml/tsconfig.json +++ b/types/ascii2mathml/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/assert/assert-tests.ts b/types/assert/assert-tests.ts index 69fbac9478df6c..2004fa142ce3ac 100644 --- a/types/assert/assert-tests.ts +++ b/types/assert/assert-tests.ts @@ -1,4 +1,4 @@ -import * as assert from "assert"; +import assert from "assert"; assert(true, "it's working"); diff --git a/types/assert/tsconfig.json b/types/assert/tsconfig.json index dfa5e2270bf826..2419da46d0813a 100644 --- a/types/assert/tsconfig.json +++ b/types/assert/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es2015" ], diff --git a/types/async-eventemitter/async-eventemitter-tests.ts b/types/async-eventemitter/async-eventemitter-tests.ts index 4e57b8d2f196c9..3840afd54c3a19 100644 --- a/types/async-eventemitter/async-eventemitter-tests.ts +++ b/types/async-eventemitter/async-eventemitter-tests.ts @@ -1,4 +1,4 @@ -import * as AsyncEventEmitter from "async-eventemitter"; +import AsyncEventEmitter from "async-eventemitter"; const ee = new AsyncEventEmitter<{ sync: (a: string) => void; diff --git a/types/async-eventemitter/tsconfig.json b/types/async-eventemitter/tsconfig.json index 1b7067709c762c..2cecd9e7cebfd6 100644 --- a/types/async-eventemitter/tsconfig.json +++ b/types/async-eventemitter/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/async/tsconfig.json b/types/async/tsconfig.json index 50d500da3ac0ef..bfd4ea8fa7ded2 100644 --- a/types/async/tsconfig.json +++ b/types/async/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": false, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/audio-play/tsconfig.json b/types/audio-play/tsconfig.json index c41cff8eb363db..af157a4886c3e2 100644 --- a/types/audio-play/tsconfig.json +++ b/types/audio-play/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/audiosprite/audiosprite-tests.ts b/types/audiosprite/audiosprite-tests.ts index 502bfb3bbb43cd..e925b4191caa88 100644 --- a/types/audiosprite/audiosprite-tests.ts +++ b/types/audiosprite/audiosprite-tests.ts @@ -1,4 +1,4 @@ -import * as audiosprite from "audiosprite"; +import audiosprite from "audiosprite"; const files = ["file1.mp3", "file2.mp3"]; const opts = { output: "result" }; diff --git a/types/audiosprite/tsconfig.json b/types/audiosprite/tsconfig.json index ce65cbc2475de3..47970e9b16360b 100644 --- a/types/audiosprite/tsconfig.json +++ b/types/audiosprite/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/autosize/tsconfig.json b/types/autosize/tsconfig.json index 73f9e9ac2e8127..65e3b9c895037d 100644 --- a/types/autosize/tsconfig.json +++ b/types/autosize/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/autosuggest-highlight/tsconfig.json b/types/autosuggest-highlight/tsconfig.json index d0fa5a958cba09..f245fb470a0be9 100644 --- a/types/autosuggest-highlight/tsconfig.json +++ b/types/autosuggest-highlight/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/await-timeout/tsconfig.json b/types/await-timeout/tsconfig.json index 8c072d5de8a51d..9e77f36be5a1a9 100644 --- a/types/await-timeout/tsconfig.json +++ b/types/await-timeout/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/awesomplete/awesomplete-tests.ts b/types/awesomplete/awesomplete-tests.ts index d3314e027fe3c4..21984b3bda131d 100644 --- a/types/awesomplete/awesomplete-tests.ts +++ b/types/awesomplete/awesomplete-tests.ts @@ -1,4 +1,4 @@ -import * as Awesomplete from "awesomplete"; +import Awesomplete from "awesomplete"; const input = document.getElementById("myinput"); new Awesomplete(input, { list: "#mylist" }); diff --git a/types/awesomplete/tsconfig.json b/types/awesomplete/tsconfig.json index 62fc70bf3d42c2..b4ac6c9dfb90a1 100644 --- a/types/awesomplete/tsconfig.json +++ b/types/awesomplete/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/aws-iot-device-sdk/index.d.ts b/types/aws-iot-device-sdk/index.d.ts index ac4fa262fcf1fc..ca7deeb2f483b9 100644 --- a/types/aws-iot-device-sdk/index.d.ts +++ b/types/aws-iot-device-sdk/index.d.ts @@ -2,7 +2,7 @@ import { EventEmitter } from "events"; import * as mqtt from "mqtt"; -import * as WebSocket from "ws"; +import WebSocket = require("ws"); export interface DeviceOptions extends mqtt.IClientOptions { /** the AWS IoT region you will operate in (default "us-east-1") */ diff --git a/types/aws-kcl/tsconfig.json b/types/aws-kcl/tsconfig.json index 77e4c2fcaefbf9..7c6e8d935f3160 100644 --- a/types/aws-kcl/tsconfig.json +++ b/types/aws-kcl/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/aws-lambda-fastify/tsconfig.json b/types/aws-lambda-fastify/tsconfig.json index fcbc7aaed90d47..5ee0ed34fd1a2a 100644 --- a/types/aws-lambda-fastify/tsconfig.json +++ b/types/aws-lambda-fastify/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/aws-lambda-http-server/aws-lambda-http-server-tests.ts b/types/aws-lambda-http-server/aws-lambda-http-server-tests.ts index fda4421873cdd4..0dcc589a821d03 100644 --- a/types/aws-lambda-http-server/aws-lambda-http-server-tests.ts +++ b/types/aws-lambda-http-server/aws-lambda-http-server-tests.ts @@ -1,4 +1,4 @@ import awsLambdaHttpServer = require("aws-lambda-http-server"); -import * as express from "express"; +import express from "express"; export const proxy = awsLambdaHttpServer; const app = express(); diff --git a/types/aws-lambda-http-server/tsconfig.json b/types/aws-lambda-http-server/tsconfig.json index dbee4dde3f2757..0309b51cbf8b1f 100644 --- a/types/aws-lambda-http-server/tsconfig.json +++ b/types/aws-lambda-http-server/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/aws-lambda/tsconfig.json b/types/aws-lambda/tsconfig.json index d2f516e65336ff..ffaa05444eeeb0 100644 --- a/types/aws-lambda/tsconfig.json +++ b/types/aws-lambda/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/aws-regions/tsconfig.json b/types/aws-regions/tsconfig.json index 09a8381ad0c17f..daf45d64a57c90 100644 --- a/types/aws-regions/tsconfig.json +++ b/types/aws-regions/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/aws-sdk2-types/lib/dynamodb/document_client.d.ts b/types/aws-sdk2-types/lib/dynamodb/document_client.d.ts index 96ba967551a0b6..a35efe68c20589 100644 --- a/types/aws-sdk2-types/lib/dynamodb/document_client.d.ts +++ b/types/aws-sdk2-types/lib/dynamodb/document_client.d.ts @@ -1,5 +1,5 @@ import DynamoDB = require("../../clients/dynamodb"); -import * as stream from "stream"; +import stream = require("stream"); import { AWSError } from "../error"; import { Request } from "../request"; diff --git a/types/aws-sdk2-types/lib/http_response.d.ts b/types/aws-sdk2-types/lib/http_response.d.ts index 3caafa772fabca..8694fdfbbd5c42 100644 --- a/types/aws-sdk2-types/lib/http_response.d.ts +++ b/types/aws-sdk2-types/lib/http_response.d.ts @@ -1,4 +1,4 @@ -import * as stream from "stream"; +import stream = require("stream"); interface XMLHttpRequest {} /** * The low level HTTP response object, encapsulating all HTTP header and body data returned from the request. diff --git a/types/aws-sdk2-types/lib/request.d.ts b/types/aws-sdk2-types/lib/request.d.ts index 6d5101a73365a5..486509f2dbc023 100644 --- a/types/aws-sdk2-types/lib/request.d.ts +++ b/types/aws-sdk2-types/lib/request.d.ts @@ -1,4 +1,4 @@ -import * as stream from "stream"; +import stream = require("stream"); import { AWSError } from "./error"; import { HttpRequest } from "./http_request"; import { Response } from "./response"; diff --git a/types/axios-curlirize/tsconfig.json b/types/axios-curlirize/tsconfig.json index 0f9d46bee3f9f6..caa2a1923dd78e 100644 --- a/types/axios-curlirize/tsconfig.json +++ b/types/axios-curlirize/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/babar/tsconfig.json b/types/babar/tsconfig.json index 707027604d0ee5..851cde93a85107 100644 --- a/types/babar/tsconfig.json +++ b/types/babar/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/babel-traverse/babel-traverse-tests.ts b/types/babel-traverse/babel-traverse-tests.ts index f3229d01201179..01089d7f94928e 100644 --- a/types/babel-traverse/babel-traverse-tests.ts +++ b/types/babel-traverse/babel-traverse-tests.ts @@ -1,5 +1,5 @@ import traverse, { Visitor } from "babel-traverse"; -import * as t from "babel-types"; +import t from "babel-types"; import * as babylon from "babylon"; // Examples from: https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md diff --git a/types/babel-types/babel-types-tests.ts b/types/babel-types/babel-types-tests.ts index e7e82446f01ae2..91e4a90594a90a 100644 --- a/types/babel-types/babel-types-tests.ts +++ b/types/babel-types/babel-types-tests.ts @@ -1,5 +1,5 @@ import traverse from "babel-traverse"; -import * as t from "babel-types"; +import t from "babel-types"; // Examples from https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md#babel-types declare const ast: t.Node; diff --git a/types/babel__core/babel__core-tests.ts b/types/babel__core/babel__core-tests.ts index 0cf4953cadcbc8..6b8020f200514a 100644 --- a/types/babel__core/babel__core-tests.ts +++ b/types/babel__core/babel__core-tests.ts @@ -1,5 +1,5 @@ import * as babel from "@babel/core"; -import * as t from "@babel/types"; +import t from "@babel/types"; const options: babel.TransformOptions = { targets: { diff --git a/types/babel__template/babel__template-tests.ts b/types/babel__template/babel__template-tests.ts index 104b7b652e403e..1cf211eee153fc 100644 --- a/types/babel__template/babel__template-tests.ts +++ b/types/babel__template/babel__template-tests.ts @@ -1,6 +1,6 @@ import generate from "@babel/generator"; import template from "@babel/template"; -import * as t from "@babel/types"; +import t from "@babel/types"; const buildRequire = template.statement(` const %%IMPORT_NAME%% = require(%%SOURCE%%); diff --git a/types/babel__traverse/babel__traverse-tests.ts b/types/babel__traverse/babel__traverse-tests.ts index 1bba9f2d6b5e13..c32c0e53b52844 100644 --- a/types/babel__traverse/babel__traverse-tests.ts +++ b/types/babel__traverse/babel__traverse-tests.ts @@ -1,5 +1,5 @@ import traverse, { Binding, Hub, NodePath, TraverseOptions, Visitor, visitors } from "@babel/traverse"; -import * as t from "@babel/types"; +import t from "@babel/types"; // Examples from: https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md const MyVisitor: Visitor = { diff --git a/types/backblaze-b2/tsconfig.json b/types/backblaze-b2/tsconfig.json index cf769cdb2adf2a..4261669e68c7ae 100644 --- a/types/backblaze-b2/tsconfig.json +++ b/types/backblaze-b2/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index cbbc7c418d98fc..943412de5693f5 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -1,7 +1,7 @@ import * as Backbone from "backbone"; import * as Radio from "backbone.radio"; -import * as JQuery from "jquery"; -import * as _ from "underscore"; +import JQuery = require("jquery"); +import _ = require("underscore"); export as namespace Marionette; diff --git a/types/backbone/tsconfig.json b/types/backbone/tsconfig.json index f0ff8310bfa5c6..8053e61281c466 100644 --- a/types/backbone/tsconfig.json +++ b/types/backbone/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": false, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/backoff/backoff-tests.ts b/types/backoff/backoff-tests.ts index 507341e218a712..208440953f7c86 100644 --- a/types/backoff/backoff-tests.ts +++ b/types/backoff/backoff-tests.ts @@ -1,4 +1,4 @@ -import * as backoff from "backoff"; +import backoff from "backoff"; const fibonacciBackoff = backoff.fibonacci(); fibonacciBackoff; // $ExpectType Backoff diff --git a/types/bandagedbd__bdapi/index.d.ts b/types/bandagedbd__bdapi/index.d.ts index 80be9a2ef6ac9a..7c311cb262d31c 100644 --- a/types/bandagedbd__bdapi/index.d.ts +++ b/types/bandagedbd__bdapi/index.d.ts @@ -1,4 +1,4 @@ -import * as _ from "lodash"; +import _ = require("lodash"); import * as ReactInstance from "react"; import * as ReactDOMInstance from "react-dom"; diff --git a/types/barco-eventmaster/barco-eventmaster-tests.ts b/types/barco-eventmaster/barco-eventmaster-tests.ts index 2582253bf7c3c2..2f92b83495f50f 100644 --- a/types/barco-eventmaster/barco-eventmaster-tests.ts +++ b/types/barco-eventmaster/barco-eventmaster-tests.ts @@ -1,4 +1,4 @@ -import * as EventMaster from "barco-eventmaster"; +import EventMaster from "barco-eventmaster"; const e2 = new EventMaster("10.0.0.1"); diff --git a/types/barco-eventmaster/tsconfig.json b/types/barco-eventmaster/tsconfig.json index 4a6d9873dde995..53972478bd9a98 100644 --- a/types/barco-eventmaster/tsconfig.json +++ b/types/barco-eventmaster/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/basicscroll/tsconfig.json b/types/basicscroll/tsconfig.json index c05c9bb923b15b..3a86f06680fca8 100644 --- a/types/basicscroll/tsconfig.json +++ b/types/basicscroll/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/bazinga-translator/tsconfig.json b/types/bazinga-translator/tsconfig.json index aabe55c7b16634..ad17313b748c3a 100644 --- a/types/bazinga-translator/tsconfig.json +++ b/types/bazinga-translator/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/beanstalkd-worker/beanstalkd-worker-tests.ts b/types/beanstalkd-worker/beanstalkd-worker-tests.ts index 95d07be50875e1..1e7555a62518cb 100644 --- a/types/beanstalkd-worker/beanstalkd-worker-tests.ts +++ b/types/beanstalkd-worker/beanstalkd-worker-tests.ts @@ -1,4 +1,4 @@ -import * as BeanstalkdWorker from "beanstalkd-worker"; +import BeanstalkdWorker from "beanstalkd-worker"; const host = "127.0.0.1"; const port = 11300; diff --git a/types/beanstalkd-worker/tsconfig.json b/types/beanstalkd-worker/tsconfig.json index 6c58842f38e336..84e95a4bd18cc0 100644 --- a/types/beanstalkd-worker/tsconfig.json +++ b/types/beanstalkd-worker/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/beautify/tsconfig.json b/types/beautify/tsconfig.json index 73180d5347aed4..bace3df885c77e 100644 --- a/types/beautify/tsconfig.json +++ b/types/beautify/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/bemmer/tsconfig.json b/types/bemmer/tsconfig.json index 243c36a89063fe..596b170911d516 100644 --- a/types/bemmer/tsconfig.json +++ b/types/bemmer/tsconfig.json @@ -11,8 +11,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "allowSyntheticDefaultImports": true, - "esModuleInterop": true + "allowSyntheticDefaultImports": true }, "files": [ "index.d.ts", diff --git a/types/bent/tsconfig.json b/types/bent/tsconfig.json index 7e2575e2d4b2fd..54d60cf6810c75 100644 --- a/types/bent/tsconfig.json +++ b/types/bent/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/bero/tsconfig.json b/types/bero/tsconfig.json index 154e638a8e1347..948446a188bdc6 100644 --- a/types/bero/tsconfig.json +++ b/types/bero/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "module": "node16", "lib": [ "es6" diff --git a/types/big.js/tsconfig.json b/types/big.js/tsconfig.json index 86c62aef8097f8..dda5ec7c31b545 100644 --- a/types/big.js/tsconfig.json +++ b/types/big.js/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/bin-pack/bin-pack-tests.ts b/types/bin-pack/bin-pack-tests.ts index 880f328595aced..cb1fa6e2ca134c 100644 --- a/types/bin-pack/bin-pack-tests.ts +++ b/types/bin-pack/bin-pack-tests.ts @@ -1,4 +1,4 @@ -import * as pack from "bin-pack"; +import pack from "bin-pack"; // $ExpectType PackResult<{ width: number; height: number; }> const packResult = pack([ diff --git a/types/bin-pack/tsconfig.json b/types/bin-pack/tsconfig.json index b66d5e5a6fda86..2547dc10c24a47 100644 --- a/types/bin-pack/tsconfig.json +++ b/types/bin-pack/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/binary-xml/binary-xml-tests.ts b/types/binary-xml/binary-xml-tests.ts index 83b5200346130f..dd1400e821b051 100644 --- a/types/binary-xml/binary-xml-tests.ts +++ b/types/binary-xml/binary-xml-tests.ts @@ -1,4 +1,4 @@ -import * as BinaryXML from "binary-xml"; +import BinaryXML from "binary-xml"; // @ts-expect-error new BinaryXML(); diff --git a/types/binary-xml/tsconfig.json b/types/binary-xml/tsconfig.json index 1a2b055ed86a14..9bcaa53ce2e0a8 100644 --- a/types/binary-xml/tsconfig.json +++ b/types/binary-xml/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/bitauth/bitauth-tests.ts b/types/bitauth/bitauth-tests.ts index dbfeb5e459618d..d7442848b129f5 100644 --- a/types/bitauth/bitauth-tests.ts +++ b/types/bitauth/bitauth-tests.ts @@ -1,5 +1,5 @@ import * as bitauth from "bitauth"; -import * as express from "express"; +import express from "express"; const keys = bitauth.generateSin(); diff --git a/types/bitauth/tsconfig.json b/types/bitauth/tsconfig.json index 9c0014d7140ebf..b6d1aff762f77f 100644 --- a/types/bitauth/tsconfig.json +++ b/types/bitauth/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/bittorrent-protocol/index.d.ts b/types/bittorrent-protocol/index.d.ts index f4d9fc300af4d7..bfd3ab8ee9edbf 100644 --- a/types/bittorrent-protocol/index.d.ts +++ b/types/bittorrent-protocol/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); declare const BittorrentProtocol: BittorrentProtocol.BittorrentProtocol; diff --git a/types/blocked/blocked-tests.ts b/types/blocked/blocked-tests.ts index 3fe7d8cdf8b2ac..10de54921629ad 100644 --- a/types/blocked/blocked-tests.ts +++ b/types/blocked/blocked-tests.ts @@ -1,4 +1,4 @@ -import * as blocked from "blocked"; +import blocked from "blocked"; blocked((ms: number) => { // todo: show warning diff --git a/types/blocked/tsconfig.json b/types/blocked/tsconfig.json index 4872c371997751..13a1961a0149cb 100644 --- a/types/blocked/tsconfig.json +++ b/types/blocked/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/bluebird/bluebird-tests.ts b/types/bluebird/bluebird-tests.ts index 6af79e8b670eb5..58b9bea3dc2763 100644 --- a/types/bluebird/bluebird-tests.ts +++ b/types/bluebird/bluebird-tests.ts @@ -5,7 +5,7 @@ // Note: try to maintain the ordering and separators, and keep to the pattern -import * as Bluebird from "bluebird"; +import Bluebird from "bluebird"; let obj: object = {}; let bool = false; diff --git a/types/bluebird/tsconfig.json b/types/bluebird/tsconfig.json index 7560ce8424e1d3..765d751e908a35 100644 --- a/types/bluebird/tsconfig.json +++ b/types/bluebird/tsconfig.json @@ -4,7 +4,7 @@ "bluebird-tests.ts" ], "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/bn.js/bn.js-tests.ts b/types/bn.js/bn.js-tests.ts index 495bc681b746a9..63f714bd993fae 100644 --- a/types/bn.js/bn.js-tests.ts +++ b/types/bn.js/bn.js-tests.ts @@ -1,7 +1,7 @@ // test that it works as a require import BN_require = require("bn.js"); // test that it works as module import -import * as BN_esm from "bn.js"; +import BN_esm from "bn.js"; // eslint-disable-next-line no-duplicate-imports import { Endianness, IPrimeName } from "bn.js"; diff --git a/types/bn.js/tsconfig.json b/types/bn.js/tsconfig.json index 3be91886d5b838..7f9c2a33e5f0ff 100644 --- a/types/bn.js/tsconfig.json +++ b/types/bn.js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/boom/boom-tests.ts b/types/boom/boom-tests.ts index b52224e672a563..d06112425ecb05 100644 --- a/types/boom/boom-tests.ts +++ b/types/boom/boom-tests.ts @@ -1,4 +1,4 @@ -import * as Boom from "boom"; +import Boom from "boom"; // 4xx and data type diff --git a/types/boom/tsconfig.json b/types/boom/tsconfig.json index f28aee0a19978e..1b23c8f9c244cc 100644 --- a/types/boom/tsconfig.json +++ b/types/boom/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts b/types/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts index d7df4bb4387a4d..f9d3319ba263ce 100644 --- a/types/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts +++ b/types/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment from "moment"; const dp = $("#picker").datetimepicker().data("DateTimePicker"); diff --git a/types/bootstrap.v3.datetimepicker/index.d.ts b/types/bootstrap.v3.datetimepicker/index.d.ts index 9c0a54d34bdfce..148425ff75a48c 100644 --- a/types/bootstrap.v3.datetimepicker/index.d.ts +++ b/types/bootstrap.v3.datetimepicker/index.d.ts @@ -6,7 +6,7 @@ /// -import * as moment from "moment"; +import moment = require("moment"); export as namespace BootstrapV3DatetimePicker; diff --git a/types/bootstrap.v3.datetimepicker/tsconfig.json b/types/bootstrap.v3.datetimepicker/tsconfig.json index 9e4be36a28ed6c..e2d777fefbfc3f 100644 --- a/types/bootstrap.v3.datetimepicker/tsconfig.json +++ b/types/bootstrap.v3.datetimepicker/tsconfig.json @@ -4,7 +4,7 @@ "bootstrap.v3.datetimepicker-tests.ts" ], "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/bootstrap.v3.datetimepicker/v3/index.d.ts b/types/bootstrap.v3.datetimepicker/v3/index.d.ts index ec9c784b2f40ef..514b27f0e9c4ba 100644 --- a/types/bootstrap.v3.datetimepicker/v3/index.d.ts +++ b/types/bootstrap.v3.datetimepicker/v3/index.d.ts @@ -6,7 +6,7 @@ /// -import * as moment from "moment"; +import moment = require("moment"); export as namespace BootstrapV3DatetimePicker; diff --git a/types/bootstrap/test/alert-tests.ts b/types/bootstrap/test/alert-tests.ts index 96bbf132e6e9a8..1e10ee62d7782c 100644 --- a/types/bootstrap/test/alert-tests.ts +++ b/types/bootstrap/test/alert-tests.ts @@ -1,5 +1,5 @@ import { Alert } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/test/button-tests.ts b/types/bootstrap/test/button-tests.ts index 25019e08a207fa..4e9f2d0372c376 100644 --- a/types/bootstrap/test/button-tests.ts +++ b/types/bootstrap/test/button-tests.ts @@ -1,5 +1,5 @@ import { Button } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/test/carousel-tests.ts b/types/bootstrap/test/carousel-tests.ts index d793e572f428c0..3b36c4c18d835a 100644 --- a/types/bootstrap/test/carousel-tests.ts +++ b/types/bootstrap/test/carousel-tests.ts @@ -1,5 +1,5 @@ import { Carousel } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/test/collapse-tests.ts b/types/bootstrap/test/collapse-tests.ts index f68c8263c3ef67..51cbf6394a0e41 100644 --- a/types/bootstrap/test/collapse-tests.ts +++ b/types/bootstrap/test/collapse-tests.ts @@ -1,5 +1,5 @@ import { Collapse } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/test/dropdown-tests.ts b/types/bootstrap/test/dropdown-tests.ts index c367b2ba830cd0..5ed6f4d7e4ee02 100644 --- a/types/bootstrap/test/dropdown-tests.ts +++ b/types/bootstrap/test/dropdown-tests.ts @@ -1,5 +1,5 @@ import { Dropdown } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/test/modal-tests.ts b/types/bootstrap/test/modal-tests.ts index e26aa7a08e42db..aa3594f69ed029 100644 --- a/types/bootstrap/test/modal-tests.ts +++ b/types/bootstrap/test/modal-tests.ts @@ -1,5 +1,5 @@ import { Modal } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/test/offcanvas-tests.ts b/types/bootstrap/test/offcanvas-tests.ts index 6ed48badab8a6e..e1d1339107334a 100644 --- a/types/bootstrap/test/offcanvas-tests.ts +++ b/types/bootstrap/test/offcanvas-tests.ts @@ -1,5 +1,5 @@ import { Offcanvas } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/test/popover-tests.ts b/types/bootstrap/test/popover-tests.ts index dfa4849a1b371b..ec285b5a317ae8 100644 --- a/types/bootstrap/test/popover-tests.ts +++ b/types/bootstrap/test/popover-tests.ts @@ -1,5 +1,5 @@ import { Popover } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/test/scrollspy-tests.ts b/types/bootstrap/test/scrollspy-tests.ts index f2908ee3acf11b..98922d996c2476 100644 --- a/types/bootstrap/test/scrollspy-tests.ts +++ b/types/bootstrap/test/scrollspy-tests.ts @@ -1,5 +1,5 @@ import { ScrollSpy } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/test/tab-tests.ts b/types/bootstrap/test/tab-tests.ts index 6864b3c12453bb..4ad9bdb999ae80 100644 --- a/types/bootstrap/test/tab-tests.ts +++ b/types/bootstrap/test/tab-tests.ts @@ -1,5 +1,5 @@ import { Tab } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/test/toast-tests.ts b/types/bootstrap/test/toast-tests.ts index d88042b0018ae3..cfc4d3e1c858f0 100644 --- a/types/bootstrap/test/toast-tests.ts +++ b/types/bootstrap/test/toast-tests.ts @@ -1,5 +1,5 @@ import { Toast } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/test/tooltip-tests.ts b/types/bootstrap/test/tooltip-tests.ts index 7029ed7108a1fb..feaa3ea6bd89a5 100644 --- a/types/bootstrap/test/tooltip-tests.ts +++ b/types/bootstrap/test/tooltip-tests.ts @@ -1,5 +1,5 @@ import { Tooltip } from "bootstrap"; -import * as $ from "jquery"; +import $ from "jquery"; const element = new Element(); diff --git a/types/bootstrap/tsconfig.json b/types/bootstrap/tsconfig.json index 996f90e97ee5ce..97176dfbbd930e 100644 --- a/types/bootstrap/tsconfig.json +++ b/types/bootstrap/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/bootstrap/v4/tsconfig.json b/types/bootstrap/v4/tsconfig.json index 6347139b1bcdf5..c9b32686114bd6 100755 --- a/types/bootstrap/v4/tsconfig.json +++ b/types/bootstrap/v4/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/box-intersect/tsconfig.json b/types/box-intersect/tsconfig.json index 7d695e4a6d7ed0..c65920edc310bb 100644 --- a/types/box-intersect/tsconfig.json +++ b/types/box-intersect/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/braintree/index.d.ts b/types/braintree/index.d.ts index b1171a7f27951a..95fc8e5abfc5b8 100644 --- a/types/braintree/index.d.ts +++ b/types/braintree/index.d.ts @@ -2,7 +2,7 @@ export = braintree; export as namespace braintree; -import * as stream from "stream"; +import stream = require("stream"); declare namespace braintree { /** diff --git a/types/brotli-webpack-plugin/index.d.ts b/types/brotli-webpack-plugin/index.d.ts index e26e99b81981a3..84542d4d25c6cc 100644 --- a/types/brotli-webpack-plugin/index.d.ts +++ b/types/brotli-webpack-plugin/index.d.ts @@ -1,4 +1,4 @@ -import * as webpack from "webpack"; +import webpack = require("webpack"); declare class BrotliWebpackPlugin extends webpack.Plugin { constructor(options?: BrotliWebpackPlugin.Options); diff --git a/types/browser-bunyan/index.d.ts b/types/browser-bunyan/index.d.ts index 0b4000659f9fe8..8385bf4f1f84f8 100644 --- a/types/browser-bunyan/index.d.ts +++ b/types/browser-bunyan/index.d.ts @@ -1,6 +1,6 @@ /// -import * as bunyan from "bunyan"; +import bunyan = require("bunyan"); declare namespace BrowserBunyan { interface ConsoleFormattedStreamLevelStyle { diff --git a/types/browser-resolve/index.d.ts b/types/browser-resolve/index.d.ts index fd8e4ebf1d9203..f1514f3184700e 100644 --- a/types/browser-resolve/index.d.ts +++ b/types/browser-resolve/index.d.ts @@ -1,4 +1,4 @@ -import * as resv from "resolve"; +import resv = require("resolve"); /** * Resolve a module path and call cb(err, path) diff --git a/types/browser-sync/index.d.ts b/types/browser-sync/index.d.ts index 7b29ade832cbfb..094519e3040406 100644 --- a/types/browser-sync/index.d.ts +++ b/types/browser-sync/index.d.ts @@ -4,7 +4,7 @@ import * as chokidar from "chokidar"; import * as fs from "fs"; import * as http from "http"; -import * as mm from "micromatch"; +import mm = require("micromatch"); import { ServeStaticOptions } from "serve-static"; declare namespace browserSync { diff --git a/types/browserslist-useragent/tsconfig.json b/types/browserslist-useragent/tsconfig.json index 2bbeabea019ab8..c35b79740ee85f 100644 --- a/types/browserslist-useragent/tsconfig.json +++ b/types/browserslist-useragent/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/bser/tsconfig.json b/types/bser/tsconfig.json index daf59841c9511e..9878f1e23948d9 100644 --- a/types/bser/tsconfig.json +++ b/types/bser/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/buffer-reader/tsconfig.json b/types/buffer-reader/tsconfig.json index 33192a2e978448..ad9a5c3a8a6fc6 100644 --- a/types/buffer-reader/tsconfig.json +++ b/types/buffer-reader/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/bufferhelper/tsconfig.json b/types/bufferhelper/tsconfig.json index 2cebee5c26de79..5e62efe65ab9e0 100644 --- a/types/bufferhelper/tsconfig.json +++ b/types/bufferhelper/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "module": "node16", "lib": [ "es6" diff --git a/types/bull-arena/tsconfig.json b/types/bull-arena/tsconfig.json index e2907821a26e46..0f457ec3561a54 100644 --- a/types/bull-arena/tsconfig.json +++ b/types/bull-arena/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/bumblebee-hotword/tsconfig.json b/types/bumblebee-hotword/tsconfig.json index 3d67e54d3663bd..14b23a9e55264c 100644 --- a/types/bumblebee-hotword/tsconfig.json +++ b/types/bumblebee-hotword/tsconfig.json @@ -5,7 +5,6 @@ "es6", "dom" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/bump-regex/bump-regex-tests.ts b/types/bump-regex/bump-regex-tests.ts index d298c292795e3f..7a17630448fd41 100644 --- a/types/bump-regex/bump-regex-tests.ts +++ b/types/bump-regex/bump-regex-tests.ts @@ -1,4 +1,4 @@ -import * as bump from "bump-regex"; +import bump from "bump-regex"; bump({}, (err, res) => { if (err) {} diff --git a/types/bump-regex/tsconfig.json b/types/bump-regex/tsconfig.json index 368f0ce5fc41a4..e20dfcfc0b6cf4 100644 --- a/types/bump-regex/tsconfig.json +++ b/types/bump-regex/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/bunnymq/bunnymq-tests.ts b/types/bunnymq/bunnymq-tests.ts index bf7f251c17e216..83aa7dba8fa7c3 100644 --- a/types/bunnymq/bunnymq-tests.ts +++ b/types/bunnymq/bunnymq-tests.ts @@ -1,4 +1,4 @@ -import * as bunnymq from "bunnymq"; +import bunnymq from "bunnymq"; // Basic usage const instance = bunnymq({ host: "amqp://localhost" }); diff --git a/types/bunnymq/tsconfig.json b/types/bunnymq/tsconfig.json index a84bf3cdd019ed..0b67a1b2917481 100644 --- a/types/bunnymq/tsconfig.json +++ b/types/bunnymq/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/bunyan-blackhole/index.d.ts b/types/bunyan-blackhole/index.d.ts index 4577811f7cb793..a87af277c3d9c4 100644 --- a/types/bunyan-blackhole/index.d.ts +++ b/types/bunyan-blackhole/index.d.ts @@ -1,4 +1,4 @@ -import * as Logger from "bunyan"; +import Logger = require("bunyan"); /** * Constructor. diff --git a/types/bunyan-winston-adapter/index.d.ts b/types/bunyan-winston-adapter/index.d.ts index a6d958ba86e559..ef3aedee56d60d 100644 --- a/types/bunyan-winston-adapter/index.d.ts +++ b/types/bunyan-winston-adapter/index.d.ts @@ -1,4 +1,4 @@ -import * as bunyan from "bunyan"; +import bunyan = require("bunyan"); import { Logger } from "winston"; export function createAdapter(logger: Logger, mapping?: any): bunyan; diff --git a/types/business-rules-engine/index.d.ts b/types/business-rules-engine/index.d.ts index bc54937e4b67c9..79829586de6068 100644 --- a/types/business-rules-engine/index.d.ts +++ b/types/business-rules-engine/index.d.ts @@ -1,4 +1,4 @@ -import * as Q from "q"; +import Q = require("q"); export interface IErrorCustomMessage { (config: any, args: any): string; diff --git a/types/business-rules-engine/node-validators.d.ts b/types/business-rules-engine/node-validators.d.ts index 61e83a4319663a..7eabc261c7bb5a 100644 --- a/types/business-rules-engine/node-validators.d.ts +++ b/types/business-rules-engine/node-validators.d.ts @@ -1,8 +1,8 @@ import Validation = require("business-rules-engine"); export as namespace Validators; -import * as moment from "moment"; -import * as Q from "q"; +import moment = require("moment"); +import Q = require("q"); export class LettersOnlyValidator implements Validation.IStringValidator { public isAcceptable(s: string): boolean; diff --git a/types/bytebuffer/bytebuffer-tests.ts b/types/bytebuffer/bytebuffer-tests.ts index e3e010be855a16..fb375a66b05673 100644 --- a/types/bytebuffer/bytebuffer-tests.ts +++ b/types/bytebuffer/bytebuffer-tests.ts @@ -1,4 +1,4 @@ -import * as ByteBuffer from "bytebuffer"; +import ByteBuffer from "bytebuffer"; var bb = new ByteBuffer().writeIString("Hello world!").flip(); console.log(bb.readIString() + " from bytebuffer.js"); diff --git a/types/bytebuffer/tsconfig.json b/types/bytebuffer/tsconfig.json index f1a142c78b1d7b..fcad1ca3ee5953 100644 --- a/types/bytebuffer/tsconfig.json +++ b/types/bytebuffer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/c3/tsconfig.json b/types/c3/tsconfig.json index 782f18f6409ffc..26bee45c1f24d7 100644 --- a/types/c3/tsconfig.json +++ b/types/c3/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": false, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/cache-manager-ioredis/index.d.ts b/types/cache-manager-ioredis/index.d.ts index f57895dbae7ebf..434cfc437be0a2 100644 --- a/types/cache-manager-ioredis/index.d.ts +++ b/types/cache-manager-ioredis/index.d.ts @@ -1,5 +1,5 @@ import { Cache, CacheOptions, CachingConfig, Store } from "cache-manager"; -import * as IORedis from "ioredis"; +import IORedis = require("ioredis"); declare const methods: CacheManagerIORedis.RedisStoreConstructor; export = methods; diff --git a/types/cached/cached-tests.ts b/types/cached/cached-tests.ts index 6506de7c725dae..2dd2262824c2d0 100644 --- a/types/cached/cached-tests.ts +++ b/types/cached/cached-tests.ts @@ -1,4 +1,4 @@ -import * as cached from "cached"; +import cached from "cached"; const userCache = cached("usr", { backend: { type: "memory" } }); const uuid = "user_1"; diff --git a/types/cached/tsconfig.json b/types/cached/tsconfig.json index cfeb61d7a157c5..be19d2eb6c43cd 100644 --- a/types/cached/tsconfig.json +++ b/types/cached/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/capitalize/capitalize-tests.ts b/types/capitalize/capitalize-tests.ts index 4c94d27ee3be68..69fd9d4bb3e8cf 100644 --- a/types/capitalize/capitalize-tests.ts +++ b/types/capitalize/capitalize-tests.ts @@ -1,4 +1,4 @@ -import * as capitalize from "capitalize"; +import capitalize from "capitalize"; // eslint-disable-next-line no-duplicate-imports import { words } from "capitalize"; diff --git a/types/capitalize/tsconfig.json b/types/capitalize/tsconfig.json index a0170a7d2c8e5c..273b2ff7a9a565 100644 --- a/types/capitalize/tsconfig.json +++ b/types/capitalize/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/carbon-components-react/carbon-components-react-tests.tsx b/types/carbon-components-react/carbon-components-react-tests.tsx index c16d4f1e4e19ee..db5fa5297ec790 100644 --- a/types/carbon-components-react/carbon-components-react-tests.tsx +++ b/types/carbon-components-react/carbon-components-react-tests.tsx @@ -67,7 +67,7 @@ import { LayoutDirection } from "carbon-components-react/lib/components/Layout"; import { Popover, PopoverContent } from "carbon-components-react/lib/components/Popover"; import { Text } from "carbon-components-react/lib/components/Text"; import UIShellLink from "carbon-components-react/lib/components/UIShell/Link"; -import * as React from "react"; +import React from "react"; // test components for "as" props interface TestCompProps { diff --git a/types/cassandra-store/tsconfig.json b/types/cassandra-store/tsconfig.json index 4b826af30e7e58..a98fb9dcc25cd2 100644 --- a/types/cassandra-store/tsconfig.json +++ b/types/cassandra-store/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/cassanknex/tsconfig.json b/types/cassanknex/tsconfig.json index 6b87f460aae1e2..ebaa2ef900ae39 100644 --- a/types/cassanknex/tsconfig.json +++ b/types/cassanknex/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/center-align/tsconfig.json b/types/center-align/tsconfig.json index c350d338fa669a..7a30923733ade7 100644 --- a/types/center-align/tsconfig.json +++ b/types/center-align/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/chai-html/tsconfig.json b/types/chai-html/tsconfig.json index 8ff2cfe1c768a8..acc798bd6f485c 100644 --- a/types/chai-html/tsconfig.json +++ b/types/chai-html/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/chai-jest-snapshot/tsconfig.json b/types/chai-jest-snapshot/tsconfig.json index 61636985658b84..d2378872b6050b 100644 --- a/types/chai-jest-snapshot/tsconfig.json +++ b/types/chai-jest-snapshot/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/chai-match-pattern/index.d.ts b/types/chai-match-pattern/index.d.ts index c425966fa542b7..a3c5dbd90a27b3 100644 --- a/types/chai-match-pattern/index.d.ts +++ b/types/chai-match-pattern/index.d.ts @@ -1,6 +1,6 @@ /// -import * as matchPattern from "lodash-match-pattern"; +import matchPattern = require("lodash-match-pattern"); declare global { namespace Chai { diff --git a/types/chai-match-pattern/tsconfig.json b/types/chai-match-pattern/tsconfig.json index 3af93ac74ace3b..1f2780fe9b623d 100644 --- a/types/chai-match-pattern/tsconfig.json +++ b/types/chai-match-pattern/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/chai-subset-in-order/tsconfig.json b/types/chai-subset-in-order/tsconfig.json index da77f632311210..fa7dd98a691299 100644 --- a/types/chai-subset-in-order/tsconfig.json +++ b/types/chai-subset-in-order/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/chai-things/chai-things-tests.ts b/types/chai-things/chai-things-tests.ts index 7848ea2586c1ac..611b6c6cc98998 100644 --- a/types/chai-things/chai-things-tests.ts +++ b/types/chai-things/chai-things-tests.ts @@ -1,4 +1,4 @@ -import * as chaiThings from "chai-things"; +import chaiThings from "chai-things"; import("chai").then(({ use }) => use(chaiThings)); declare const expect: Chai.ExpectStatic; diff --git a/types/chai-things/tsconfig.json b/types/chai-things/tsconfig.json index c325cb833153aa..a7c2936e19732c 100644 --- a/types/chai-things/tsconfig.json +++ b/types/chai-things/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/changelog-filename-regex/tsconfig.json b/types/changelog-filename-regex/tsconfig.json index c1769f7e3f9c99..c33b3895e1cca4 100644 --- a/types/changelog-filename-regex/tsconfig.json +++ b/types/changelog-filename-regex/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/chartjs-plugin-colorschemes/chartjs-plugin-colorschemes-tests.ts b/types/chartjs-plugin-colorschemes/chartjs-plugin-colorschemes-tests.ts index f5a5287ec10667..19db3f2255699b 100644 --- a/types/chartjs-plugin-colorschemes/chartjs-plugin-colorschemes-tests.ts +++ b/types/chartjs-plugin-colorschemes/chartjs-plugin-colorschemes-tests.ts @@ -1,4 +1,4 @@ -import * as Chart from "chart.js"; +import Chart from "chart.js"; import { ColorSchemesOptions } from "chartjs-plugin-colorschemes"; // https://github.com/nagix/chartjs-plugin-colorschemes/blob/master/src/plugins/plugin.colorschemes.js#L12 diff --git a/types/chartjs-plugin-colorschemes/index.d.ts b/types/chartjs-plugin-colorschemes/index.d.ts index 8d468218f092b4..c5c24b26aa0195 100644 --- a/types/chartjs-plugin-colorschemes/index.d.ts +++ b/types/chartjs-plugin-colorschemes/index.d.ts @@ -1,4 +1,4 @@ -import * as Chart from "chart.js"; +import Chart = require("chart.js"); declare module "chart.js" { interface ChartPluginsOptions { diff --git a/types/chartjs-plugin-colorschemes/tsconfig.json b/types/chartjs-plugin-colorschemes/tsconfig.json index bff7292077ef70..f1acff5d09d461 100644 --- a/types/chartjs-plugin-colorschemes/tsconfig.json +++ b/types/chartjs-plugin-colorschemes/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/chartjs-plugin-crosshair/chartjs-plugin-crosshair-tests.ts b/types/chartjs-plugin-crosshair/chartjs-plugin-crosshair-tests.ts index 27ef581713c4e2..e340f117899f1b 100644 --- a/types/chartjs-plugin-crosshair/chartjs-plugin-crosshair-tests.ts +++ b/types/chartjs-plugin-crosshair/chartjs-plugin-crosshair-tests.ts @@ -1,4 +1,4 @@ -import * as Chart from "chart.js"; +import Chart from "chart.js"; const ctx = new CanvasRenderingContext2D(); diff --git a/types/chartjs-plugin-crosshair/index.d.ts b/types/chartjs-plugin-crosshair/index.d.ts index 1e2aa74df45d2c..9f38fcaad36c40 100644 --- a/types/chartjs-plugin-crosshair/index.d.ts +++ b/types/chartjs-plugin-crosshair/index.d.ts @@ -1,4 +1,4 @@ -import * as Chart from "chart.js"; +import Chart = require("chart.js"); declare module "chart.js" { interface ChartPluginsOptions { diff --git a/types/chartjs-plugin-crosshair/tsconfig.json b/types/chartjs-plugin-crosshair/tsconfig.json index ea97d63b55871b..6ef8913289ed01 100644 --- a/types/chartjs-plugin-crosshair/tsconfig.json +++ b/types/chartjs-plugin-crosshair/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/chivox_h5sdk/tsconfig.json b/types/chivox_h5sdk/tsconfig.json index e96195abec1e82..bd0d532b466d48 100644 --- a/types/chivox_h5sdk/tsconfig.json +++ b/types/chivox_h5sdk/tsconfig.json @@ -5,7 +5,7 @@ "esnext", "dom" ], - "module": "commonjs", + "module": "node16", "types": [], "strictFunctionTypes": true, "strictNullChecks": true, diff --git a/types/chromecast-caf-receiver/tsconfig.json b/types/chromecast-caf-receiver/tsconfig.json index d91a7f819ec9b6..1f3a328fb17bcf 100644 --- a/types/chromecast-caf-receiver/tsconfig.json +++ b/types/chromecast-caf-receiver/tsconfig.json @@ -11,8 +11,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "strictFunctionTypes": true, - "esModuleInterop": true + "strictFunctionTypes": true }, "files": [ "index.d.ts", diff --git a/types/clamp-js/clamp-js-tests.ts b/types/clamp-js/clamp-js-tests.ts index 90d7f16ee5bef0..86d86904d2ddad 100644 --- a/types/clamp-js/clamp-js-tests.ts +++ b/types/clamp-js/clamp-js-tests.ts @@ -1,4 +1,4 @@ -import * as clamp from "clamp-js"; +import clamp from "clamp-js"; const lineElement: HTMLElement = document.createElement("div"); lineElement.style.setProperty("font-size", "3px"); diff --git a/types/clamp-js/tsconfig.json b/types/clamp-js/tsconfig.json index bfd117de102bf4..d71072392c76d2 100644 --- a/types/clamp-js/tsconfig.json +++ b/types/clamp-js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/classificator/classificator-tests.ts b/types/classificator/classificator-tests.ts index b859e0189479d3..8dee099251fda2 100644 --- a/types/classificator/classificator-tests.ts +++ b/types/classificator/classificator-tests.ts @@ -1,4 +1,4 @@ -import * as classificator from "classificator"; +import classificator from "classificator"; // $ExpectType NaiveBayes classificator(); diff --git a/types/classificator/tsconfig.json b/types/classificator/tsconfig.json index cf3a3c9c9f413f..e5d826578556af 100644 --- a/types/classificator/tsconfig.json +++ b/types/classificator/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/cldrjs/cldr/supplemental.d.ts b/types/cldrjs/cldr/supplemental.d.ts index c2c5e82320dbcd..59b506497fd691 100644 --- a/types/cldrjs/cldr/supplemental.d.ts +++ b/types/cldrjs/cldr/supplemental.d.ts @@ -1,6 +1,6 @@ // The definition file for supplemental module. -import * as cldr from "cldrjs"; +import cldr = require("cldrjs"); declare module "cldrjs" { interface TimeDataStatic { diff --git a/types/cldrjs/test/supplemental.ts b/types/cldrjs/test/supplemental.ts index b1497f8257d137..3d1fb33e88e8b9 100644 --- a/types/cldrjs/test/supplemental.ts +++ b/types/cldrjs/test/supplemental.ts @@ -1,4 +1,4 @@ -import * as Cldr from "cldrjs"; +import Cldr from "cldrjs"; import "cldrjs/cldr/supplemental"; const myCldr = new Cldr("en"); diff --git a/types/cldrjs/tsconfig.json b/types/cldrjs/tsconfig.json index 2965625fd3a567..56954b9acdbf28 100644 --- a/types/cldrjs/tsconfig.json +++ b/types/cldrjs/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/clean-css/clean-css-tests.ts b/types/clean-css/clean-css-tests.ts index 2c9d043d884b30..48406f8988947d 100644 --- a/types/clean-css/clean-css-tests.ts +++ b/types/clean-css/clean-css-tests.ts @@ -1,7 +1,7 @@ // Original by Tanguy Krotoff // Updated by Andrew Potter -import * as CleanCSS from "clean-css"; +import CleanCSS from "clean-css"; let source = "a{font-weight:bold;}"; console.log(new CleanCSS().minify(source).styles); diff --git a/types/clean-css/tsconfig.json b/types/clean-css/tsconfig.json index 2866ab0f64b088..2ceefb164d1802 100644 --- a/types/clean-css/tsconfig.json +++ b/types/clean-css/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/clean-css/v3/clean-css-tests.ts b/types/clean-css/v3/clean-css-tests.ts index ae4f6656cad374..d50078394773e5 100644 --- a/types/clean-css/v3/clean-css-tests.ts +++ b/types/clean-css/v3/clean-css-tests.ts @@ -1,4 +1,4 @@ -import * as CleanCSS from "clean-css"; +import CleanCSS from "clean-css"; var source = "a{font-weight:bold;}"; var minified = new CleanCSS().minify(source).styles; diff --git a/types/clean-css/v3/tsconfig.json b/types/clean-css/v3/tsconfig.json index 2866ab0f64b088..2ceefb164d1802 100644 --- a/types/clean-css/v3/tsconfig.json +++ b/types/clean-css/v3/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/clevertap-web-sdk/tsconfig.json b/types/clevertap-web-sdk/tsconfig.json index 97d6832e277128..2c36de48acd036 100644 --- a/types/clevertap-web-sdk/tsconfig.json +++ b/types/clevertap-web-sdk/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/cli-table2/cli-table2-tests.ts b/types/cli-table2/cli-table2-tests.ts index f0f63e1af280f4..4afb2c169667a7 100644 --- a/types/cli-table2/cli-table2-tests.ts +++ b/types/cli-table2/cli-table2-tests.ts @@ -1,4 +1,4 @@ -import * as Table from "cli-table2"; +import Table from "cli-table2"; // Code snippets from README.md diff --git a/types/cli-table2/tsconfig.json b/types/cli-table2/tsconfig.json index 0f815368bcf6a4..ce451efc02acea 100644 --- a/types/cli-table2/tsconfig.json +++ b/types/cli-table2/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/client-sessions/index.d.ts b/types/client-sessions/index.d.ts index 81b76e9e0406df..3a2f93a43317c3 100644 --- a/types/client-sessions/index.d.ts +++ b/types/client-sessions/index.d.ts @@ -1,6 +1,6 @@ /// -import * as cookies from "cookies"; +import cookies = require("cookies"); interface CookieOptions extends cookies.IOptions { /** diff --git a/types/clndr/index.d.ts b/types/clndr/index.d.ts index 6df442c535bca1..032bc6e63e84ed 100644 --- a/types/clndr/index.d.ts +++ b/types/clndr/index.d.ts @@ -1,6 +1,6 @@ /// -import * as moment from "moment"; +import moment = require("moment"); export as namespace Clndr; diff --git a/types/cloudfour__simple-svg-placeholder/cloudfour__simple-svg-placeholder-tests.ts b/types/cloudfour__simple-svg-placeholder/cloudfour__simple-svg-placeholder-tests.ts index a4d5957830c164..730062f1b67afb 100644 --- a/types/cloudfour__simple-svg-placeholder/cloudfour__simple-svg-placeholder-tests.ts +++ b/types/cloudfour__simple-svg-placeholder/cloudfour__simple-svg-placeholder-tests.ts @@ -1,5 +1,5 @@ import placeholder = require("@cloudfour/simple-svg-placeholder"); -import * as placeholderByImportFrom from "@cloudfour/simple-svg-placeholder"; +import placeholderByImportFrom from "@cloudfour/simple-svg-placeholder"; // $ExpectType string placeholder(); diff --git a/types/cloudfour__simple-svg-placeholder/tsconfig.json b/types/cloudfour__simple-svg-placeholder/tsconfig.json index 7df48f90837b53..15c885ec6eea9b 100644 --- a/types/cloudfour__simple-svg-placeholder/tsconfig.json +++ b/types/cloudfour__simple-svg-placeholder/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/clui/index.d.ts b/types/clui/index.d.ts index 97104426e0990d..7223151a087d72 100644 --- a/types/clui/index.d.ts +++ b/types/clui/index.d.ts @@ -1,4 +1,4 @@ -import * as clc from "cli-color"; +import clc = require("cli-color"); export interface LineBufferOptions { x?: number | undefined; diff --git a/types/co-views/co-views-tests.ts b/types/co-views/co-views-tests.ts index 2a51f829233307..d40c7f6973b769 100644 --- a/types/co-views/co-views-tests.ts +++ b/types/co-views/co-views-tests.ts @@ -1,4 +1,4 @@ -import * as views from "co-views"; +import views from "co-views"; const render = views("views", { map: { diff --git a/types/co-views/tsconfig.json b/types/co-views/tsconfig.json index 15963b5ab47c1c..9652ac78fdaf2f 100644 --- a/types/co-views/tsconfig.json +++ b/types/co-views/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "target": "es6", "lib": [ "es6" diff --git a/types/codemirror/addon/fold/foldcode.d.ts b/types/codemirror/addon/fold/foldcode.d.ts index caba1facf325e4..7762aadbe37796 100644 --- a/types/codemirror/addon/fold/foldcode.d.ts +++ b/types/codemirror/addon/fold/foldcode.d.ts @@ -1,6 +1,6 @@ // See docs https://codemirror.net/doc/manual.html#addon_foldcode -import * as CodeMirror from "../../"; +import CodeMirror = require("../../"); export type FoldRangeFinder = (cm: CodeMirror.Editor, pos: CodeMirror.Position) => CodeMirror.FoldRange | undefined; diff --git a/types/codemirror/addon/fold/xml-fold.d.ts b/types/codemirror/addon/fold/xml-fold.d.ts index 4c2cbad7551dd2..4f52c7a3ef0773 100644 --- a/types/codemirror/addon/fold/xml-fold.d.ts +++ b/types/codemirror/addon/fold/xml-fold.d.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "../../"; +import CodeMirror = require("../../"); import "./foldcode"; export interface XmlTag { diff --git a/types/codemirror/addon/lint/lint.d.ts b/types/codemirror/addon/lint/lint.d.ts index 1da24753accbff..515e0e6c6dcf5e 100644 --- a/types/codemirror/addon/lint/lint.d.ts +++ b/types/codemirror/addon/lint/lint.d.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "../../"; +import CodeMirror = require("../../"); export interface BaseLintStateOptions { /** debounce delay before linting onChange */ diff --git a/types/codemirror/addon/merge/merge.d.ts b/types/codemirror/addon/merge/merge.d.ts index a6da73234f4065..79e1a0d51518d1 100644 --- a/types/codemirror/addon/merge/merge.d.ts +++ b/types/codemirror/addon/merge/merge.d.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "../../"; +import CodeMirror = require("../../"); /** * Tracks changes in chunks from original to new. diff --git a/types/codemirror/addon/mode/multiplex.d.ts b/types/codemirror/addon/mode/multiplex.d.ts index 5f0702cdc1e819..484b536984b84e 100644 --- a/types/codemirror/addon/mode/multiplex.d.ts +++ b/types/codemirror/addon/mode/multiplex.d.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "../../"; +import CodeMirror = require("../../"); export interface MultiplexedInnerMode { open: string; diff --git a/types/codemirror/addon/scroll/annotatescrollbar.d.ts b/types/codemirror/addon/scroll/annotatescrollbar.d.ts index 078830c41fd2c9..0010c77ff008e7 100644 --- a/types/codemirror/addon/scroll/annotatescrollbar.d.ts +++ b/types/codemirror/addon/scroll/annotatescrollbar.d.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "../.."; +import CodeMirror = require("../.."); import "./searchcursor"; export interface Annotation { diff --git a/types/codemirror/test/addon/comment/comment.ts b/types/codemirror/test/addon/comment/comment.ts index 72d54c36884c31..0aeedd26c381ce 100644 --- a/types/codemirror/test/addon/comment/comment.ts +++ b/types/codemirror/test/addon/comment/comment.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/comment/comment"; const editor = CodeMirror(document.body); diff --git a/types/codemirror/test/addon/comment/continuecomment.ts b/types/codemirror/test/addon/comment/continuecomment.ts index f14c0da9cba015..c707fbbf6ae4d3 100644 --- a/types/codemirror/test/addon/comment/continuecomment.ts +++ b/types/codemirror/test/addon/comment/continuecomment.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/comment/continuecomment"; const cm1 = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/dialog/dialog.ts b/types/codemirror/test/addon/dialog/dialog.ts index 11c987a67cd08f..b46b1aa6ccfdd9 100644 --- a/types/codemirror/test/addon/dialog/dialog.ts +++ b/types/codemirror/test/addon/dialog/dialog.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/dialog/dialog"; const editor = CodeMirror(document.body); diff --git a/types/codemirror/test/addon/display/autorefresh.ts b/types/codemirror/test/addon/display/autorefresh.ts index 6adfac99e78c36..01ef00854bb1f1 100644 --- a/types/codemirror/test/addon/display/autorefresh.ts +++ b/types/codemirror/test/addon/display/autorefresh.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/display/autorefresh"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/display/fullscreen.ts b/types/codemirror/test/addon/display/fullscreen.ts index cc4457030b727d..857bb46cc76639 100644 --- a/types/codemirror/test/addon/display/fullscreen.ts +++ b/types/codemirror/test/addon/display/fullscreen.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/display/fullscreen"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/display/panel.ts b/types/codemirror/test/addon/display/panel.ts index e4463ad28e7eba..2119899296e836 100644 --- a/types/codemirror/test/addon/display/panel.ts +++ b/types/codemirror/test/addon/display/panel.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/display/panel"; const cm: CodeMirror.Editor = CodeMirror(document.body); diff --git a/types/codemirror/test/addon/display/placeholder.ts b/types/codemirror/test/addon/display/placeholder.ts index 487f3d206314e1..845426edb881cc 100644 --- a/types/codemirror/test/addon/display/placeholder.ts +++ b/types/codemirror/test/addon/display/placeholder.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/display/placeholder"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/display/rulers.ts b/types/codemirror/test/addon/display/rulers.ts index f91d030f133f6e..9a9f2e0bd190b2 100644 --- a/types/codemirror/test/addon/display/rulers.ts +++ b/types/codemirror/test/addon/display/rulers.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/display/rulers"; const cm1 = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/edit/closebrackets.ts b/types/codemirror/test/addon/edit/closebrackets.ts index 8810f5c5eb52ea..49ef2d9cbd8629 100644 --- a/types/codemirror/test/addon/edit/closebrackets.ts +++ b/types/codemirror/test/addon/edit/closebrackets.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/edit/closebrackets"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/edit/closetag.ts b/types/codemirror/test/addon/edit/closetag.ts index 0a49a5310aa197..c76fe9e356c0c8 100644 --- a/types/codemirror/test/addon/edit/closetag.ts +++ b/types/codemirror/test/addon/edit/closetag.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/edit/closetag"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/edit/matchbrackets.ts b/types/codemirror/test/addon/edit/matchbrackets.ts index 8cf2c1fc77b20b..43d93e84163693 100644 --- a/types/codemirror/test/addon/edit/matchbrackets.ts +++ b/types/codemirror/test/addon/edit/matchbrackets.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/edit/matchbrackets"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/edit/matchtags.ts b/types/codemirror/test/addon/edit/matchtags.ts index 9be5587834f408..55c4712e41e6c3 100644 --- a/types/codemirror/test/addon/edit/matchtags.ts +++ b/types/codemirror/test/addon/edit/matchtags.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/edit/matchtags"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/edit/trailingspace.ts b/types/codemirror/test/addon/edit/trailingspace.ts index 74f6366a52e87a..7729bb629c2a87 100644 --- a/types/codemirror/test/addon/edit/trailingspace.ts +++ b/types/codemirror/test/addon/edit/trailingspace.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/edit/trailingspace"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/fold/brace-fold.ts b/types/codemirror/test/addon/fold/brace-fold.ts index 6da549e06f2cfd..a0d6d02a8798b1 100644 --- a/types/codemirror/test/addon/fold/brace-fold.ts +++ b/types/codemirror/test/addon/fold/brace-fold.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/fold/brace-fold"; import "codemirror/addon/fold/foldcode"; diff --git a/types/codemirror/test/addon/fold/comment-fold.ts b/types/codemirror/test/addon/fold/comment-fold.ts index 17d7b8336ed8c8..37d09c190f21f6 100644 --- a/types/codemirror/test/addon/fold/comment-fold.ts +++ b/types/codemirror/test/addon/fold/comment-fold.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/fold/comment-fold"; import "codemirror/addon/fold/foldcode"; diff --git a/types/codemirror/test/addon/fold/foldcode.ts b/types/codemirror/test/addon/fold/foldcode.ts index c78e5cb37b7ee1..e4b1f50f5a2e82 100644 --- a/types/codemirror/test/addon/fold/foldcode.ts +++ b/types/codemirror/test/addon/fold/foldcode.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/fold/foldcode"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/fold/foldgutter.ts b/types/codemirror/test/addon/fold/foldgutter.ts index b3b4c2d55dedf0..d3a47e508fef35 100644 --- a/types/codemirror/test/addon/fold/foldgutter.ts +++ b/types/codemirror/test/addon/fold/foldgutter.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/fold/foldgutter"; const myCodeMirror1: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/fold/indent-fold.ts b/types/codemirror/test/addon/fold/indent-fold.ts index bf1257a6245eda..ca576a40df3abf 100644 --- a/types/codemirror/test/addon/fold/indent-fold.ts +++ b/types/codemirror/test/addon/fold/indent-fold.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/fold/foldcode"; import "codemirror/addon/fold/indent-fold"; diff --git a/types/codemirror/test/addon/fold/markdown-fold.ts b/types/codemirror/test/addon/fold/markdown-fold.ts index f7505137d249aa..21d1debdf69465 100644 --- a/types/codemirror/test/addon/fold/markdown-fold.ts +++ b/types/codemirror/test/addon/fold/markdown-fold.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/fold/foldcode"; import "codemirror/addon/fold/markdown-fold"; diff --git a/types/codemirror/test/addon/fold/xml-fold.ts b/types/codemirror/test/addon/fold/xml-fold.ts index 13f26b2b29e7a8..3926e7baa7b982 100644 --- a/types/codemirror/test/addon/fold/xml-fold.ts +++ b/types/codemirror/test/addon/fold/xml-fold.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/fold/foldcode"; import "codemirror/addon/fold/xml-fold"; diff --git a/types/codemirror/test/addon/hint/anyword-hint.ts b/types/codemirror/test/addon/hint/anyword-hint.ts index e56ce9f479c729..09e9eb550952b9 100644 --- a/types/codemirror/test/addon/hint/anyword-hint.ts +++ b/types/codemirror/test/addon/hint/anyword-hint.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/hint/anyword-hint"; import "codemirror/addon/hint/show-hint"; diff --git a/types/codemirror/test/addon/hint/css-hint.ts b/types/codemirror/test/addon/hint/css-hint.ts index 9ec4b21ab74cfa..39680451424f13 100644 --- a/types/codemirror/test/addon/hint/css-hint.ts +++ b/types/codemirror/test/addon/hint/css-hint.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/hint/css-hint"; import "codemirror/addon/hint/show-hint"; diff --git a/types/codemirror/test/addon/hint/html-hint.ts b/types/codemirror/test/addon/hint/html-hint.ts index 1e8112d57e3d4b..6be051bfbff30b 100644 --- a/types/codemirror/test/addon/hint/html-hint.ts +++ b/types/codemirror/test/addon/hint/html-hint.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/hint/html-hint"; import "codemirror/addon/hint/show-hint"; diff --git a/types/codemirror/test/addon/hint/javascript-hint.ts b/types/codemirror/test/addon/hint/javascript-hint.ts index 91d5349c88549d..1a26d147e910e9 100644 --- a/types/codemirror/test/addon/hint/javascript-hint.ts +++ b/types/codemirror/test/addon/hint/javascript-hint.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/hint/javascript-hint"; import "codemirror/addon/hint/show-hint"; diff --git a/types/codemirror/test/addon/hint/show-hint.ts b/types/codemirror/test/addon/hint/show-hint.ts index 8dec6f0fb140cb..0346517d7b256f 100644 --- a/types/codemirror/test/addon/hint/show-hint.ts +++ b/types/codemirror/test/addon/hint/show-hint.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/hint/show-hint"; const cm = CodeMirror(document.body, { value: "text" }); diff --git a/types/codemirror/test/addon/hint/sql-hint.ts b/types/codemirror/test/addon/hint/sql-hint.ts index 847d0a9a399ed0..db21be8e36e021 100644 --- a/types/codemirror/test/addon/hint/sql-hint.ts +++ b/types/codemirror/test/addon/hint/sql-hint.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/hint/show-hint"; import "codemirror/addon/hint/sql-hint"; diff --git a/types/codemirror/test/addon/hint/xml-hint.ts b/types/codemirror/test/addon/hint/xml-hint.ts index 73d1ecc2488fc1..1e7b78ebbc955b 100644 --- a/types/codemirror/test/addon/hint/xml-hint.ts +++ b/types/codemirror/test/addon/hint/xml-hint.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/hint/show-hint"; import "codemirror/addon/hint/xml-hint"; diff --git a/types/codemirror/test/addon/mode/loadMode.ts b/types/codemirror/test/addon/mode/loadMode.ts index 6bb3476792f7b9..8cf990bd2ed99c 100644 --- a/types/codemirror/test/addon/mode/loadMode.ts +++ b/types/codemirror/test/addon/mode/loadMode.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/mode/loadMode"; CodeMirror.requireMode("javascript", () => { diff --git a/types/codemirror/test/addon/scroll/annotatescrollbar.ts b/types/codemirror/test/addon/scroll/annotatescrollbar.ts index c0d24a0c850a60..e63bde0d05ab07 100644 --- a/types/codemirror/test/addon/scroll/annotatescrollbar.ts +++ b/types/codemirror/test/addon/scroll/annotatescrollbar.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/scroll/annotatescrollbar"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/scroll/scrollpastend.ts b/types/codemirror/test/addon/scroll/scrollpastend.ts index 266ffb8c11833e..0fc6960ed69565 100644 --- a/types/codemirror/test/addon/scroll/scrollpastend.ts +++ b/types/codemirror/test/addon/scroll/scrollpastend.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/scroll/scrollpastend"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/scroll/simplescrollbars.ts b/types/codemirror/test/addon/scroll/simplescrollbars.ts index a314954d6ca2ce..57cfc42e9ab0b8 100644 --- a/types/codemirror/test/addon/scroll/simplescrollbars.ts +++ b/types/codemirror/test/addon/scroll/simplescrollbars.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/scroll/simplescrollbars"; const cm1: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/search/jump-to-line.ts b/types/codemirror/test/addon/search/jump-to-line.ts index e6e23917de3f46..120fb8c6d2c4d5 100644 --- a/types/codemirror/test/addon/search/jump-to-line.ts +++ b/types/codemirror/test/addon/search/jump-to-line.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/search/jump-to-line"; const editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/search/match-highlighter.ts b/types/codemirror/test/addon/search/match-highlighter.ts index e572aec2af80f0..b0e9e3b3bd1ed7 100644 --- a/types/codemirror/test/addon/search/match-highlighter.ts +++ b/types/codemirror/test/addon/search/match-highlighter.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/search/match-highlighter"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/search/matchesonscrollbar.ts b/types/codemirror/test/addon/search/matchesonscrollbar.ts index 2bae287852d1ea..918abd3b628632 100644 --- a/types/codemirror/test/addon/search/matchesonscrollbar.ts +++ b/types/codemirror/test/addon/search/matchesonscrollbar.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/search/matchesonscrollbar"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/search/search.ts b/types/codemirror/test/addon/search/search.ts index 1554528b8b0808..39dd73dda647f1 100644 --- a/types/codemirror/test/addon/search/search.ts +++ b/types/codemirror/test/addon/search/search.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/search/search"; const editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/search/searchcursor.ts b/types/codemirror/test/addon/search/searchcursor.ts index c852df5c689454..494665383a85ff 100644 --- a/types/codemirror/test/addon/search/searchcursor.ts +++ b/types/codemirror/test/addon/search/searchcursor.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/search/searchcursor"; const cm = CodeMirror(document.body); diff --git a/types/codemirror/test/addon/selection/active-line.ts b/types/codemirror/test/addon/selection/active-line.ts index c643191807624e..b1c346eba08955 100644 --- a/types/codemirror/test/addon/selection/active-line.ts +++ b/types/codemirror/test/addon/selection/active-line.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/selection/active-line"; const myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/selection/mark-selection.ts b/types/codemirror/test/addon/selection/mark-selection.ts index eb009c18bb3455..a319978a8068a5 100644 --- a/types/codemirror/test/addon/selection/mark-selection.ts +++ b/types/codemirror/test/addon/selection/mark-selection.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/selection/mark-selection"; const cm1: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/selection/selection-pointer.ts b/types/codemirror/test/addon/selection/selection-pointer.ts index df4cff9cdf63f0..cc37da4c7d7275 100644 --- a/types/codemirror/test/addon/selection/selection-pointer.ts +++ b/types/codemirror/test/addon/selection/selection-pointer.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/selection/selection-pointer"; const cm1: CodeMirror.Editor = CodeMirror(document.body, { diff --git a/types/codemirror/test/addon/tern/tern.ts b/types/codemirror/test/addon/tern/tern.ts index 080f1c14675cdd..f6018271cdd22d 100644 --- a/types/codemirror/test/addon/tern/tern.ts +++ b/types/codemirror/test/addon/tern/tern.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/tern/tern"; const cm = CodeMirror(document.body); diff --git a/types/codemirror/test/addon/wrap/hardwrap.ts b/types/codemirror/test/addon/wrap/hardwrap.ts index cee9ed3f9947ec..fff9c7302e24be 100644 --- a/types/codemirror/test/addon/wrap/hardwrap.ts +++ b/types/codemirror/test/addon/wrap/hardwrap.ts @@ -1,4 +1,4 @@ -import * as CodeMirror from "codemirror"; +import CodeMirror from "codemirror"; import "codemirror/addon/wrap/hardwrap"; const editor = CodeMirror(document.body); diff --git a/types/codemirror/tsconfig.json b/types/codemirror/tsconfig.json index 8ed52cd520e378..563761afa5d8c4 100644 --- a/types/codemirror/tsconfig.json +++ b/types/codemirror/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/codependency/tsconfig.json b/types/codependency/tsconfig.json index b5e0b30c8d7d3c..7629e855bf94f0 100644 --- a/types/codependency/tsconfig.json +++ b/types/codependency/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/color-check/tsconfig.json b/types/color-check/tsconfig.json index 68590a747f40f8..41a99aa2b7e12f 100644 --- a/types/color-check/tsconfig.json +++ b/types/color-check/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/color/v0/color-tests.ts b/types/color/v0/color-tests.ts index 0f6e2e6589d258..21469c61abe7e1 100644 --- a/types/color/v0/color-tests.ts +++ b/types/color/v0/color-tests.ts @@ -1,4 +1,4 @@ -import * as Color from "color"; +import Color from "color"; var color: Color.Color = Color("white"); var colorOther: Color.Color = Color("black"); diff --git a/types/color/v0/tsconfig.json b/types/color/v0/tsconfig.json index 27f654293c7f84..fb38136f3b867f 100644 --- a/types/color/v0/tsconfig.json +++ b/types/color/v0/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/color/v1/color-tests.ts b/types/color/v1/color-tests.ts index c36f7fd79d72c9..09b9d49b803dd5 100644 --- a/types/color/v1/color-tests.ts +++ b/types/color/v1/color-tests.ts @@ -1,4 +1,4 @@ -import * as Color from "color"; +import Color from "color"; var color: Color.Color = Color("white"); var colorOther: Color.Color = Color("black"); diff --git a/types/color/v1/tsconfig.json b/types/color/v1/tsconfig.json index 27f654293c7f84..fb38136f3b867f 100644 --- a/types/color/v1/tsconfig.json +++ b/types/color/v1/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/common-errors/index.d.ts b/types/common-errors/index.d.ts index cecd0144631b48..f48637dc3541d2 100644 --- a/types/common-errors/index.d.ts +++ b/types/common-errors/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); export type GenerateMessageMethod = () => string; diff --git a/types/commonmark-react-renderer/commonmark-react-renderer-tests.ts b/types/commonmark-react-renderer/commonmark-react-renderer-tests.ts index e2597a05c3decd..2234ad97a0d77d 100644 --- a/types/commonmark-react-renderer/commonmark-react-renderer-tests.ts +++ b/types/commonmark-react-renderer/commonmark-react-renderer-tests.ts @@ -1,5 +1,5 @@ import * as CommonMark from "commonmark"; -import * as ReactRenderer from "commonmark-react-renderer"; +import ReactRenderer from "commonmark-react-renderer"; const parser = new CommonMark.Parser(); const renderer = new ReactRenderer(); diff --git a/types/commonmark-react-renderer/tsconfig.json b/types/commonmark-react-renderer/tsconfig.json index 9387784ef1fea9..1879fd12dc8f45 100644 --- a/types/commonmark-react-renderer/tsconfig.json +++ b/types/commonmark-react-renderer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/concat-map/tsconfig.json b/types/concat-map/tsconfig.json index 4ce00c7dcf8f60..426668296d8209 100644 --- a/types/concat-map/tsconfig.json +++ b/types/concat-map/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/concaveman/concaveman-tests.ts b/types/concaveman/concaveman-tests.ts index 7a1c3c7f6100bb..42afffc342c1ef 100644 --- a/types/concaveman/concaveman-tests.ts +++ b/types/concaveman/concaveman-tests.ts @@ -1,4 +1,4 @@ -import * as concaveman from "concaveman"; +import concaveman from "concaveman"; var points = [[10, 20], [30, 12.5]]; var polygon = concaveman(points); diff --git a/types/concaveman/tsconfig.json b/types/concaveman/tsconfig.json index 4ce64b3c33db3d..c1ca895653e086 100644 --- a/types/concaveman/tsconfig.json +++ b/types/concaveman/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/connect-azuretables/index.d.ts b/types/connect-azuretables/index.d.ts index ea5af6e4dbcb3b..773cea0d9a0f26 100644 --- a/types/connect-azuretables/index.d.ts +++ b/types/connect-azuretables/index.d.ts @@ -1,5 +1,5 @@ -import * as express from "express"; -import * as session from "express-session"; +import express = require("express"); +import session = require("express-session"); declare function connectAzureTable( session: (options?: session.SessionOptions) => express.RequestHandler, diff --git a/types/connect-busboy/connect-busboy-tests.ts b/types/connect-busboy/connect-busboy-tests.ts index 288a4b89e8279a..781150ba74757b 100644 --- a/types/connect-busboy/connect-busboy-tests.ts +++ b/types/connect-busboy/connect-busboy-tests.ts @@ -1,6 +1,6 @@ import connectBusboy = require("connect-busboy"); -import * as express from "express"; +import express from "express"; const options: connectBusboy.ConnectBusboyOptions = { headers: { "content-type": "foo" }, immediate: true }; const options2: connectBusboy.ConnectBusboyOptions = { immediate: true }; diff --git a/types/connect-busboy/tsconfig.json b/types/connect-busboy/tsconfig.json index c4f60cc56d05ea..54506853d07d83 100644 --- a/types/connect-busboy/tsconfig.json +++ b/types/connect-busboy/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/connect-mongodb-session/connect-mongodb-session-tests.ts b/types/connect-mongodb-session/connect-mongodb-session-tests.ts index d7781f89088438..1d27cd01354d2c 100644 --- a/types/connect-mongodb-session/connect-mongodb-session-tests.ts +++ b/types/connect-mongodb-session/connect-mongodb-session-tests.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express from "express"; import session = require("express-session"); import connectMongo = require("connect-mongodb-session"); diff --git a/types/connect-mongodb-session/tsconfig.json b/types/connect-mongodb-session/tsconfig.json index b602c76a96f417..e86f1ae1fdf535 100644 --- a/types/connect-mongodb-session/tsconfig.json +++ b/types/connect-mongodb-session/tsconfig.json @@ -4,13 +4,14 @@ "lib": [ "es6" ], - "module": "commonjs", + "module": "node16", "noEmit": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "types": [] + "types": [], + "esModuleInterop": true }, "files": [ "connect-mongodb-session-tests.ts", diff --git a/types/connect-route/index.d.ts b/types/connect-route/index.d.ts index 45832abf98bc09..0f8ace067f439c 100644 --- a/types/connect-route/index.d.ts +++ b/types/connect-route/index.d.ts @@ -1,5 +1,5 @@ import { type NextFunction, type NextHandleFunction } from "connect"; -import * as connect from "connect"; +import connect = require("connect"); import { type ServerResponse } from "http"; declare class IncomingMessage extends connect.IncomingMessage { diff --git a/types/connect-sequence/tsconfig.json b/types/connect-sequence/tsconfig.json index c1a0a60bdb2ec5..a69bcefc580b7f 100644 --- a/types/connect-sequence/tsconfig.json +++ b/types/connect-sequence/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/connect-sqlite3/index.d.ts b/types/connect-sqlite3/index.d.ts index 4b1c4ce64eac3c..d3cebef5d3c1a0 100644 --- a/types/connect-sqlite3/index.d.ts +++ b/types/connect-sqlite3/index.d.ts @@ -1,5 +1,5 @@ import { EventEmitter } from "events"; -import * as express from "express"; +import express = require("express"); declare namespace connect { interface SQLiteStoreOptions { diff --git a/types/connect-trim-body/tsconfig.json b/types/connect-trim-body/tsconfig.json index 858beb437e6065..15bf0c5fa3eba1 100644 --- a/types/connect-trim-body/tsconfig.json +++ b/types/connect-trim-body/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/console-ui/tsconfig.json b/types/console-ui/tsconfig.json index c53be5c71a1c45..9e77b61cc48835 100644 --- a/types/console-ui/tsconfig.json +++ b/types/console-ui/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/consolidated-events/tsconfig.json b/types/consolidated-events/tsconfig.json index 1ea1360f9d25eb..a5e49ec2a65608 100644 --- a/types/consolidated-events/tsconfig.json +++ b/types/consolidated-events/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/consumer-data-standards/tsconfig.json b/types/consumer-data-standards/tsconfig.json index 5fc21fb8996760..c198d838210f07 100644 --- a/types/consumer-data-standards/tsconfig.json +++ b/types/consumer-data-standards/tsconfig.json @@ -5,7 +5,6 @@ "es6" ], "noImplicitAny": true, - "esModuleInterop": true, "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, diff --git a/types/conventional-changelog-config-spec/tsconfig.json b/types/conventional-changelog-config-spec/tsconfig.json index 9e8c284e5276ce..c617b4c7c581aa 100644 --- a/types/conventional-changelog-config-spec/tsconfig.json +++ b/types/conventional-changelog-config-spec/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/conventional-changelog-core/index.d.ts b/types/conventional-changelog-core/index.d.ts index 565e117fd45886..241b63acbe488b 100644 --- a/types/conventional-changelog-core/index.d.ts +++ b/types/conventional-changelog-core/index.d.ts @@ -1,6 +1,6 @@ /// -import * as Stream from "stream"; +import Stream = require("stream"); import { Context as BaseContext, Options as BaseWriterOptions } from "conventional-changelog-writer"; import { Commit, Options as BaseParserOptions } from "conventional-commits-parser"; diff --git a/types/conventional-changelog-core/tsconfig.json b/types/conventional-changelog-core/tsconfig.json index c7f5aff8e28c0f..eb4473203ea722 100644 --- a/types/conventional-changelog-core/tsconfig.json +++ b/types/conventional-changelog-core/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/conventional-changelog-writer/index.d.ts b/types/conventional-changelog-writer/index.d.ts index 821d4b5acb614b..a2b48cd551ba7a 100644 --- a/types/conventional-changelog-writer/index.d.ts +++ b/types/conventional-changelog-writer/index.d.ts @@ -1,6 +1,6 @@ /// -import * as Stream from "stream"; +import Stream = require("stream"); import { Commit } from "conventional-commits-parser"; diff --git a/types/conventional-changelog-writer/tsconfig.json b/types/conventional-changelog-writer/tsconfig.json index 1fda67a47ce2b6..2d6912bdba6129 100644 --- a/types/conventional-changelog-writer/tsconfig.json +++ b/types/conventional-changelog-writer/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/conventional-changelog/index.d.ts b/types/conventional-changelog/index.d.ts index aa279682da6f07..d67df653f4cc0e 100644 --- a/types/conventional-changelog/index.d.ts +++ b/types/conventional-changelog/index.d.ts @@ -3,7 +3,7 @@ import conventionalChangelogCore from "conventional-changelog-core"; import { Context as WriterContext } from "conventional-changelog-writer"; import { Commit } from "conventional-commits-parser"; -import * as Stream from "stream"; +import Stream = require("stream"); /** * Returns a readable stream. diff --git a/types/conventional-changelog/tsconfig.json b/types/conventional-changelog/tsconfig.json index 962ebb3454674e..728fd5d208c108 100644 --- a/types/conventional-changelog/tsconfig.json +++ b/types/conventional-changelog/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/conventional-commits-detector/tsconfig.json b/types/conventional-commits-detector/tsconfig.json index caad0e8722ab5a..1ef37a2a3da7ca 100644 --- a/types/conventional-commits-detector/tsconfig.json +++ b/types/conventional-commits-detector/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/conventional-commits-parser/index.d.ts b/types/conventional-commits-parser/index.d.ts index aad13941f4645f..96e98f2c37772b 100644 --- a/types/conventional-commits-parser/index.d.ts +++ b/types/conventional-commits-parser/index.d.ts @@ -1,6 +1,6 @@ /// -import * as Stream from "stream"; +import Stream = require("stream"); /** * Returns an transform stream. If there is any malformed commits it will be diff --git a/types/convict-format-with-validator/index.d.ts b/types/convict-format-with-validator/index.d.ts index d7299bf7db6c9c..73aa396e1b604f 100644 --- a/types/convict-format-with-validator/index.d.ts +++ b/types/convict-format-with-validator/index.d.ts @@ -1,4 +1,4 @@ -import * as convict from "convict"; +import convict = require("convict"); declare var validators: { email: convict.Format; diff --git a/types/convict/convict-tests.ts b/types/convict/convict-tests.ts index fc9083b5eb7f5f..1b6b8c8438d011 100644 --- a/types/convict/convict-tests.ts +++ b/types/convict/convict-tests.ts @@ -1,4 +1,4 @@ -import * as convict from "convict"; +import convict from "convict"; import { safeLoad } from "js-yaml"; import validator from "validator"; diff --git a/types/convict/tsconfig.json b/types/convict/tsconfig.json index 7993a9f5f49fa6..795880e4baba6b 100644 --- a/types/convict/tsconfig.json +++ b/types/convict/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/cookie-parser/index.d.ts b/types/cookie-parser/index.d.ts index 6459f5ffefa5c0..29d7afe3c3432f 100644 --- a/types/cookie-parser/index.d.ts +++ b/types/cookie-parser/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); declare module "express" { // Inject additional properties on express.Request diff --git a/types/cookies/index.d.ts b/types/cookies/index.d.ts index 57758f13413a34..b8edbf240a8d5b 100644 --- a/types/cookies/index.d.ts +++ b/types/cookies/index.d.ts @@ -1,8 +1,8 @@ /// -import * as connect from "connect"; -import * as express from "express"; +import connect = require("connect"); +import express = require("express"); import { IncomingMessage, ServerResponse } from "http"; -import * as Keygrip from "keygrip"; +import Keygrip = require("keygrip"); interface Cookies { secure: boolean; diff --git a/types/cordova-plugin-ibeacon/index.d.ts b/types/cordova-plugin-ibeacon/index.d.ts index 91cd404d304d0f..8e9533be2cee3c 100644 --- a/types/cordova-plugin-ibeacon/index.d.ts +++ b/types/cordova-plugin-ibeacon/index.d.ts @@ -1,4 +1,4 @@ -import * as Q from "q"; +import Q = require("q"); declare global { interface CordovaPlugins { diff --git a/types/cordova-plugin-save-dialog/tsconfig.json b/types/cordova-plugin-save-dialog/tsconfig.json index 5845dcb0bd2d14..c092a359a6132e 100644 --- a/types/cordova-plugin-save-dialog/tsconfig.json +++ b/types/cordova-plugin-save-dialog/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/cote/index.d.ts b/types/cote/index.d.ts index 1672f87de1c17f..ff599baca48bb0 100644 --- a/types/cote/index.d.ts +++ b/types/cote/index.d.ts @@ -1,6 +1,6 @@ import { EventEmitter2 } from "eventemitter2"; import { Server } from "http"; -import * as SocketIO from "socket.io"; +import SocketIO = require("socket.io"); import { Stream } from "stream"; export abstract class Component extends EventEmitter2 { diff --git a/types/countdown/countdown-tests.ts b/types/countdown/countdown-tests.ts index e10a695d6dc611..c0cdedd6a8d405 100644 --- a/types/countdown/countdown-tests.ts +++ b/types/countdown/countdown-tests.ts @@ -1,4 +1,4 @@ -import * as countdown from "countdown"; +import countdown from "countdown"; let ts: countdown.Timespan; let interval: number; diff --git a/types/countdown/tsconfig.json b/types/countdown/tsconfig.json index 3396415d04f6fa..4dd006a9398cdd 100644 --- a/types/countdown/tsconfig.json +++ b/types/countdown/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/counterpart/counterpart-tests.ts b/types/counterpart/counterpart-tests.ts index d4c3fc00d70a22..049c9504397b41 100644 --- a/types/counterpart/counterpart-tests.ts +++ b/types/counterpart/counterpart-tests.ts @@ -1,4 +1,4 @@ -import * as counterpart from "counterpart"; +import counterpart from "counterpart"; counterpart("translation.to.be.used"); counterpart(["translation", "to", "be", "used"]); diff --git a/types/counterpart/tsconfig.json b/types/counterpart/tsconfig.json index 798b0dc126af88..6057b1600bdeb9 100644 --- a/types/counterpart/tsconfig.json +++ b/types/counterpart/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/cpx/index.d.ts b/types/cpx/index.d.ts index 9521ea281881ea..e8f8f8a3a9d19c 100644 --- a/types/cpx/index.d.ts +++ b/types/cpx/index.d.ts @@ -1,7 +1,7 @@ /// import { EventEmitter } from "events"; -import * as stream from "stream"; +import stream = require("stream"); export interface SyncOptions { /** remove files that copied on past before copy. */ diff --git a/types/create-error/create-error-tests.ts b/types/create-error/create-error-tests.ts index bc9f4462d5a55f..153219d4b02db8 100644 --- a/types/create-error/create-error-tests.ts +++ b/types/create-error/create-error-tests.ts @@ -9,7 +9,7 @@ const { describe, it, before, after, beforeEach, afterEach } = null as any as { }; }; -import * as createError from "create-error"; +import createError from "create-error"; // Example taken from https://github.com/tgriesser/create-error/blob/0.3.1/README.md#use diff --git a/types/create-error/tsconfig.json b/types/create-error/tsconfig.json index 2b900eb388de1b..14fc57c5343826 100644 --- a/types/create-error/tsconfig.json +++ b/types/create-error/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/creditcardutils/tsconfig.json b/types/creditcardutils/tsconfig.json index a37779d9b18af9..fa2bab07d041a7 100644 --- a/types/creditcardutils/tsconfig.json +++ b/types/creditcardutils/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/crimsonq/crimsonq-tests.ts b/types/crimsonq/crimsonq-tests.ts index ccc7974c13c33a..82f85be3d9d6a4 100644 --- a/types/crimsonq/crimsonq-tests.ts +++ b/types/crimsonq/crimsonq-tests.ts @@ -25,8 +25,8 @@ import CrimsonQClient = require("crimsonq"); password: "crimsonQ!", // default password with docker image }); CQ; // $ExpectType CrimsonQClient - CQ.redisCommander; // $ExpectType { default: RedisStatic; Cluster: ClusterStatic; Command: typeof Command; }; - CQ.redisSubscriber; // $ExpectType { default: RedisStatic; Cluster: ClusterStatic; Command: typeof Command; }; + CQ.redisCommander; // $ExpectType Redis + CQ.redisSubscriber; // $ExpectType Redis CQ.command; // $ExpectType Command; await CQ.connect(); // $ExpectType { value: string; error: Error; } diff --git a/types/crimsonq/index.d.ts b/types/crimsonq/index.d.ts index 192ca875ba7eca..e265f983dcb533 100644 --- a/types/crimsonq/index.d.ts +++ b/types/crimsonq/index.d.ts @@ -1,10 +1,10 @@ import { EventEmitter } from "events"; -import * as IORedis from "ioredis"; +import IORedis = require("ioredis"); declare class CrimsonQClient { constructor(ConnectionSettings: IORedis.RedisOptions); - redisCommander: typeof IORedis; - redisSubscriber: typeof IORedis; + redisCommander: IORedis.Redis; + redisSubscriber: IORedis.Redis; command: Command; connect(): Promise<{ value: string; error: Error }>; Producer(): Producer; diff --git a/types/croppie/croppie-tests.ts b/types/croppie/croppie-tests.ts index 495cdaca7db679..7faf82d09bdf2e 100644 --- a/types/croppie/croppie-tests.ts +++ b/types/croppie/croppie-tests.ts @@ -1,4 +1,4 @@ -import * as Croppie from "croppie"; +import Croppie from "croppie"; const c = new Croppie(document.getElementById("item")!, { boundary: { width: 300, height: 300 }, diff --git a/types/croppie/tsconfig.json b/types/croppie/tsconfig.json index 3cd378a80e60b3..9f222e60f4a2b1 100644 --- a/types/croppie/tsconfig.json +++ b/types/croppie/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/cross-zip/cross-zip-tests.ts b/types/cross-zip/cross-zip-tests.ts index 2a7839a3b5e607..437e6fa96bae4b 100644 --- a/types/cross-zip/cross-zip-tests.ts +++ b/types/cross-zip/cross-zip-tests.ts @@ -1,4 +1,4 @@ -import * as zip from "cross-zip"; +import zip from "cross-zip"; const inPath = "myFolder"; const outPath = "myFile.zip"; diff --git a/types/crossfilter/crossfilter-tests.ts b/types/crossfilter/crossfilter-tests.ts index 52aab334ea785d..7daa76fbeb9bd4 100644 --- a/types/crossfilter/crossfilter-tests.ts +++ b/types/crossfilter/crossfilter-tests.ts @@ -1,4 +1,4 @@ -import * as crossfilter from "crossfilter"; +import crossfilter from "crossfilter"; interface Payment { date: string; diff --git a/types/crossfilter/tsconfig.json b/types/crossfilter/tsconfig.json index b99348cc218c7d..df607e82725d56 100644 --- a/types/crossfilter/tsconfig.json +++ b/types/crossfilter/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/crpc/tsconfig.json b/types/crpc/tsconfig.json index 80341c826240e6..7b30895df3b0a5 100644 --- a/types/crpc/tsconfig.json +++ b/types/crpc/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/css-modules-loader-core/tsconfig.json b/types/css-modules-loader-core/tsconfig.json index c8f92958ebe8df..76a3fa0f2507a6 100644 --- a/types/css-modules-loader-core/tsconfig.json +++ b/types/css-modules-loader-core/tsconfig.json @@ -10,7 +10,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "strictFunctionTypes": true }, "files": [ diff --git a/types/css-modules-require-hook/css-modules-require-hook-tests.ts b/types/css-modules-require-hook/css-modules-require-hook-tests.ts index 038729890c4b23..f290d575c02dae 100644 --- a/types/css-modules-require-hook/css-modules-require-hook-tests.ts +++ b/types/css-modules-require-hook/css-modules-require-hook-tests.ts @@ -1,4 +1,4 @@ -import * as hook from "css-modules-require-hook"; +import hook from "css-modules-require-hook"; // // https://github.com/css-modules/css-modules-require-hook/blob/master/README.md#usage diff --git a/types/css-modules-require-hook/tsconfig.json b/types/css-modules-require-hook/tsconfig.json index 7babef43dbc376..ffe3be298e3506 100644 --- a/types/css-modules-require-hook/tsconfig.json +++ b/types/css-modules-require-hook/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/cssom/tsconfig.json b/types/cssom/tsconfig.json index 2129676773393b..5bcb6fe7d43abe 100644 --- a/types/cssom/tsconfig.json +++ b/types/cssom/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "test/cssom.cjs.test.ts", diff --git a/types/csv2json/tsconfig.json b/types/csv2json/tsconfig.json index dad6d099396517..e50937fa75f556 100644 --- a/types/csv2json/tsconfig.json +++ b/types/csv2json/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/culori/tsconfig.json b/types/culori/tsconfig.json index 7b160a6fb45c72..1bca7b3ec880bc 100644 --- a/types/culori/tsconfig.json +++ b/types/culori/tsconfig.json @@ -1,7 +1,6 @@ { "compilerOptions": { "allowSyntheticDefaultImports": true, - "esModuleInterop": true, "module": "node16", "lib": [ "es6" @@ -25,7 +24,6 @@ "src/bootstrap/css.d.ts", "src/index.d.ts", "src/index-fn.d.ts", - "test/all.test.ts", "test/average.test.ts", "test/blend.test.ts", diff --git a/types/current-git-branch/tsconfig.json b/types/current-git-branch/tsconfig.json index 669583cf03362c..7c7c1bec969c81 100644 --- a/types/current-git-branch/tsconfig.json +++ b/types/current-git-branch/tsconfig.json @@ -5,7 +5,6 @@ "es6" ], "noImplicitAny": true, - "esModuleInterop": true, "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, diff --git a/types/cyberblast__config/tsconfig.json b/types/cyberblast__config/tsconfig.json index a22759badb797d..81403138f122ad 100644 --- a/types/cyberblast__config/tsconfig.json +++ b/types/cyberblast__config/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/cyberblast__logger/tsconfig.json b/types/cyberblast__logger/tsconfig.json index 012e33fc69f127..d454af1498d30a 100644 --- a/types/cyberblast__logger/tsconfig.json +++ b/types/cyberblast__logger/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/cypress-dotenv/tsconfig.json b/types/cypress-dotenv/tsconfig.json index 70e503db2657a8..5ab83dbbf8730e 100644 --- a/types/cypress-dotenv/tsconfig.json +++ b/types/cypress-dotenv/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/cyrb53/tsconfig.json b/types/cyrb53/tsconfig.json index 1847c570c0a9c6..bd41c3f1c1dc9b 100644 --- a/types/cyrb53/tsconfig.json +++ b/types/cyrb53/tsconfig.json @@ -1,7 +1,9 @@ { "compilerOptions": { - "module": "commonjs", - "lib": ["es6"], + "module": "node16", + "lib": [ + "es6" + ], "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/d3-box/tsconfig.json b/types/d3-box/tsconfig.json index dbdfafcc5188dd..f05e93da6c668a 100644 --- a/types/d3-box/tsconfig.json +++ b/types/d3-box/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/d3-random/d3-random-tests.ts b/types/d3-random/d3-random-tests.ts index ed79a116c7b385..5b0586870833fe 100644 --- a/types/d3-random/d3-random-tests.ts +++ b/types/d3-random/d3-random-tests.ts @@ -7,7 +7,7 @@ */ import * as d3Random from "d3-random"; -import * as seedrandom from "seedrandom"; +import seedrandom from "seedrandom"; // ------------------------------------------------------------ // Preparatory Steps diff --git a/types/d3-random/tsconfig.json b/types/d3-random/tsconfig.json index 2ae75b484b3f50..374432c84a6629 100644 --- a/types/d3-random/tsconfig.json +++ b/types/d3-random/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/d3-random/v1/d3-random-tests.ts b/types/d3-random/v1/d3-random-tests.ts index 4c3f9883de6e09..33dc0645fa1c80 100644 --- a/types/d3-random/v1/d3-random-tests.ts +++ b/types/d3-random/v1/d3-random-tests.ts @@ -7,7 +7,7 @@ */ import * as d3Random from "d3-random"; -import * as seedrandom from "seedrandom"; +import seedrandom from "seedrandom"; // ------------------------------------------------------------ // Preparatory Steps diff --git a/types/d3-random/v1/tsconfig.json b/types/d3-random/v1/tsconfig.json index 2ae75b484b3f50..374432c84a6629 100644 --- a/types/d3-random/v1/tsconfig.json +++ b/types/d3-random/v1/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/d3-random/v2/d3-random-tests.ts b/types/d3-random/v2/d3-random-tests.ts index ed79a116c7b385..5b0586870833fe 100644 --- a/types/d3-random/v2/d3-random-tests.ts +++ b/types/d3-random/v2/d3-random-tests.ts @@ -7,7 +7,7 @@ */ import * as d3Random from "d3-random"; -import * as seedrandom from "seedrandom"; +import seedrandom from "seedrandom"; // ------------------------------------------------------------ // Preparatory Steps diff --git a/types/d3-random/v2/tsconfig.json b/types/d3-random/v2/tsconfig.json index 2ae75b484b3f50..374432c84a6629 100644 --- a/types/d3-random/v2/tsconfig.json +++ b/types/d3-random/v2/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/d3-tip/tsconfig.json b/types/d3-tip/tsconfig.json index 9b034597d58def..496765d0e2ebb4 100644 --- a/types/d3-tip/tsconfig.json +++ b/types/d3-tip/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/d3.slider/tsconfig.json b/types/d3.slider/tsconfig.json index f6705f676487e6..b5add3e1487136 100644 --- a/types/d3.slider/tsconfig.json +++ b/types/d3.slider/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/d3/v3/tsconfig.json b/types/d3/v3/tsconfig.json index 1a6b486795c7f7..8287bc501a36bc 100644 --- a/types/d3/v3/tsconfig.json +++ b/types/d3/v3/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": false, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/d3kit/tsconfig.json b/types/d3kit/tsconfig.json index e5bd44232551f3..32842392c8f65d 100644 --- a/types/d3kit/tsconfig.json +++ b/types/d3kit/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/d3kit/v1/tsconfig.json b/types/d3kit/v1/tsconfig.json index fabe2f298c347d..148ec2e8d43f2d 100644 --- a/types/d3kit/v1/tsconfig.json +++ b/types/d3kit/v1/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/dagre/tsconfig.json b/types/dagre/tsconfig.json index 663a74ce9bb1d8..94dbbf75b02c10 100644 --- a/types/dagre/tsconfig.json +++ b/types/dagre/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/dat.gui/tsconfig.json b/types/dat.gui/tsconfig.json index db82bf103f283f..5718e2d0066e25 100644 --- a/types/dat.gui/tsconfig.json +++ b/types/dat.gui/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/dateformat/v1/dateformat-tests.ts b/types/dateformat/v1/dateformat-tests.ts index c027d6db0fa8df..5e6790ab32a932 100644 --- a/types/dateformat/v1/dateformat-tests.ts +++ b/types/dateformat/v1/dateformat-tests.ts @@ -2,7 +2,7 @@ * https://github.com/felixge/node-dateformat#usage */ -import * as dateFormat from "dateformat"; +import dateFormat from "dateformat"; const now = new Date(); // Basic usage diff --git a/types/dateformat/v1/tsconfig.json b/types/dateformat/v1/tsconfig.json index 046a8e113764d6..0eed80bb8153be 100644 --- a/types/dateformat/v1/tsconfig.json +++ b/types/dateformat/v1/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/db-migrate-base/index.d.ts b/types/db-migrate-base/index.d.ts index 395c3bffa0f5dd..207d416f6e32cd 100644 --- a/types/db-migrate-base/index.d.ts +++ b/types/db-migrate-base/index.d.ts @@ -1,6 +1,6 @@ /// -import * as Promise from "bluebird"; +import Promise = require("bluebird"); declare namespace Base { interface CallbackFunction { diff --git a/types/db-migrate-pg/index.d.ts b/types/db-migrate-pg/index.d.ts index 170140445009e4..13cd019d7b4785 100644 --- a/types/db-migrate-pg/index.d.ts +++ b/types/db-migrate-pg/index.d.ts @@ -1,6 +1,6 @@ import * as pg from "pg"; import DbMigrateBase = require("db-migrate-base"); -import * as Promise from "bluebird"; +import Promise = require("bluebird"); // Yes, this is a dummy interface for now; the current implementation of the pg driver doesn't need any options. export interface CreateDatabaseOptions {} diff --git a/types/db-migrate-pg/tsconfig.json b/types/db-migrate-pg/tsconfig.json index 117de161928712..869d502ce1551f 100644 --- a/types/db-migrate-pg/tsconfig.json +++ b/types/db-migrate-pg/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/dc/dc-tests.ts b/types/dc/dc-tests.ts index a9dd719c5c30f3..7e5d95423fffc6 100644 --- a/types/dc/dc-tests.ts +++ b/types/dc/dc-tests.ts @@ -1,4 +1,4 @@ -import * as crossfilter from "crossfilter"; +import crossfilter from "crossfilter"; import * as d3 from "d3"; import * as dc from "dc"; diff --git a/types/dc/tsconfig.json b/types/dc/tsconfig.json index 42615e9120db64..621afc7fb1dae6 100644 --- a/types/dc/tsconfig.json +++ b/types/dc/tsconfig.json @@ -4,7 +4,7 @@ "dc-tests.ts" ], "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/dcp-client/tsconfig.json b/types/dcp-client/tsconfig.json index 3393d3a81e8971..5901705a12e9e0 100644 --- a/types/dcp-client/tsconfig.json +++ b/types/dcp-client/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/deasync/deasync-tests.ts b/types/deasync/deasync-tests.ts index 3990e73a63b50d..de5a15c145c007 100644 --- a/types/deasync/deasync-tests.ts +++ b/types/deasync/deasync-tests.ts @@ -1,4 +1,4 @@ -import * as deasync from "deasync"; +import deasync from "deasync"; function asyncFunction(input: number, cb: (err: any, res: number) => void) {} function handle(err: any, res: number) {} diff --git a/types/deasync/tsconfig.json b/types/deasync/tsconfig.json index 09fb2d500ad566..11b6d55b8b9ee9 100644 --- a/types/deasync/tsconfig.json +++ b/types/deasync/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/debug/debug-tests.ts b/types/debug/debug-tests.ts index 7024881c6af6af..a1e6dd792199e3 100644 --- a/types/debug/debug-tests.ts +++ b/types/debug/debug-tests.ts @@ -1,4 +1,4 @@ -import * as debug1 from "debug"; +import debug1 from "debug"; /*eslint-disable-next-line no-duplicate-imports*/ import debug2 from "debug"; diff --git a/types/debug/tsconfig.json b/types/debug/tsconfig.json index e9cb4364b5ea63..efdce39d6663fb 100644 --- a/types/debug/tsconfig.json +++ b/types/debug/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/dedent/dedent-tests.ts b/types/dedent/dedent-tests.ts index 9fa09ed18fe3e3..8d53001af41eb4 100644 --- a/types/dedent/dedent-tests.ts +++ b/types/dedent/dedent-tests.ts @@ -1,4 +1,4 @@ -import * as dedent from "dedent"; +import dedent from "dedent"; const lines: string = dedent` first diff --git a/types/dedent/tsconfig.json b/types/dedent/tsconfig.json index 473085c522fc95..bd9df2cb1e7cdb 100644 --- a/types/dedent/tsconfig.json +++ b/types/dedent/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/deep-extend/deep-extend-tests.ts b/types/deep-extend/deep-extend-tests.ts index 76fca4f5529205..54fd3a42553ab8 100644 --- a/types/deep-extend/deep-extend-tests.ts +++ b/types/deep-extend/deep-extend-tests.ts @@ -1,4 +1,4 @@ -import * as deepExtend from "deep-extend"; +import deepExtend from "deep-extend"; const obj1 = { a: 1, b: 2, diff --git a/types/deep-extend/tsconfig.json b/types/deep-extend/tsconfig.json index 9a79881bcf2d1e..5d437a3ac8a10d 100644 --- a/types/deep-extend/tsconfig.json +++ b/types/deep-extend/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/deku/tsconfig.json b/types/deku/tsconfig.json index f31926c8c74654..35e59aacd35a41 100644 --- a/types/deku/tsconfig.json +++ b/types/deku/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/delaunator/tsconfig.json b/types/delaunator/tsconfig.json index 4f0b29691795e6..b186090ba8a167 100644 --- a/types/delaunator/tsconfig.json +++ b/types/delaunator/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/deno/tsconfig.json b/types/deno/tsconfig.json index fad35c0b142d4f..2c0cf5c0649d14 100644 --- a/types/deno/tsconfig.json +++ b/types/deno/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "Node16", + "module": "node16", "noEmit": true, "forceConsistentCasingInFileNames": true, "noImplicitAny": true, diff --git a/types/deps-sort/index.d.ts b/types/deps-sort/index.d.ts index e4964c4539e359..d9b05cb9f7d242 100644 --- a/types/deps-sort/index.d.ts +++ b/types/deps-sort/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); /** * Return a new through stream that should get written module-deps objects and will output sorted objects. diff --git a/types/didyoumean/tsconfig.json b/types/didyoumean/tsconfig.json index 4813ebc92cc42d..5d3e30a714c796 100644 --- a/types/didyoumean/tsconfig.json +++ b/types/didyoumean/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/digital-link.js/tsconfig.json b/types/digital-link.js/tsconfig.json index 2a5e727e58224f..3cf8d438579a29 100644 --- a/types/digital-link.js/tsconfig.json +++ b/types/digital-link.js/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/discord-rich-presence/discord-rich-presence-tests.ts b/types/discord-rich-presence/discord-rich-presence-tests.ts index ff75add6a2cba6..e978617bc0f7e6 100644 --- a/types/discord-rich-presence/discord-rich-presence-tests.ts +++ b/types/discord-rich-presence/discord-rich-presence-tests.ts @@ -1,4 +1,4 @@ -import * as createClient from "discord-rich-presence"; +import createClient from "discord-rich-presence"; const client = createClient("180984871685062656"); diff --git a/types/discord-rich-presence/tsconfig.json b/types/discord-rich-presence/tsconfig.json index 6095215771c325..10ec665add77a4 100644 --- a/types/discord-rich-presence/tsconfig.json +++ b/types/discord-rich-presence/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/discourse-sso/discourse-sso-tests.ts b/types/discourse-sso/discourse-sso-tests.ts index fbe80eaaa19c0a..27fa4cf15785e5 100644 --- a/types/discourse-sso/discourse-sso-tests.ts +++ b/types/discourse-sso/discourse-sso-tests.ts @@ -1,4 +1,4 @@ -import * as discourseSSO from "discourse-sso"; +import discourseSSO from "discourse-sso"; const sso = new discourseSSO("sso secret string"); if (sso.validate("payload", "sig")) { diff --git a/types/discourse-sso/tsconfig.json b/types/discourse-sso/tsconfig.json index 033ed5f75dbf4b..0b09bf2e6d4f3f 100644 --- a/types/discourse-sso/tsconfig.json +++ b/types/discourse-sso/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/dispatchr/tsconfig.json b/types/dispatchr/tsconfig.json index ef96fee0aada5a..1485246197501a 100644 --- a/types/dispatchr/tsconfig.json +++ b/types/dispatchr/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/disposable-email-domains/tsconfig.json b/types/disposable-email-domains/tsconfig.json index d15c6205613f89..8de0bac6772cb1 100644 --- a/types/disposable-email-domains/tsconfig.json +++ b/types/disposable-email-domains/tsconfig.json @@ -5,7 +5,6 @@ "es6", "dom" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/distributions-poisson-quantile/tsconfig.json b/types/distributions-poisson-quantile/tsconfig.json index d2be6a29d2b0c5..811e0be5bb1e2d 100644 --- a/types/distributions-poisson-quantile/tsconfig.json +++ b/types/distributions-poisson-quantile/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/distributions/tsconfig.json b/types/distributions/tsconfig.json index ba52f5d31512dc..6cc822476fd4da 100644 --- a/types/distributions/tsconfig.json +++ b/types/distributions/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/docker-events/docker-events-tests.ts b/types/docker-events/docker-events-tests.ts index ec7e79061b78f7..d5f4391a64711f 100644 --- a/types/docker-events/docker-events-tests.ts +++ b/types/docker-events/docker-events-tests.ts @@ -1,5 +1,5 @@ -import * as DockerEvents from "docker-events"; -import * as Dockerode from "dockerode"; +import DockerEvents from "docker-events"; +import Dockerode from "dockerode"; const emitter = new DockerEvents({ docker: new Dockerode(), diff --git a/types/docker-events/index.d.ts b/types/docker-events/index.d.ts index 1185b7070334de..6d0d07c0675da1 100644 --- a/types/docker-events/index.d.ts +++ b/types/docker-events/index.d.ts @@ -1,7 +1,7 @@ /// -import * as Dockerode from "dockerode"; -import * as events from "events"; +import Dockerode = require("dockerode"); +import events = require("events"); declare namespace DockerEvents { interface DockerEventsOptions { diff --git a/types/docker-events/tsconfig.json b/types/docker-events/tsconfig.json index b7c0c11276a539..c322dd20a0200c 100644 --- a/types/docker-events/tsconfig.json +++ b/types/docker-events/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/dockerode-compose/index.d.ts b/types/dockerode-compose/index.d.ts index 61d958c9a339b8..d521e75b512a77 100644 --- a/types/dockerode-compose/index.d.ts +++ b/types/dockerode-compose/index.d.ts @@ -1,4 +1,4 @@ -import * as Dockerode from "dockerode"; +import Dockerode = require("dockerode"); declare namespace DockerodeCompose { interface ComposeDownOptions { diff --git a/types/dockerode/index.d.ts b/types/dockerode/index.d.ts index c614e92d71a3d0..7d02c6c8b21fa9 100644 --- a/types/dockerode/index.d.ts +++ b/types/dockerode/index.d.ts @@ -1,9 +1,9 @@ /// -import * as DockerModem from "docker-modem"; -import * as events from "events"; +import DockerModem = require("docker-modem"); +import events = require("events"); import { ConnectConfig } from "ssh2"; -import * as stream from "stream"; +import stream = require("stream"); declare namespace Dockerode { class Container { diff --git a/types/dog-statsy/index.d.ts b/types/dog-statsy/index.d.ts index 5ad9f1fb45c997..849b04f9fbe32b 100644 --- a/types/dog-statsy/index.d.ts +++ b/types/dog-statsy/index.d.ts @@ -1,7 +1,7 @@ /// import * as dgram from "node:dgram"; -import * as EventEmitter from "node:events"; +import EventEmitter = require("node:events"); export = Client; diff --git a/types/dog-statsy/tsconfig.json b/types/dog-statsy/tsconfig.json index 316c6cb28778ae..988acf0237e5e2 100644 --- a/types/dog-statsy/tsconfig.json +++ b/types/dog-statsy/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/domtagger/tsconfig.json b/types/domtagger/tsconfig.json index 94923df8a0e5bf..04c0356fa074c0 100644 --- a/types/domtagger/tsconfig.json +++ b/types/domtagger/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/dot/tsconfig.json b/types/dot/tsconfig.json index 5946dc6af631a0..9085196a9115b7 100644 --- a/types/dot/tsconfig.json +++ b/types/dot/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/dotenv-defaults/tsconfig.json b/types/dotenv-defaults/tsconfig.json index 2694546a23c780..a486c5379668f8 100644 --- a/types/dotenv-defaults/tsconfig.json +++ b/types/dotenv-defaults/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/dotenv-load/tsconfig.json b/types/dotenv-load/tsconfig.json index 66f8a219e95164..53aa790719f71c 100644 --- a/types/dotenv-load/tsconfig.json +++ b/types/dotenv-load/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/dotenv-safe/tsconfig.json b/types/dotenv-safe/tsconfig.json index a05979ba38c767..b8a978a4521df5 100644 --- a/types/dotenv-safe/tsconfig.json +++ b/types/dotenv-safe/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/double-ended-queue/double-ended-queue-tests.ts b/types/double-ended-queue/double-ended-queue-tests.ts index 146d5933df11b3..7807123205ecd5 100644 --- a/types/double-ended-queue/double-ended-queue-tests.ts +++ b/types/double-ended-queue/double-ended-queue-tests.ts @@ -1,4 +1,4 @@ -import * as Deque from "double-ended-queue"; +import Deque from "double-ended-queue"; const a = new Deque(); // $ExpectType Deque const b = new Deque(6); // $ExpectType Deque diff --git a/types/double-ended-queue/tsconfig.json b/types/double-ended-queue/tsconfig.json index 1e261bd60a0f94..b71bb17e097dac 100644 --- a/types/double-ended-queue/tsconfig.json +++ b/types/double-ended-queue/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/downloadjs/downloadjs-tests.ts b/types/downloadjs/downloadjs-tests.ts index 29b8e53a784393..def77059e93fb2 100644 --- a/types/downloadjs/downloadjs-tests.ts +++ b/types/downloadjs/downloadjs-tests.ts @@ -1,4 +1,4 @@ -import * as download from "downloadjs"; +import download from "downloadjs"; download("hello world", "dlText.txt", "text/plain"); download("data:text/plain,hello%20world", "dlDataUrlText.txt", "text/plain"); diff --git a/types/downloadjs/tsconfig.json b/types/downloadjs/tsconfig.json index ff1de0e167dfaa..c6aa0a24d006c8 100644 --- a/types/downloadjs/tsconfig.json +++ b/types/downloadjs/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/downscale/tsconfig.json b/types/downscale/tsconfig.json index 650cd4a318e26c..4d113240eda9e5 100644 --- a/types/downscale/tsconfig.json +++ b/types/downscale/tsconfig.json @@ -5,7 +5,6 @@ "es6", "DOM" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/draftjs-to-html/tsconfig.json b/types/draftjs-to-html/tsconfig.json index 186c996eb0caac..c222e2fa11623f 100644 --- a/types/draftjs-to-html/tsconfig.json +++ b/types/draftjs-to-html/tsconfig.json @@ -12,8 +12,7 @@ "jsx": "react", "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/dragula/tsconfig.json b/types/dragula/tsconfig.json index 13876ccfbbd87f..b38abb7cf2efee 100644 --- a/types/dragula/tsconfig.json +++ b/types/dragula/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/dropzone/tsconfig.json b/types/dropzone/tsconfig.json index 74f00c0a72c1d4..bc87689b3f4d73 100644 --- a/types/dropzone/tsconfig.json +++ b/types/dropzone/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/dropzone/v4/index.d.ts b/types/dropzone/v4/index.d.ts index 5c1553a49f9953..10be3526c59670 100644 --- a/types/dropzone/v4/index.d.ts +++ b/types/dropzone/v4/index.d.ts @@ -1,6 +1,6 @@ /// -import * as $ from "jquery"; +import $ = require("jquery"); declare namespace Dropzone { export interface DropzoneResizeInfo { diff --git a/types/dropzone/v4/tsconfig.json b/types/dropzone/v4/tsconfig.json index 74f00c0a72c1d4..bc87689b3f4d73 100644 --- a/types/dropzone/v4/tsconfig.json +++ b/types/dropzone/v4/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/duplex-to/readable.d.ts b/types/duplex-to/readable.d.ts index 9c315a05bef11a..f2ad31b06a839d 100644 --- a/types/duplex-to/readable.d.ts +++ b/types/duplex-to/readable.d.ts @@ -1,5 +1,5 @@ -import * as readableStream from "readable-stream"; -import * as nodeStream from "stream"; +import readableStream = require("readable-stream"); +import nodeStream = require("stream"); declare function readable(duplex: readableStream.Stream): readableStream.Readable; declare function readable(duplex: nodeStream.Stream): nodeStream.Readable; diff --git a/types/duplex-to/writable.d.ts b/types/duplex-to/writable.d.ts index 04d495ff571385..1d4b4986784885 100644 --- a/types/duplex-to/writable.d.ts +++ b/types/duplex-to/writable.d.ts @@ -1,5 +1,5 @@ -import * as readableStream from "readable-stream"; -import * as nodeStream from "stream"; +import readableStream = require("readable-stream"); +import nodeStream = require("stream"); declare function writable(duplex: readableStream.Stream): readableStream.Writable; declare function writable(duplex: nodeStream.Stream): nodeStream.Writable; diff --git a/types/duplexer3/index.d.ts b/types/duplexer3/index.d.ts index 02fdb43d985327..1ef641bcd0e65f 100644 --- a/types/duplexer3/index.d.ts +++ b/types/duplexer3/index.d.ts @@ -1,5 +1,5 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export = duplexer3; diff --git a/types/duplexify/index.d.ts b/types/duplexify/index.d.ts index 539e419cabeedd..02e62f22193f8a 100644 --- a/types/duplexify/index.d.ts +++ b/types/duplexify/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export = duplexify; diff --git a/types/dynamodb/DynamoDB.d.ts b/types/dynamodb/DynamoDB.d.ts index 0f20fbbfbd539c..9147d9317ded8b 100644 --- a/types/dynamodb/DynamoDB.d.ts +++ b/types/dynamodb/DynamoDB.d.ts @@ -3,7 +3,7 @@ export interface Projection { NonKeyAttributes?: Array; } -import * as stream from "stream"; +import stream = require("stream"); export type DynamoDB = any; diff --git a/types/dynamodb/Model.d.ts b/types/dynamodb/Model.d.ts index 40e2ac70fc46d4..1929a15ed4f322 100644 --- a/types/dynamodb/Model.d.ts +++ b/types/dynamodb/Model.d.ts @@ -1,4 +1,4 @@ -import * as bunyan from "bunyan"; +import bunyan = require("bunyan"); import { DynamoDB } from "./DynamoDB"; import { EventEmitter } from "events"; diff --git a/types/dynamodb/index.d.ts b/types/dynamodb/index.d.ts index 6befcc947ddf01..f055a636dc2d2c 100644 --- a/types/dynamodb/index.d.ts +++ b/types/dynamodb/index.d.ts @@ -1,4 +1,4 @@ -import * as bunyan from "bunyan"; +import bunyan = require("bunyan"); import { AnySchema, ArraySchema, SchemaMap, StringSchema } from "joi"; import { Callback } from "./Callback"; diff --git a/types/dynamodb/tsconfig.json b/types/dynamodb/tsconfig.json index 13f2241d32a0c3..e8ff85a4ba3d2a 100644 --- a/types/dynamodb/tsconfig.json +++ b/types/dynamodb/tsconfig.json @@ -10,7 +10,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "strictFunctionTypes": true }, "files": [ diff --git a/types/earcut/tsconfig.json b/types/earcut/tsconfig.json index c18e09e7109418..6e6a3004f954b4 100644 --- a/types/earcut/tsconfig.json +++ b/types/earcut/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/edit-json-file/edit-json-file-tests.ts b/types/edit-json-file/edit-json-file-tests.ts index 006d0fd4096365..c5b32e5c2996f2 100644 --- a/types/edit-json-file/edit-json-file-tests.ts +++ b/types/edit-json-file/edit-json-file-tests.ts @@ -1,4 +1,4 @@ -import * as editJsonFile from "edit-json-file"; +import editJsonFile from "edit-json-file"; const jsonEditor: editJsonFile.JsonEditor = editJsonFile("1.json"); // $ExpectType JsonEditor jsonEditor.set("a", 2); // $ExpectType JsonEditor diff --git a/types/edit-json-file/index.d.ts b/types/edit-json-file/index.d.ts index 863049e5e1adf9..7a5c7c653de8cd 100644 --- a/types/edit-json-file/index.d.ts +++ b/types/edit-json-file/index.d.ts @@ -1,7 +1,7 @@ /// import { NoParamCallback } from "fs"; -import * as set from "set-value"; +import set = require("set-value"); declare namespace editJsonFile { /** JSON file editor options. */ diff --git a/types/edit-json-file/tsconfig.json b/types/edit-json-file/tsconfig.json index e1d62bcd376bc6..f071fe8b2531cd 100644 --- a/types/edit-json-file/tsconfig.json +++ b/types/edit-json-file/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/edmonds-blossom/tsconfig.json b/types/edmonds-blossom/tsconfig.json index 9f77e81f02f06e..33f5b2a275e8e2 100644 --- a/types/edmonds-blossom/tsconfig.json +++ b/types/edmonds-blossom/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "strictFunctionTypes": true, "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/ejs/tsconfig.json b/types/ejs/tsconfig.json index ada110d0907153..dcde309e46d710 100644 --- a/types/ejs/tsconfig.json +++ b/types/ejs/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/element-closest/tsconfig.json b/types/element-closest/tsconfig.json index 3c3c79fd2e9c70..abef58e23207a1 100644 --- a/types/element-closest/tsconfig.json +++ b/types/element-closest/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/element-resize-detector/element-resize-detector-tests.ts b/types/element-resize-detector/element-resize-detector-tests.ts index 51e215657cc619..a2239bdf142643 100644 --- a/types/element-resize-detector/element-resize-detector-tests.ts +++ b/types/element-resize-detector/element-resize-detector-tests.ts @@ -1,4 +1,4 @@ -import * as elementResizeDetectorMaker from "element-resize-detector"; +import elementResizeDetectorMaker from "element-resize-detector"; const erd = elementResizeDetectorMaker({ strategy: "scroll", diff --git a/types/element-resize-detector/tsconfig.json b/types/element-resize-detector/tsconfig.json index 485b113884114b..bf433025589a73 100644 --- a/types/element-resize-detector/tsconfig.json +++ b/types/element-resize-detector/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/elementtree/elementtree-tests.ts b/types/elementtree/elementtree-tests.ts index ddbb0f70316ded..dc59c904bca275 100644 --- a/types/elementtree/elementtree-tests.ts +++ b/types/elementtree/elementtree-tests.ts @@ -1,4 +1,4 @@ -import * as et from "elementtree"; +import et from "elementtree"; // Example 1 // https://github.com/racker/node-elementtree#example-1--creating-an-xml-document diff --git a/types/elo-rank/tsconfig.json b/types/elo-rank/tsconfig.json index 94ce9619bbdd59..bc561ca589cb5e 100644 --- a/types/elo-rank/tsconfig.json +++ b/types/elo-rank/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/emartech__cls-adapter/index.d.ts b/types/emartech__cls-adapter/index.d.ts index fd3c3a6525723b..7170ae9848b980 100644 --- a/types/emartech__cls-adapter/index.d.ts +++ b/types/emartech__cls-adapter/index.d.ts @@ -1,6 +1,6 @@ import * as CLS from "cls-hooked"; -import * as Express from "express"; -import * as Koa from "koa"; +import Express = require("express"); +import Koa = require("koa"); declare class ContextFactory { private _namespace: CLS.Namespace; diff --git a/types/ember-data/tsconfig.json b/types/ember-data/tsconfig.json index 982111dd5fcf88..aeb0cb6b9a7d5a 100644 --- a/types/ember-data/tsconfig.json +++ b/types/ember-data/tsconfig.json @@ -13,7 +13,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "experimentalDecorators": true }, "files": [ diff --git a/types/ember-data/v2/tsconfig.json b/types/ember-data/v2/tsconfig.json index 2391daa62d3872..dfed1f2349dca9 100644 --- a/types/ember-data/v2/tsconfig.json +++ b/types/ember-data/v2/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": false, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/ember-data/v3/tsconfig.json b/types/ember-data/v3/tsconfig.json index 8de6aca073112c..723cd1a06a935c 100644 --- a/types/ember-data/v3/tsconfig.json +++ b/types/ember-data/v3/tsconfig.json @@ -13,7 +13,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "experimentalDecorators": true }, "files": [ diff --git a/types/ember-data__adapter/tsconfig.json b/types/ember-data__adapter/tsconfig.json index bb975c70633415..5c9d6fb07e8035 100644 --- a/types/ember-data__adapter/tsconfig.json +++ b/types/ember-data__adapter/tsconfig.json @@ -12,7 +12,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "experimentalDecorators": true }, "files": [ diff --git a/types/ember-data__adapter/v3/tsconfig.json b/types/ember-data__adapter/v3/tsconfig.json index bb975c70633415..5c9d6fb07e8035 100644 --- a/types/ember-data__adapter/v3/tsconfig.json +++ b/types/ember-data__adapter/v3/tsconfig.json @@ -12,7 +12,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "experimentalDecorators": true }, "files": [ diff --git a/types/ember-data__model/tsconfig.json b/types/ember-data__model/tsconfig.json index b8b19ee704bc06..bc427accd72b4d 100644 --- a/types/ember-data__model/tsconfig.json +++ b/types/ember-data__model/tsconfig.json @@ -12,7 +12,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "experimentalDecorators": true }, "files": [ diff --git a/types/ember-data__model/v3/tsconfig.json b/types/ember-data__model/v3/tsconfig.json index b8b19ee704bc06..bc427accd72b4d 100644 --- a/types/ember-data__model/v3/tsconfig.json +++ b/types/ember-data__model/v3/tsconfig.json @@ -12,7 +12,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "experimentalDecorators": true }, "files": [ diff --git a/types/ember-data__store/tsconfig.json b/types/ember-data__store/tsconfig.json index 2a35803733745c..8955766a8700ff 100644 --- a/types/ember-data__store/tsconfig.json +++ b/types/ember-data__store/tsconfig.json @@ -12,7 +12,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "experimentalDecorators": true }, "files": [ diff --git a/types/ember-data__store/v3/tsconfig.json b/types/ember-data__store/v3/tsconfig.json index 2a35803733745c..8955766a8700ff 100644 --- a/types/ember-data__store/v3/tsconfig.json +++ b/types/ember-data__store/v3/tsconfig.json @@ -12,7 +12,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "experimentalDecorators": true }, "files": [ diff --git a/types/ember__helper/tsconfig.json b/types/ember__helper/tsconfig.json index e907969157f2f5..686003034d8900 100644 --- a/types/ember__helper/tsconfig.json +++ b/types/ember__helper/tsconfig.json @@ -8,7 +8,8 @@ "exactOptionalPropertyTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/emmetio__implicit-tag/tsconfig.json b/types/emmetio__implicit-tag/tsconfig.json index ab2c81a82e5fc2..6da319d4c7da40 100644 --- a/types/emmetio__implicit-tag/tsconfig.json +++ b/types/emmetio__implicit-tag/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/emoji-strip/tsconfig.json b/types/emoji-strip/tsconfig.json index f7707575e3d8cd..75dd91ea7c8836 100644 --- a/types/emoji-strip/tsconfig.json +++ b/types/emoji-strip/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/emojione/tsconfig.json b/types/emojione/tsconfig.json index e2308e1db5b5b0..efd737baa8e9d6 100644 --- a/types/emojione/tsconfig.json +++ b/types/emojione/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/emscripten/tsconfig.json b/types/emscripten/tsconfig.json index 265e26c35b2807..df4408eb8a4725 100644 --- a/types/emscripten/tsconfig.json +++ b/types/emscripten/tsconfig.json @@ -12,7 +12,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/encoding-japanese/tsconfig.json b/types/encoding-japanese/tsconfig.json index 10ee31764dcad1..ac6e6630f6e963 100644 --- a/types/encoding-japanese/tsconfig.json +++ b/types/encoding-japanese/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/engine-check/engine-check-tests.ts b/types/engine-check/engine-check-tests.ts index 52a42ead229112..2cc69d5a9160da 100644 --- a/types/engine-check/engine-check-tests.ts +++ b/types/engine-check/engine-check-tests.ts @@ -1,4 +1,4 @@ -import * as engineCheck from "engine-check"; +import engineCheck from "engine-check"; const options: engineCheck.Options = { searchRoot: "/", diff --git a/types/engine-check/tsconfig.json b/types/engine-check/tsconfig.json index ba2373e9bdad70..5aaa91096dca63 100644 --- a/types/engine-check/tsconfig.json +++ b/types/engine-check/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/entropy__winston-elasticsearch-apm/tsconfig.json b/types/entropy__winston-elasticsearch-apm/tsconfig.json index 8212110b9ebe3c..eb91821bd163c3 100644 --- a/types/entropy__winston-elasticsearch-apm/tsconfig.json +++ b/types/entropy__winston-elasticsearch-apm/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/env-to-object/env-to-object-tests.ts b/types/env-to-object/env-to-object-tests.ts index 4ba43753b2024c..ccbcb528aabe80 100644 --- a/types/env-to-object/env-to-object-tests.ts +++ b/types/env-to-object/env-to-object-tests.ts @@ -1,4 +1,4 @@ -import * as envToObject from "env-to-object"; +import envToObject from "env-to-object"; const map = { NODE_ENV: { diff --git a/types/env-to-object/tsconfig.json b/types/env-to-object/tsconfig.json index e46897cda80395..bc515e1c31fb9e 100644 --- a/types/env-to-object/tsconfig.json +++ b/types/env-to-object/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts b/types/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts index 1c42cd207090e9..c79169252f6946 100644 --- a/types/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts +++ b/types/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts @@ -1,5 +1,5 @@ import * as EonasdanBootstrapDatetimepicker from "eonasdan-bootstrap-datetimepicker"; -import * as moment from "moment"; +import moment from "moment"; // Minimum Setup $("#datetimepicker1").datetimepicker(); diff --git a/types/eonasdan-bootstrap-datetimepicker/index.d.ts b/types/eonasdan-bootstrap-datetimepicker/index.d.ts index ccbb507431c972..7d49cfe421c767 100644 --- a/types/eonasdan-bootstrap-datetimepicker/index.d.ts +++ b/types/eonasdan-bootstrap-datetimepicker/index.d.ts @@ -1,6 +1,6 @@ /// -import * as moment from "moment"; +import moment = require("moment"); export as namespace EonasdanBootstrapDatetimepicker; diff --git a/types/eonasdan-bootstrap-datetimepicker/tsconfig.json b/types/eonasdan-bootstrap-datetimepicker/tsconfig.json index 4e7f8aeef53098..4965904b5cfd1d 100644 --- a/types/eonasdan-bootstrap-datetimepicker/tsconfig.json +++ b/types/eonasdan-bootstrap-datetimepicker/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/eris-sharder/index.d.ts b/types/eris-sharder/index.d.ts index f8b5f17269acc8..a30651d54335c3 100644 --- a/types/eris-sharder/index.d.ts +++ b/types/eris-sharder/index.d.ts @@ -1,5 +1,5 @@ /// -import * as Eris from "eris"; +import Eris = require("eris"); import { EventEmitter } from "events"; export interface Cluster { diff --git a/types/esc-pos-encoder/tsconfig.json b/types/esc-pos-encoder/tsconfig.json index c64a9025bf87d7..99cafc70c870ae 100644 --- a/types/esc-pos-encoder/tsconfig.json +++ b/types/esc-pos-encoder/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/esquery/esquery-tests.ts b/types/esquery/esquery-tests.ts index c1e9cd5a19ea12..5a93292b6eb13f 100644 --- a/types/esquery/esquery-tests.ts +++ b/types/esquery/esquery-tests.ts @@ -1,5 +1,5 @@ import * as esprima from "esprima"; -import * as esquery from "esquery"; +import esquery from "esquery"; const AST = esprima.parseScript(`const x = 2; function f (n) { diff --git a/types/esquery/tsconfig.json b/types/esquery/tsconfig.json index 851aa2bc6e41c2..4a976b33bc5317 100644 --- a/types/esquery/tsconfig.json +++ b/types/esquery/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/estraverse/tsconfig.json b/types/estraverse/tsconfig.json index 3b7a7a3e69684e..0e42a22096813f 100644 --- a/types/estraverse/tsconfig.json +++ b/types/estraverse/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/event-stream/index.d.ts b/types/event-stream/index.d.ts index f8c2d69ce8cd49..d859040b0b602c 100644 --- a/types/event-stream/index.d.ts +++ b/types/event-stream/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export interface MapStream extends stream.Stream { writable: boolean; diff --git a/types/events.once/tsconfig.json b/types/events.once/tsconfig.json index 09b859cb267930..dbb9163e4a3694 100644 --- a/types/events.once/tsconfig.json +++ b/types/events.once/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/excel-style-dataformatter/excel-style-dataformatter-tests.ts b/types/excel-style-dataformatter/excel-style-dataformatter-tests.ts index 6b322fb835e422..dd6773e3d27c83 100644 --- a/types/excel-style-dataformatter/excel-style-dataformatter-tests.ts +++ b/types/excel-style-dataformatter/excel-style-dataformatter-tests.ts @@ -1,4 +1,4 @@ -import * as DataFormatter from "excel-style-dataformatter"; +import DataFormatter from "excel-style-dataformatter"; import * as enLocales from "excel-style-dataformatter/lib/locales/en-US"; import * as ruLocales from "excel-style-dataformatter/lib/locales/ru"; diff --git a/types/excel-style-dataformatter/lib/locales/en-US.d.ts b/types/excel-style-dataformatter/lib/locales/en-US.d.ts index 591678aea83b72..d94f6b3f84f464 100644 --- a/types/excel-style-dataformatter/lib/locales/en-US.d.ts +++ b/types/excel-style-dataformatter/lib/locales/en-US.d.ts @@ -1,4 +1,4 @@ -import * as DataFormatter from "../../index"; +import DataFormatter = require("../../index"); declare const locale: DataFormatter.LocalesOptions; export = locale; diff --git a/types/excel-style-dataformatter/lib/locales/ru.d.ts b/types/excel-style-dataformatter/lib/locales/ru.d.ts index 591678aea83b72..d94f6b3f84f464 100644 --- a/types/excel-style-dataformatter/lib/locales/ru.d.ts +++ b/types/excel-style-dataformatter/lib/locales/ru.d.ts @@ -1,4 +1,4 @@ -import * as DataFormatter from "../../index"; +import DataFormatter = require("../../index"); declare const locale: DataFormatter.LocalesOptions; export = locale; diff --git a/types/excel-style-dataformatter/tsconfig.json b/types/excel-style-dataformatter/tsconfig.json index 982045e16cdda5..6b0560c2f50a77 100644 --- a/types/excel-style-dataformatter/tsconfig.json +++ b/types/excel-style-dataformatter/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/expect-puppeteer/tsconfig.json b/types/expect-puppeteer/tsconfig.json index fafba6e920de16..261f72a971fa58 100644 --- a/types/expect-puppeteer/tsconfig.json +++ b/types/expect-puppeteer/tsconfig.json @@ -1,11 +1,10 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/express-busboy/index.d.ts b/types/express-busboy/index.d.ts index 5edb0dcfbd55e9..e2fe8514bdeef6 100644 --- a/types/express-busboy/index.d.ts +++ b/types/express-busboy/index.d.ts @@ -1,5 +1,5 @@ -import * as connectBusboy from "connect-busboy"; -import * as express from "express"; +import connectBusboy = require("connect-busboy"); +import express = require("express"); export interface ExpressBusboyOptions extends connectBusboy.ConnectBusboyOptions { upload?: boolean; diff --git a/types/express-cache-response-directive/express-cache-response-directive-tests.ts b/types/express-cache-response-directive/express-cache-response-directive-tests.ts index 8a16bf9281db59..d2ed5a43ee1396 100644 --- a/types/express-cache-response-directive/express-cache-response-directive-tests.ts +++ b/types/express-cache-response-directive/express-cache-response-directive-tests.ts @@ -1,5 +1,5 @@ import cacheResponseDirective = require("express-cache-response-directive"); -import * as express from "express"; +import express from "express"; cacheResponseDirective(); // $ExpectType RequestHandler> diff --git a/types/express-cache-response-directive/index.d.ts b/types/express-cache-response-directive/index.d.ts index d9bfcb2e0b77c8..f9cfbe07d07e26 100644 --- a/types/express-cache-response-directive/index.d.ts +++ b/types/express-cache-response-directive/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); declare global { namespace Express { diff --git a/types/express-cache-response-directive/tsconfig.json b/types/express-cache-response-directive/tsconfig.json index 96a45c1974582f..d33dcef531d4d9 100644 --- a/types/express-cache-response-directive/tsconfig.json +++ b/types/express-cache-response-directive/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/express-conditional-middleware/index.d.ts b/types/express-conditional-middleware/index.d.ts index d0bf1572c1fe3d..1ce067faf6e0e3 100644 --- a/types/express-conditional-middleware/index.d.ts +++ b/types/express-conditional-middleware/index.d.ts @@ -1,4 +1,4 @@ -import * as E from "express"; +import E = require("express"); declare function conditional( condition: boolean | ((req: E.Request, res: E.Response, next: E.NextFunction) => boolean | undefined), diff --git a/types/express-correlation-id/express-correlation-id-tests.ts b/types/express-correlation-id/express-correlation-id-tests.ts index 1b65b896448a20..4d5b07923931b4 100644 --- a/types/express-correlation-id/express-correlation-id-tests.ts +++ b/types/express-correlation-id/express-correlation-id-tests.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express from "express"; import correlator = require("express-correlation-id"); const app = express(); diff --git a/types/express-correlation-id/tsconfig.json b/types/express-correlation-id/tsconfig.json index df628f8b350438..72b3abd2bbc2ad 100644 --- a/types/express-correlation-id/tsconfig.json +++ b/types/express-correlation-id/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/express-formidable/index.d.ts b/types/express-formidable/index.d.ts index 5c0292f1f17964..a90a7b0430731b 100644 --- a/types/express-formidable/index.d.ts +++ b/types/express-formidable/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); import { EventNames, Fields, Files } from "formidable"; // Extend the express request object with attached formidable files and fields diff --git a/types/express-legacy-expires/express-legacy-expires-tests.ts b/types/express-legacy-expires/express-legacy-expires-tests.ts index 90516503aad78c..9e9bcdd98879f6 100644 --- a/types/express-legacy-expires/express-legacy-expires-tests.ts +++ b/types/express-legacy-expires/express-legacy-expires-tests.ts @@ -1,5 +1,5 @@ import expressLegacyExpires = require("express-legacy-expires"); -import * as express from "express"; +import express from "express"; const options: expressLegacyExpires.Options = { now: () => Date.parse("2023-09-26T09:00:00Z") }; diff --git a/types/express-legacy-expires/index.d.ts b/types/express-legacy-expires/index.d.ts index 7f994af86284cc..a3017946f7df59 100644 --- a/types/express-legacy-expires/index.d.ts +++ b/types/express-legacy-expires/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); export = expressLegacyExpires; diff --git a/types/express-legacy-expires/tsconfig.json b/types/express-legacy-expires/tsconfig.json index 15f4ac4cc7a825..20e497656b8aa0 100644 --- a/types/express-legacy-expires/tsconfig.json +++ b/types/express-legacy-expires/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/express-mysql-session/express-mysql-session-tests.ts b/types/express-mysql-session/express-mysql-session-tests.ts index 7744e77de04211..6096bb6b19f1ee 100644 --- a/types/express-mysql-session/express-mysql-session-tests.ts +++ b/types/express-mysql-session/express-mysql-session-tests.ts @@ -1,5 +1,5 @@ -import * as mysqlSession from "express-mysql-session"; -import * as session from "express-session"; +import mysqlSession from "express-mysql-session"; +import session from "express-session"; // $ExpectType typeof MySQLStoreClass const MySQLStore = mysqlSession(session); diff --git a/types/express-mysql-session/index.d.ts b/types/express-mysql-session/index.d.ts index 8a3cc15fbdf678..51c9182701e5ee 100644 --- a/types/express-mysql-session/index.d.ts +++ b/types/express-mysql-session/index.d.ts @@ -1,4 +1,4 @@ -import * as expressSession from "express-session"; +import expressSession = require("express-session"); import { Connection, Pool, PoolOptions } from "mysql2"; export = MySQLStore; diff --git a/types/express-mysql-session/tsconfig.json b/types/express-mysql-session/tsconfig.json index d05094353f660b..6534e199bcea54 100644 --- a/types/express-mysql-session/tsconfig.json +++ b/types/express-mysql-session/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/express-oauth-server/index.d.ts b/types/express-oauth-server/index.d.ts index d5bcf25b686a71..8d445ff0400685 100644 --- a/types/express-oauth-server/index.d.ts +++ b/types/express-oauth-server/index.d.ts @@ -1,5 +1,5 @@ -import * as express from "express"; -import * as OAuth2Server from "oauth2-server"; +import express = require("express"); +import OAuth2Server = require("oauth2-server"); declare namespace ExpressOAuthServer { interface Options extends OAuth2Server.ServerOptions { diff --git a/types/express-paginate/tsconfig.json b/types/express-paginate/tsconfig.json index dbc577f7b00d78..f9defd3a871481 100644 --- a/types/express-paginate/tsconfig.json +++ b/types/express-paginate/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/express-routes-versioning/express-routes-versioning-tests.ts b/types/express-routes-versioning/express-routes-versioning-tests.ts index 308e9e5ec7759c..f6894b460826d3 100644 --- a/types/express-routes-versioning/express-routes-versioning-tests.ts +++ b/types/express-routes-versioning/express-routes-versioning-tests.ts @@ -1,5 +1,5 @@ -import * as express from "express"; -import * as routesVersioning from "express-routes-versioning"; +import express from "express"; +import routesVersioning from "express-routes-versioning"; const app = express(); diff --git a/types/express-routes-versioning/tsconfig.json b/types/express-routes-versioning/tsconfig.json index db5db959ee5ed4..fe37d9103ebc44 100644 --- a/types/express-routes-versioning/tsconfig.json +++ b/types/express-routes-versioning/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/express-sanitized/index.d.ts b/types/express-sanitized/index.d.ts index ec7b7a29684cd9..91dabbd77b3f36 100644 --- a/types/express-sanitized/index.d.ts +++ b/types/express-sanitized/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); type e = () => (req: express.Request, res: express.Response, next: express.NextFunction) => void; diff --git a/types/express-to-koa/index.d.ts b/types/express-to-koa/index.d.ts index 5d3ef0fcd77a82..7c78a33c68db72 100644 --- a/types/express-to-koa/index.d.ts +++ b/types/express-to-koa/index.d.ts @@ -1,5 +1,5 @@ import { IncomingMessage, ServerResponse } from "http"; -import * as Koa from "koa"; +import Koa = require("koa"); export = expressToKoa; diff --git a/types/express-version-request/express-version-request-tests.ts b/types/express-version-request/express-version-request-tests.ts index 82f53ac379ff06..eff2dd606879fd 100644 --- a/types/express-version-request/express-version-request-tests.ts +++ b/types/express-version-request/express-version-request-tests.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express from "express"; import * as versionRequest from "express-version-request"; const app = express(); diff --git a/types/express-version-request/tsconfig.json b/types/express-version-request/tsconfig.json index 1c767a7778a38f..6e07ba88b1bcb4 100644 --- a/types/express-version-request/tsconfig.json +++ b/types/express-version-request/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/express-version-route/express-version-route-tests.ts b/types/express-version-route/express-version-route-tests.ts index a05906a861bf90..4d89535127e6c6 100644 --- a/types/express-version-route/express-version-route-tests.ts +++ b/types/express-version-route/express-version-route-tests.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express from "express"; import * as versionRouter from "express-version-route"; const app = express(); diff --git a/types/express-version-route/tsconfig.json b/types/express-version-route/tsconfig.json index 85ce85f5a0aea2..bc3aabcc7db7b1 100644 --- a/types/express-version-route/tsconfig.json +++ b/types/express-version-route/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/express-wechat-access/express-wechat-access-tests.ts b/types/express-wechat-access/express-wechat-access-tests.ts index 8843bd69083561..c0dbc4d10a5005 100644 --- a/types/express-wechat-access/express-wechat-access-tests.ts +++ b/types/express-wechat-access/express-wechat-access-tests.ts @@ -1,5 +1,5 @@ import express = require("express"); -import * as weAccessMiddleware from "express-wechat-access"; +import weAccessMiddleware from "express-wechat-access"; const app: express.Application = express(); diff --git a/types/express-wechat-access/tsconfig.json b/types/express-wechat-access/tsconfig.json index 995d2b1f700aa5..c92e001cc1f5d0 100644 --- a/types/express-wechat-access/tsconfig.json +++ b/types/express-wechat-access/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/express-ws-routes/express-ws-routes-tests.ts b/types/express-ws-routes/express-ws-routes-tests.ts index dd62995279f70f..0bc8c3d82f23d2 100644 --- a/types/express-ws-routes/express-ws-routes-tests.ts +++ b/types/express-ws-routes/express-ws-routes-tests.ts @@ -1,6 +1,6 @@ import { Express as exExpress, NextFunction, Request } from "express"; import { Router as coreRouter } from "express-serve-static-core"; -import * as expresswsroutes from "express-ws-routes"; +import expresswsroutes from "express-ws-routes"; import { Server as httpServer } from "http"; import * as WebSocket from "ws"; diff --git a/types/express-ws-routes/index.d.ts b/types/express-ws-routes/index.d.ts index 89eb9347dfab9e..69b496d0d8c565 100644 --- a/types/express-ws-routes/index.d.ts +++ b/types/express-ws-routes/index.d.ts @@ -1,7 +1,7 @@ import { Express as exExpress, NextFunction, Request } from "express"; import { Router as coreRouter } from "express-serve-static-core"; import { Server as httpServer } from "http"; -import * as WebSocket from "ws"; +import WebSocket = require("ws"); declare function expressWsRoutes(): expressWsRoutes.Express; diff --git a/types/express-ws-routes/tsconfig.json b/types/express-ws-routes/tsconfig.json index d64e833c97f3ac..f19cbbed8337cf 100644 --- a/types/express-ws-routes/tsconfig.json +++ b/types/express-ws-routes/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/express-ws/index.d.ts b/types/express-ws/index.d.ts index 827794da4acfe5..b7757222cdd05f 100644 --- a/types/express-ws/index.d.ts +++ b/types/express-ws/index.d.ts @@ -1,8 +1,8 @@ -import * as express from "express"; +import express = require("express"); import * as core from "express-serve-static-core"; import * as http from "http"; import * as https from "https"; -import * as ws from "ws"; +import ws = require("ws"); declare module "express" { function Router(options?: RouterOptions): expressWs.Router; diff --git a/types/express/index.d.ts b/types/express/index.d.ts index 1c36585f58ea5d..f18dccb5029640 100644 --- a/types/express/index.d.ts +++ b/types/express/index.d.ts @@ -8,9 +8,9 @@ /// /// -import * as bodyParser from "body-parser"; +import bodyParser = require("body-parser"); import * as core from "express-serve-static-core"; -import * as serveStatic from "serve-static"; +import serveStatic = require("serve-static"); /** * Creates an Express application. The express() function is a top-level function exported by the express module. diff --git a/types/express/v4/index.d.ts b/types/express/v4/index.d.ts index b92b15c8a3dbf0..dc2934de94f5ed 100644 --- a/types/express/v4/index.d.ts +++ b/types/express/v4/index.d.ts @@ -8,10 +8,10 @@ /// /// -import * as bodyParser from "body-parser"; +import bodyParser = require("body-parser"); import * as core from "express-serve-static-core"; import * as qs from "qs"; -import * as serveStatic from "serve-static"; +import serveStatic = require("serve-static"); /** * Creates an Express application. The express() function is a top-level function exported by the express module. diff --git a/types/extract-files/tsconfig.json b/types/extract-files/tsconfig.json index 8a888194aaa5f8..fd766d1d3680ef 100644 --- a/types/extract-files/tsconfig.json +++ b/types/extract-files/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/ez-plus/tsconfig.json b/types/ez-plus/tsconfig.json index ad87c4af3f5d96..9a8cc0e47f7379 100644 --- a/types/ez-plus/tsconfig.json +++ b/types/ez-plus/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/ezuikit-js/tsconfig.json b/types/ezuikit-js/tsconfig.json index accc6ec2e5f9da..81ac5e3dea1acc 100644 --- a/types/ezuikit-js/tsconfig.json +++ b/types/ezuikit-js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "Node16", + "module": "node16", "lib": [ "es6" ], diff --git a/types/fabric/tsconfig.json b/types/fabric/tsconfig.json index f63d38c88d7885..eba9ef826e3770 100644 --- a/types/fabric/tsconfig.json +++ b/types/fabric/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/falcor/tsconfig.json b/types/falcor/tsconfig.json index 7d0f601a8482a5..d5bf4c538c09bf 100644 --- a/types/falcor/tsconfig.json +++ b/types/falcor/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/fast-redact/fast-redact-tests.ts b/types/fast-redact/fast-redact-tests.ts index a61240558aff42..1df2ab2dc4e3aa 100644 --- a/types/fast-redact/fast-redact-tests.ts +++ b/types/fast-redact/fast-redact-tests.ts @@ -1,4 +1,4 @@ -import * as FastRedact from "fast-redact"; +import FastRedact from "fast-redact"; // should return redactFn FastRedact(); // $ExpectType redactFn diff --git a/types/fast-redact/tsconfig.json b/types/fast-redact/tsconfig.json index 2192432a056147..cf2adb4efeb37e 100644 --- a/types/fast-redact/tsconfig.json +++ b/types/fast-redact/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/fbjs/fbjs-tests.ts b/types/fbjs/fbjs-tests.ts index 40ee6251af8655..cfe03ecd0d743c 100644 --- a/types/fbjs/fbjs-tests.ts +++ b/types/fbjs/fbjs-tests.ts @@ -1,114 +1,114 @@ -import * as _shouldPolyfillES6Collection from "fbjs/lib/_shouldPolyfillES6Collection"; -import * as areEqual from "fbjs/lib/areEqual"; -import * as base62 from "fbjs/lib/base62"; +import _shouldPolyfillES6Collection from "fbjs/lib/_shouldPolyfillES6Collection"; +import areEqual from "fbjs/lib/areEqual"; +import base62 from "fbjs/lib/base62"; import * as BrowserSupportCore from "fbjs/lib/BrowserSupportCore"; -import * as camelize from "fbjs/lib/camelize"; -import * as camelizeStyleName from "fbjs/lib/camelizeStyleName"; -import * as cancelAnimationFramePolyfill from "fbjs/lib/cancelAnimationFramePolyfill"; -import * as CircularBuffer from "fbjs/lib/CircularBuffer"; -import * as clamp from "fbjs/lib/clamp"; -import * as compactArray from "fbjs/lib/compactArray"; -import * as concatAllArray from "fbjs/lib/concatAllArray"; -import * as containsNode from "fbjs/lib/containsNode"; -import * as countDistinct from "fbjs/lib/countDistinct"; -import * as crc32 from "fbjs/lib/crc32"; -import * as createArrayFromMixed from "fbjs/lib/createArrayFromMixed"; -import * as createNodesFromMarkup from "fbjs/lib/createNodesFromMarkup"; +import camelize from "fbjs/lib/camelize"; +import camelizeStyleName from "fbjs/lib/camelizeStyleName"; +import cancelAnimationFramePolyfill from "fbjs/lib/cancelAnimationFramePolyfill"; +import CircularBuffer from "fbjs/lib/CircularBuffer"; +import clamp from "fbjs/lib/clamp"; +import compactArray from "fbjs/lib/compactArray"; +import concatAllArray from "fbjs/lib/concatAllArray"; +import containsNode from "fbjs/lib/containsNode"; +import countDistinct from "fbjs/lib/countDistinct"; +import crc32 from "fbjs/lib/crc32"; +import createArrayFromMixed from "fbjs/lib/createArrayFromMixed"; +import createNodesFromMarkup from "fbjs/lib/createNodesFromMarkup"; import * as CSSCore from "fbjs/lib/CSSCore"; -import * as cssVar from "fbjs/lib/cssVar"; -import * as cx from "fbjs/lib/cx"; -import * as DataTransfer from "fbjs/lib/DataTransfer"; -import * as debounceCore from "fbjs/lib/debounceCore"; -import * as Deferred from "fbjs/lib/Deferred"; -import * as distinctArray from "fbjs/lib/distinctArray"; -import * as DOMMouseMoveTracker from "fbjs/lib/DOMMouseMoveTracker"; -import * as emptyFunction from "fbjs/lib/emptyFunction"; +import cssVar from "fbjs/lib/cssVar"; +import cx from "fbjs/lib/cx"; +import DataTransfer from "fbjs/lib/DataTransfer"; +import debounceCore from "fbjs/lib/debounceCore"; +import Deferred from "fbjs/lib/Deferred"; +import distinctArray from "fbjs/lib/distinctArray"; +import DOMMouseMoveTracker from "fbjs/lib/DOMMouseMoveTracker"; +import emptyFunction from "fbjs/lib/emptyFunction"; import * as emptyObject from "fbjs/lib/emptyObject"; -import * as enumerate from "fbjs/lib/enumerate"; -import * as equalsIterable from "fbjs/lib/equalsIterable"; -import * as equalsSet from "fbjs/lib/equalsSet"; +import enumerate from "fbjs/lib/enumerate"; +import equalsIterable from "fbjs/lib/equalsIterable"; +import equalsSet from "fbjs/lib/equalsSet"; import * as ErrorUtils from "fbjs/lib/ErrorUtils"; import * as EventListener from "fbjs/lib/EventListener"; -import * as everyObject from "fbjs/lib/everyObject"; -import * as everySet from "fbjs/lib/everySet"; +import everyObject from "fbjs/lib/everyObject"; +import everySet from "fbjs/lib/everySet"; import * as ExecutionEnvironment from "fbjs/lib/ExecutionEnvironment"; -import * as fetchWithRetries from "fbjs/lib/fetchWithRetries"; -import * as filterObject from "fbjs/lib/filterObject"; -import * as flatMapArray from "fbjs/lib/flatMapArray"; -import * as flattenArray from "fbjs/lib/flattenArray"; -import * as focusNode from "fbjs/lib/focusNode"; -import * as forEachObject from "fbjs/lib/forEachObject"; -import * as getActiveElement from "fbjs/lib/getActiveElement"; -import * as getByPath from "fbjs/lib/getByPath"; -import * as getDocumentScrollElement from "fbjs/lib/getDocumentScrollElement"; -import * as getElementPosition from "fbjs/lib/getElementPosition"; -import * as getElementRect from "fbjs/lib/getElementRect"; -import * as getMarkupWrap from "fbjs/lib/getMarkupWrap"; -import * as getScrollPosition from "fbjs/lib/getScrollPosition"; -import * as getStyleProperty from "fbjs/lib/getStyleProperty"; -import * as getUnboundedScrollPosition from "fbjs/lib/getUnboundedScrollPosition"; -import * as getVendorPrefixedName from "fbjs/lib/getVendorPrefixedName"; -import * as getViewportDimensions from "fbjs/lib/getViewportDimensions"; -import * as groupArray from "fbjs/lib/groupArray"; -import * as Heap from "fbjs/lib/Heap"; -import * as hyphenate from "fbjs/lib/hyphenate"; -import * as hyphenateStyleName from "fbjs/lib/hyphenateStyleName"; -import * as IntegerBufferSet from "fbjs/lib/IntegerBufferSet"; -import * as invariant from "fbjs/lib/invariant"; -import * as isEmail from "fbjs/lib/isEmail"; -import * as isEmpty from "fbjs/lib/isEmpty"; -import * as isEventSupported from "fbjs/lib/isEventSupported"; -import * as isInternationalPhoneNumber from "fbjs/lib/isInternationalPhoneNumber"; -import * as isNode from "fbjs/lib/isNode"; -import * as isTextNode from "fbjs/lib/isTextNode"; -import * as joinClasses from "fbjs/lib/joinClasses"; -import * as keyMirror from "fbjs/lib/keyMirror"; -import * as keyMirrorRecursive from "fbjs/lib/keyMirrorRecursive"; -import * as keyOf from "fbjs/lib/keyOf"; +import fetchWithRetries from "fbjs/lib/fetchWithRetries"; +import filterObject from "fbjs/lib/filterObject"; +import flatMapArray from "fbjs/lib/flatMapArray"; +import flattenArray from "fbjs/lib/flattenArray"; +import focusNode from "fbjs/lib/focusNode"; +import forEachObject from "fbjs/lib/forEachObject"; +import getActiveElement from "fbjs/lib/getActiveElement"; +import getByPath from "fbjs/lib/getByPath"; +import getDocumentScrollElement from "fbjs/lib/getDocumentScrollElement"; +import getElementPosition from "fbjs/lib/getElementPosition"; +import getElementRect from "fbjs/lib/getElementRect"; +import getMarkupWrap from "fbjs/lib/getMarkupWrap"; +import getScrollPosition from "fbjs/lib/getScrollPosition"; +import getStyleProperty from "fbjs/lib/getStyleProperty"; +import getUnboundedScrollPosition from "fbjs/lib/getUnboundedScrollPosition"; +import getVendorPrefixedName from "fbjs/lib/getVendorPrefixedName"; +import getViewportDimensions from "fbjs/lib/getViewportDimensions"; +import groupArray from "fbjs/lib/groupArray"; +import Heap from "fbjs/lib/Heap"; +import hyphenate from "fbjs/lib/hyphenate"; +import hyphenateStyleName from "fbjs/lib/hyphenateStyleName"; +import IntegerBufferSet from "fbjs/lib/IntegerBufferSet"; +import invariant from "fbjs/lib/invariant"; +import isEmail from "fbjs/lib/isEmail"; +import isEmpty from "fbjs/lib/isEmpty"; +import isEventSupported from "fbjs/lib/isEventSupported"; +import isInternationalPhoneNumber from "fbjs/lib/isInternationalPhoneNumber"; +import isNode from "fbjs/lib/isNode"; +import isTextNode from "fbjs/lib/isTextNode"; +import joinClasses from "fbjs/lib/joinClasses"; +import keyMirror from "fbjs/lib/keyMirror"; +import keyMirrorRecursive from "fbjs/lib/keyMirrorRecursive"; +import keyOf from "fbjs/lib/keyOf"; import * as Keys from "fbjs/lib/Keys"; import * as Locale from "fbjs/lib/Locale"; -import * as mapObject from "fbjs/lib/mapObject"; -import * as maxBy from "fbjs/lib/maxBy"; -import * as memoizeStringOnly from "fbjs/lib/memoizeStringOnly"; -import * as minBy from "fbjs/lib/minBy"; -import * as monitorCodeUse from "fbjs/lib/monitorCodeUse"; -import * as nativeRequestAnimationFrame from "fbjs/lib/nativeRequestAnimationFrame"; -import * as normalizeWheel from "fbjs/lib/normalizeWheel"; -import * as nullthrows from "fbjs/lib/nullthrows"; -import * as partitionArray from "fbjs/lib/partitionArray"; -import * as partitionObject from "fbjs/lib/partitionObject"; -import * as partitionObjectByKey from "fbjs/lib/partitionObjectByKey"; +import mapObject from "fbjs/lib/mapObject"; +import maxBy from "fbjs/lib/maxBy"; +import memoizeStringOnly from "fbjs/lib/memoizeStringOnly"; +import minBy from "fbjs/lib/minBy"; +import monitorCodeUse from "fbjs/lib/monitorCodeUse"; +import nativeRequestAnimationFrame from "fbjs/lib/nativeRequestAnimationFrame"; +import normalizeWheel from "fbjs/lib/normalizeWheel"; +import nullthrows from "fbjs/lib/nullthrows"; +import partitionArray from "fbjs/lib/partitionArray"; +import partitionObject from "fbjs/lib/partitionObject"; +import partitionObjectByKey from "fbjs/lib/partitionObjectByKey"; import * as PhotosMimeType from "fbjs/lib/PhotosMimeType"; -import * as PrefixIntervalTree from "fbjs/lib/PrefixIntervalTree"; -import * as ReactWheelHandler from "fbjs/lib/ReactWheelHandler"; -import * as removeFromArray from "fbjs/lib/removeFromArray"; -import * as requestAnimationFrame from "fbjs/lib/requestAnimationFrame"; -import * as requestAnimationFramePolyfill from "fbjs/lib/requestAnimationFramePolyfill"; -import * as resolveImmediate from "fbjs/lib/resolveImmediate"; +import PrefixIntervalTree from "fbjs/lib/PrefixIntervalTree"; +import ReactWheelHandler from "fbjs/lib/ReactWheelHandler"; +import removeFromArray from "fbjs/lib/removeFromArray"; +import requestAnimationFrame from "fbjs/lib/requestAnimationFrame"; +import requestAnimationFramePolyfill from "fbjs/lib/requestAnimationFramePolyfill"; +import resolveImmediate from "fbjs/lib/resolveImmediate"; import * as Scroll from "fbjs/lib/Scroll"; -import * as setImmediate from "fbjs/lib/setImmediate"; -import * as shallowEqual from "fbjs/lib/shallowEqual"; +import setImmediate from "fbjs/lib/setImmediate"; +import shallowEqual from "fbjs/lib/shallowEqual"; import * as SiteData from "fbjs/lib/SiteData"; -import * as someObject from "fbjs/lib/someObject"; -import * as someSet from "fbjs/lib/someSet"; -import * as sprintf from "fbjs/lib/sprintf"; +import someObject from "fbjs/lib/someObject"; +import someSet from "fbjs/lib/someSet"; +import sprintf from "fbjs/lib/sprintf"; import * as Style from "fbjs/lib/Style"; import * as TokenizeUtil from "fbjs/lib/TokenizeUtil"; import * as TouchEventUtils from "fbjs/lib/TouchEventUtils"; -import * as translateDOMPositionXY from "fbjs/lib/translateDOMPositionXY"; +import translateDOMPositionXY from "fbjs/lib/translateDOMPositionXY"; import * as UnicodeBidi from "fbjs/lib/UnicodeBidi"; import * as UnicodeBidiDirection from "fbjs/lib/UnicodeBidiDirection"; -import * as UnicodeBidiService from "fbjs/lib/UnicodeBidiService"; +import UnicodeBidiService from "fbjs/lib/UnicodeBidiService"; import * as UnicodeCJK from "fbjs/lib/UnicodeCJK"; import * as UnicodeHangulKorean from "fbjs/lib/UnicodeHangulKorean"; import * as UnicodeUtils from "fbjs/lib/UnicodeUtils"; import * as UnicodeUtilsExtra from "fbjs/lib/UnicodeUtilsExtra"; -import * as URI from "fbjs/lib/URI"; +import URI from "fbjs/lib/URI"; import * as UserAgent from "fbjs/lib/UserAgent"; import * as UserAgentData from "fbjs/lib/UserAgentData"; import * as VersionRange from "fbjs/lib/VersionRange"; -import * as warning from "fbjs/lib/warning"; -import * as xhrSimpleDataSerializer from "fbjs/lib/xhrSimpleDataSerializer"; +import warning from "fbjs/lib/warning"; +import xhrSimpleDataSerializer from "fbjs/lib/xhrSimpleDataSerializer"; const array = ["array"]; const setTemp = new Set(); diff --git a/types/fbjs/tsconfig.json b/types/fbjs/tsconfig.json index c318bbe6630ffd..facfff13e494fa 100644 --- a/types/fbjs/tsconfig.json +++ b/types/fbjs/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/ffmpeg-concat/tsconfig.json b/types/ffmpeg-concat/tsconfig.json index 89bf4976eb5063..bcbe858cb499b3 100644 --- a/types/ffmpeg-concat/tsconfig.json +++ b/types/ffmpeg-concat/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/ffmpeg.js/tsconfig.json b/types/ffmpeg.js/tsconfig.json index 0f8b201a376d7d..135a266a279790 100644 --- a/types/ffmpeg.js/tsconfig.json +++ b/types/ffmpeg.js/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/ffmpeg/tsconfig.json b/types/ffmpeg/tsconfig.json index beb7309ef192ad..949eb5606932c8 100644 --- a/types/ffmpeg/tsconfig.json +++ b/types/ffmpeg/tsconfig.json @@ -10,7 +10,6 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true }, diff --git a/types/fibers/tsconfig.json b/types/fibers/tsconfig.json index 5573574f33fca9..53001d2fb7047a 100644 --- a/types/fibers/tsconfig.json +++ b/types/fibers/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/file-saver-es/tsconfig.json b/types/file-saver-es/tsconfig.json index 5b26d2a6cf5081..926f1608c0e333 100644 --- a/types/file-saver-es/tsconfig.json +++ b/types/file-saver-es/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/file-saver/tsconfig.json b/types/file-saver/tsconfig.json index 0b00a21003f459..5f8916d728d048 100644 --- a/types/file-saver/tsconfig.json +++ b/types/file-saver/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/filter-css/tsconfig.json b/types/filter-css/tsconfig.json index 91d37647f7263a..ef706891feac53 100644 --- a/types/filter-css/tsconfig.json +++ b/types/filter-css/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/firebase-client/index.d.ts b/types/firebase-client/index.d.ts index 65fc0787570a46..39d53a9a3cb0dc 100644 --- a/types/firebase-client/index.d.ts +++ b/types/firebase-client/index.d.ts @@ -1,4 +1,4 @@ -import * as Q from "q"; +import Q = require("q"); interface PushResponse { /** diff --git a/types/firebase-client/tsconfig.json b/types/firebase-client/tsconfig.json index 15ac97d3559f84..8b8fcb1f5bd135 100644 --- a/types/firebase-client/tsconfig.json +++ b/types/firebase-client/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/firemonkey-browser/tsconfig.json b/types/firemonkey-browser/tsconfig.json index 7b1d0fcefe4773..d8fe39500a82fc 100644 --- a/types/firemonkey-browser/tsconfig.json +++ b/types/firemonkey-browser/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/firmata/index.d.ts b/types/firmata/index.d.ts index 96bffcbe9a9e18..88c755671976df 100644 --- a/types/firmata/index.d.ts +++ b/types/firmata/index.d.ts @@ -1,6 +1,6 @@ /// -import * as SerialPort from "serialport"; +import SerialPort = require("serialport"); import { EventEmitter } from "events"; diff --git a/types/fitvids/tsconfig.json b/types/fitvids/tsconfig.json index 8a3e368928e252..2d97472bff31e9 100644 --- a/types/fitvids/tsconfig.json +++ b/types/fitvids/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/flickity/tsconfig.json b/types/flickity/tsconfig.json index 99776f8744adf2..78a5846947c6f6 100644 --- a/types/flickity/tsconfig.json +++ b/types/flickity/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/flowjs/tsconfig.json b/types/flowjs/tsconfig.json index 8b85b9353eb3ee..f235259408e2fd 100644 --- a/types/flowjs/tsconfig.json +++ b/types/flowjs/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index f86cfd11ea665a..3ab20228e9be5d 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -1,7 +1,7 @@ /// -import * as events from "events"; -import * as stream from "stream"; +import events = require("events"); +import stream = require("stream"); declare namespace Ffmpeg { interface FfmpegCommandLogger { diff --git a/types/flutterwave-node/tsconfig.json b/types/flutterwave-node/tsconfig.json index 1b565d67414d17..e22b9e91d994d8 100644 --- a/types/flutterwave-node/tsconfig.json +++ b/types/flutterwave-node/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "module": "node16", "lib": [ "es6" diff --git a/types/flux/lib/FluxContainer.d.ts b/types/flux/lib/FluxContainer.d.ts index 003c21c222c4dd..dd7f89903f08f7 100644 --- a/types/flux/lib/FluxContainer.d.ts +++ b/types/flux/lib/FluxContainer.d.ts @@ -1,6 +1,6 @@ import * as React from "react"; -import * as Dispatcher from "./Dispatcher"; -import * as FluxStore from "./FluxStore"; +import Dispatcher = require("./Dispatcher"); +import FluxStore = require("./FluxStore"); /** * A FluxContainer is used to subscribe a react component to multiple stores. diff --git a/types/flux/lib/FluxMixinLegacy.d.ts b/types/flux/lib/FluxMixinLegacy.d.ts index 26cffd8a54d709..a17f1ed189038b 100644 --- a/types/flux/lib/FluxMixinLegacy.d.ts +++ b/types/flux/lib/FluxMixinLegacy.d.ts @@ -1,4 +1,4 @@ -import * as FluxStore from "./FluxStore"; +import FluxStore = require("./FluxStore"); declare namespace FluxMixinLegacy { interface Options { diff --git a/types/flux/lib/FluxStore.d.ts b/types/flux/lib/FluxStore.d.ts index e7e57d61143f04..7f473f06e05180 100644 --- a/types/flux/lib/FluxStore.d.ts +++ b/types/flux/lib/FluxStore.d.ts @@ -1,5 +1,5 @@ import * as fbEmitter from "fbemitter"; -import * as Dispatcher from "./Dispatcher"; +import Dispatcher = require("./Dispatcher"); declare namespace FluxStore {} diff --git a/types/fluxible-addons-react/tsconfig.json b/types/fluxible-addons-react/tsconfig.json index 564b9c8788e584..0a2ab2d8c4b723 100644 --- a/types/fluxible-addons-react/tsconfig.json +++ b/types/fluxible-addons-react/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/fluxible-router/tsconfig.json b/types/fluxible-router/tsconfig.json index ff4e7a603cc9aa..a98fb9dcc25cd2 100644 --- a/types/fluxible-router/tsconfig.json +++ b/types/fluxible-router/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/fluxible/tsconfig.json b/types/fluxible/tsconfig.json index ca48a5d03516f5..83d5c028507338 100644 --- a/types/fluxible/tsconfig.json +++ b/types/fluxible/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/focus-within/tsconfig.json b/types/focus-within/tsconfig.json index 3ab3da4af4cea2..78a17c7246aac9 100644 --- a/types/focus-within/tsconfig.json +++ b/types/focus-within/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/fparser/tsconfig.json b/types/fparser/tsconfig.json index 32327a1511a83c..1229f3630f13b6 100644 --- a/types/fparser/tsconfig.json +++ b/types/fparser/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/fragmented-store/tsconfig.json b/types/fragmented-store/tsconfig.json index 4a968bbfac2f54..8421dc6d14e6a9 100644 --- a/types/fragmented-store/tsconfig.json +++ b/types/fragmented-store/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "jsx": "react", "types": [], "noEmit": true, diff --git a/types/frappe-gantt/tsconfig.json b/types/frappe-gantt/tsconfig.json index e7947e04dc1b26..3ec1ad5cd3163c 100644 --- a/types/frappe-gantt/tsconfig.json +++ b/types/frappe-gantt/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/frctl__fractal/index.d.ts b/types/frctl__fractal/index.d.ts index 937e9749032f8e..de00c56d252378 100644 --- a/types/frctl__fractal/index.d.ts +++ b/types/frctl__fractal/index.d.ts @@ -2,7 +2,7 @@ import { EventEmitter } from "events"; import { Stats as FileStats } from "fs"; import { Server as HttpServer } from "http"; import { Readable as ReadableStream } from "stream"; -import * as VinylFile from "vinyl"; +import VinylFile = require("vinyl"); export namespace fractal { namespace core { diff --git a/types/from2/index.d.ts b/types/from2/index.d.ts index a333e540c213d1..8f7b0f65e766fd 100644 --- a/types/from2/index.d.ts +++ b/types/from2/index.d.ts @@ -1,5 +1,5 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export = from2; diff --git a/types/fs-extra-promise/index.d.ts b/types/fs-extra-promise/index.d.ts index 07e9d78ef214c5..f194a54f06545e 100644 --- a/types/fs-extra-promise/index.d.ts +++ b/types/fs-extra-promise/index.d.ts @@ -1,9 +1,9 @@ /// -import * as Promise from "bluebird"; +import Promise = require("bluebird"); import * as fs from "fs"; import { CopyFilter, CopyOptions, MoveOptions, ReadOptions, WriteOptions } from "fs-extra"; -import * as stream from "stream"; +import stream = require("stream"); import Stats = fs.Stats; export * from "fs-extra"; diff --git a/types/ft-poller/tsconfig.json b/types/ft-poller/tsconfig.json index 5ce32df7a4c79c..11de0c980f15e4 100644 --- a/types/ft-poller/tsconfig.json +++ b/types/ft-poller/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/function.prototype.name/tsconfig.json b/types/function.prototype.name/tsconfig.json index 0e585903c81ed4..5bca4812c99fe2 100644 --- a/types/function.prototype.name/tsconfig.json +++ b/types/function.prototype.name/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "function.prototype.name-tests.ts", diff --git a/types/fusebit__oauth-connector/index.d.ts b/types/fusebit__oauth-connector/index.d.ts index a0121aac6ee3cb..ce90cf8ab26b2b 100644 --- a/types/fusebit__oauth-connector/index.d.ts +++ b/types/fusebit__oauth-connector/index.d.ts @@ -1,5 +1,5 @@ import { FusebitContext } from "@fusebit/add-on-sdk"; -import * as express from "express"; +import express = require("express"); /** * Model for persisted user data. diff --git a/types/fuzzy-finder/tsconfig.json b/types/fuzzy-finder/tsconfig.json index 324fc07a20c533..a9abb9eb4b8a03 100644 --- a/types/fuzzy-finder/tsconfig.json +++ b/types/fuzzy-finder/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/gapi.calendar/tsconfig.json b/types/gapi.calendar/tsconfig.json index 169f9cfb12a6be..7ebc39dddc0b0a 100644 --- a/types/gapi.calendar/tsconfig.json +++ b/types/gapi.calendar/tsconfig.json @@ -11,7 +11,8 @@ "noImplicitAny": true, "noImplicitThis": true, "forceConsistentCasingInFileNames": true, - "noEmit": true + "noEmit": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/gatsby-plugin-breakpoints/tsconfig.json b/types/gatsby-plugin-breakpoints/tsconfig.json index 12e2f01f004a93..5fdd48cd7ed471 100644 --- a/types/gatsby-plugin-breakpoints/tsconfig.json +++ b/types/gatsby-plugin-breakpoints/tsconfig.json @@ -12,8 +12,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "jsx": "react", - "esModuleInterop": true + "jsx": "react" }, "files": [ "index.d.ts", diff --git a/types/gaussian/gaussian-tests.ts b/types/gaussian/gaussian-tests.ts index c845a096e00f01..2c0f079c5eedb2 100644 --- a/types/gaussian/gaussian-tests.ts +++ b/types/gaussian/gaussian-tests.ts @@ -1,4 +1,4 @@ -import * as gaussian from "gaussian"; +import gaussian from "gaussian"; const d = gaussian(0, 1); const a = d.mean !== d.variance; diff --git a/types/gaussian/tsconfig.json b/types/gaussian/tsconfig.json index df27d0eac64f5f..0c1e37b13993e2 100644 --- a/types/gaussian/tsconfig.json +++ b/types/gaussian/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/gematriya/tsconfig.json b/types/gematriya/tsconfig.json index 543ab67e7e7aac..55129701472dec 100644 --- a/types/gematriya/tsconfig.json +++ b/types/gematriya/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/geodesy/tsconfig.json b/types/geodesy/tsconfig.json index d2e1886be34d1f..8c517a0553cbae 100644 --- a/types/geodesy/tsconfig.json +++ b/types/geodesy/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "geodesy-tests.ts", diff --git a/types/geoflatbush/tsconfig.json b/types/geoflatbush/tsconfig.json index e6532465cd27d6..208d149f30c475 100644 --- a/types/geoflatbush/tsconfig.json +++ b/types/geoflatbush/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/geojson-vt/geojson-vt-tests.ts b/types/geojson-vt/geojson-vt-tests.ts index 727bb2d3fc3d2c..796a25c230ff2a 100644 --- a/types/geojson-vt/geojson-vt-tests.ts +++ b/types/geojson-vt/geojson-vt-tests.ts @@ -1,5 +1,5 @@ import * as GJ from "geojson"; -import * as geojsonvt from "geojson-vt"; +import geojsonvt from "geojson-vt"; const GeoJSONData: GJ.FeatureCollection = { type: "FeatureCollection", diff --git a/types/geojson-vt/tsconfig.json b/types/geojson-vt/tsconfig.json index 95f1b7af1de543..3f869d46e4ed2f 100644 --- a/types/geojson-vt/tsconfig.json +++ b/types/geojson-vt/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/geokdbush/geokdbush-tests.ts b/types/geokdbush/geokdbush-tests.ts index a7b7b9fc2a7874..f1fc3eb4e5037c 100644 --- a/types/geokdbush/geokdbush-tests.ts +++ b/types/geokdbush/geokdbush-tests.ts @@ -1,5 +1,5 @@ import * as geokdbush from "geokdbush"; -import * as kdbush from "kdbush"; +import kdbush from "kdbush"; const points = [ { lon: 0, lat: 0 }, diff --git a/types/geokdbush/tsconfig.json b/types/geokdbush/tsconfig.json index 6f94fad80fc1d9..2d2df1c48825b9 100644 --- a/types/geokdbush/tsconfig.json +++ b/types/geokdbush/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/geopattern/tsconfig.json b/types/geopattern/tsconfig.json index 23961b7d3d9c9e..88ff92d1491c2a 100644 --- a/types/geopattern/tsconfig.json +++ b/types/geopattern/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/getenv/getenv-tests.ts b/types/getenv/getenv-tests.ts index f274a56e77de21..8c4cdd2b31f3ad 100644 --- a/types/getenv/getenv-tests.ts +++ b/types/getenv/getenv-tests.ts @@ -1,4 +1,4 @@ -import * as getenv from "getenv"; +import getenv from "getenv"; import { UrlWithStringQuery } from "url"; getenv("FOO"); // $ExpectType string diff --git a/types/getenv/tsconfig.json b/types/getenv/tsconfig.json index 354d09c9578bdc..d7681b11d120de 100644 --- a/types/getenv/tsconfig.json +++ b/types/getenv/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/ghost-storage-base/tsconfig.json b/types/ghost-storage-base/tsconfig.json index 16a1c4bbd4ccf7..373e4037a720be 100644 --- a/types/ghost-storage-base/tsconfig.json +++ b/types/ghost-storage-base/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/gimloader/tsconfig.json b/types/gimloader/tsconfig.json index dd0f797f09ec99..f68c2aaa87189b 100644 --- a/types/gimloader/tsconfig.json +++ b/types/gimloader/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/git-raw-commits/index.d.ts b/types/git-raw-commits/index.d.ts index 712bea1f1877d5..b65574b3ed926f 100644 --- a/types/git-raw-commits/index.d.ts +++ b/types/git-raw-commits/index.d.ts @@ -1,6 +1,6 @@ /// -import * as Stream from "stream"; +import Stream = require("stream"); /** * Please check the available options at http://git-scm.com/docs/git-log. diff --git a/types/git-raw-commits/tsconfig.json b/types/git-raw-commits/tsconfig.json index 11193b22b0dd1d..e49db5158af082 100644 --- a/types/git-raw-commits/tsconfig.json +++ b/types/git-raw-commits/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/git-semver-tags/git-semver-tags-tests.ts b/types/git-semver-tags/git-semver-tags-tests.ts index 128da839cdf403..b05476c9a27eca 100644 --- a/types/git-semver-tags/git-semver-tags-tests.ts +++ b/types/git-semver-tags/git-semver-tags-tests.ts @@ -1,4 +1,4 @@ -import * as gitSemverTags from "git-semver-tags"; +import gitSemverTags from "git-semver-tags"; declare const options: gitSemverTags.Options; diff --git a/types/git-semver-tags/tsconfig.json b/types/git-semver-tags/tsconfig.json index 8673de44b8b899..9b2bf48fa9f895 100644 --- a/types/git-semver-tags/tsconfig.json +++ b/types/git-semver-tags/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/gitana/gitana-tests.ts b/types/gitana/gitana-tests.ts index 4369ab2f1c96ff..bb8ecc350dd85f 100644 --- a/types/gitana/gitana-tests.ts +++ b/types/gitana/gitana-tests.ts @@ -1,4 +1,4 @@ -import * as Gitana from "gitana"; +import Gitana from "gitana"; Gitana.connect("", e => {}); // $ExpectType AppHelper diff --git a/types/gitana/tsconfig.json b/types/gitana/tsconfig.json index f1b1865db27a2d..68e3a1f9be395e 100644 --- a/types/gitana/tsconfig.json +++ b/types/gitana/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/github-url-from-git/github-url-from-git-tests.ts b/types/github-url-from-git/github-url-from-git-tests.ts index 1c334e24a4f404..6284e216945ed0 100644 --- a/types/github-url-from-git/github-url-from-git-tests.ts +++ b/types/github-url-from-git/github-url-from-git-tests.ts @@ -1,4 +1,4 @@ -import * as parse from "github-url-from-git"; +import parse from "github-url-from-git"; parse("https://github.com/jamesor/mongoose-versioner"); // $ExpectType string parse("git://github.internal.example.com/treygriffith/cellar.git", { extraBaseUrls: ["github.internal.example.com"] }); // $ExpectType string diff --git a/types/github-url-from-git/tsconfig.json b/types/github-url-from-git/tsconfig.json index 4f1c1f96b40be0..1f630b687fe0f9 100644 --- a/types/github-url-from-git/tsconfig.json +++ b/types/github-url-from-git/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/gl-fbo/tsconfig.json b/types/gl-fbo/tsconfig.json index 9889a4fa767f74..1c59cdfb5dc597 100644 --- a/types/gl-fbo/tsconfig.json +++ b/types/gl-fbo/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/glider-js/tsconfig.json b/types/glider-js/tsconfig.json index 08c718a8413b25..2cb49287b4fe5d 100644 --- a/types/glider-js/tsconfig.json +++ b/types/glider-js/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/glob-base/glob-base-tests.ts b/types/glob-base/glob-base-tests.ts index 6890c435e21924..c0e0cfe19d5892 100644 --- a/types/glob-base/glob-base-tests.ts +++ b/types/glob-base/glob-base-tests.ts @@ -1,4 +1,4 @@ -import * as globBase from "glob-base"; +import globBase from "glob-base"; const result = globBase("**/*.ts"); diff --git a/types/glob-base/tsconfig.json b/types/glob-base/tsconfig.json index 993a7ec4450c9f..651936af5324f2 100644 --- a/types/glob-base/tsconfig.json +++ b/types/glob-base/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/glob-expand/index.d.ts b/types/glob-expand/index.d.ts index 28037950c6f4c0..4a1dbb5e5a5b8c 100644 --- a/types/glob-expand/index.d.ts +++ b/types/glob-expand/index.d.ts @@ -1,6 +1,6 @@ /// -import * as glob from "glob"; +import glob = require("glob"); interface Option { filter?: string | ((filePath: string) => boolean) | undefined; diff --git a/types/globalize-compiler/tsconfig.json b/types/globalize-compiler/tsconfig.json index 0218751b7ca8d6..a094c2e795466e 100644 --- a/types/globalize-compiler/tsconfig.json +++ b/types/globalize-compiler/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/globalize/dist/globalize-runtime.d.ts b/types/globalize/dist/globalize-runtime.d.ts index bd5815ee8ee69c..e036652b8e19f2 100644 --- a/types/globalize/dist/globalize-runtime.d.ts +++ b/types/globalize/dist/globalize-runtime.d.ts @@ -1,4 +1,4 @@ -import * as Globalize from "../"; +import Globalize = require("../"); export as namespace Globalize; export = Globalize; diff --git a/types/globalize/dist/globalize.d.ts b/types/globalize/dist/globalize.d.ts index bd94a8575c53e9..db613ccefd1ce7 100644 --- a/types/globalize/dist/globalize.d.ts +++ b/types/globalize/dist/globalize.d.ts @@ -1,4 +1,4 @@ -import * as Cldr from "cldrjs"; +import Cldr = require("cldrjs"); declare namespace Globalize { interface CommonNumberFormatterOptions { diff --git a/types/globalize/dist/globalize/currency.d.ts b/types/globalize/dist/globalize/currency.d.ts index c69dd395251b57..e172f7e3360e62 100644 --- a/types/globalize/dist/globalize/currency.d.ts +++ b/types/globalize/dist/globalize/currency.d.ts @@ -1,4 +1,4 @@ -import * as Globalize from "../globalize"; +import Globalize = require("../globalize"); declare module "../globalize" { interface CurrencyFormatterOptions extends CommonNumberFormatterOptions { diff --git a/types/globalize/dist/globalize/date.d.ts b/types/globalize/dist/globalize/date.d.ts index fc01d93d9d6499..e7044532d07769 100644 --- a/types/globalize/dist/globalize/date.d.ts +++ b/types/globalize/dist/globalize/date.d.ts @@ -1,4 +1,4 @@ -import * as Globalize from "./number"; +import Globalize = require("./number"); declare module "../globalize" { interface DateFormatterOptions { diff --git a/types/globalize/dist/globalize/message.d.ts b/types/globalize/dist/globalize/message.d.ts index 036410e5098d5c..4425a43772ef7b 100644 --- a/types/globalize/dist/globalize/message.d.ts +++ b/types/globalize/dist/globalize/message.d.ts @@ -1,4 +1,4 @@ -import * as Globalize from "../globalize"; +import Globalize = require("../globalize"); declare module "../globalize" { interface Static { diff --git a/types/globalize/dist/globalize/number.d.ts b/types/globalize/dist/globalize/number.d.ts index 9761e4de6bfc48..76687e38011c3b 100644 --- a/types/globalize/dist/globalize/number.d.ts +++ b/types/globalize/dist/globalize/number.d.ts @@ -1,4 +1,4 @@ -import * as Globalize from "../globalize"; +import Globalize = require("../globalize"); declare module "../globalize" { interface NumberFormatterOptions extends CommonNumberFormatterOptions, NumberParserOptions {} diff --git a/types/globalize/dist/globalize/plural.d.ts b/types/globalize/dist/globalize/plural.d.ts index efc612355e18b5..bd60819b324a6e 100644 --- a/types/globalize/dist/globalize/plural.d.ts +++ b/types/globalize/dist/globalize/plural.d.ts @@ -1,4 +1,4 @@ -import * as Globalize from "../globalize"; +import Globalize = require("../globalize"); declare module "../globalize" { interface PluralGeneratorOptions { diff --git a/types/globalize/dist/globalize/relative-time.d.ts b/types/globalize/dist/globalize/relative-time.d.ts index 78891d3092e774..4757ca1710e7dc 100644 --- a/types/globalize/dist/globalize/relative-time.d.ts +++ b/types/globalize/dist/globalize/relative-time.d.ts @@ -1,4 +1,4 @@ -import * as Globalize from "../globalize"; +import Globalize = require("../globalize"); import "./number"; import "./plural"; diff --git a/types/globalize/dist/globalize/unit.d.ts b/types/globalize/dist/globalize/unit.d.ts index 4327a75d566c01..75dc090bbb44c1 100644 --- a/types/globalize/dist/globalize/unit.d.ts +++ b/types/globalize/dist/globalize/unit.d.ts @@ -1,4 +1,4 @@ -import * as Globalize from "../globalize"; +import Globalize = require("../globalize"); import "./number"; import "./plural"; diff --git a/types/globalize/index.d.ts b/types/globalize/index.d.ts index dbced6188c13f7..8bbdabe9bd9877 100644 --- a/types/globalize/index.d.ts +++ b/types/globalize/index.d.ts @@ -1,5 +1,5 @@ -import * as Cldr from "cldrjs"; -import * as Globalize from "./dist/globalize"; +import Cldr = require("cldrjs"); +import Globalize = require("./dist/globalize"); import "./dist/globalize/message"; import "./dist/globalize/number"; diff --git a/types/globalize/tsconfig.json b/types/globalize/tsconfig.json index 271d2e2c0c6a43..feccb39cb81d1d 100644 --- a/types/globalize/tsconfig.json +++ b/types/globalize/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/glue/tsconfig.json b/types/glue/tsconfig.json index 76867041b7d0c3..691a72712aef43 100644 --- a/types/glue/tsconfig.json +++ b/types/glue/tsconfig.json @@ -12,8 +12,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "experimentalDecorators": true, - "esModuleInterop": true + "experimentalDecorators": true }, "files": [ "index.d.ts", diff --git a/types/google-images/google-images-tests.ts b/types/google-images/google-images-tests.ts index fc6477d6d43dd5..1314d7760165de 100644 --- a/types/google-images/google-images-tests.ts +++ b/types/google-images/google-images-tests.ts @@ -1,4 +1,4 @@ -import * as GoogleImages from "google-images"; +import GoogleImages from "google-images"; const client = new GoogleImages("CSE ID", "API KEY"); diff --git a/types/google-images/tsconfig.json b/types/google-images/tsconfig.json index 52424e66671554..9b666936034179 100644 --- a/types/google-images/tsconfig.json +++ b/types/google-images/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/google-map-react/tsconfig.json b/types/google-map-react/tsconfig.json index 3f058d48cb24ec..3a1406126677ff 100644 --- a/types/google-map-react/tsconfig.json +++ b/types/google-map-react/tsconfig.json @@ -12,8 +12,7 @@ "jsx": "react", "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/google-one-tap/tsconfig.json b/types/google-one-tap/tsconfig.json index 8dd6a13d3413a0..6fa41a87f3bccb 100644 --- a/types/google-one-tap/tsconfig.json +++ b/types/google-one-tap/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/graphql-api-koa/tsconfig.json b/types/graphql-api-koa/tsconfig.json index 16e786864462a7..50bdc58976e119 100644 --- a/types/graphql-api-koa/tsconfig.json +++ b/types/graphql-api-koa/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/graphql-react/tsconfig.json b/types/graphql-react/tsconfig.json index 6b9944b7d5e709..425b2cbd75bb44 100644 --- a/types/graphql-react/tsconfig.json +++ b/types/graphql-react/tsconfig.json @@ -12,8 +12,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "jsx": "react", - "esModuleInterop": true + "jsx": "react" }, "files": [ "index.d.ts", diff --git a/types/graphql-validation-complexity/tsconfig.json b/types/graphql-validation-complexity/tsconfig.json index e9bc1b8e255801..863211505b6535 100644 --- a/types/graphql-validation-complexity/tsconfig.json +++ b/types/graphql-validation-complexity/tsconfig.json @@ -13,8 +13,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/grasp/index.d.ts b/types/grasp/index.d.ts index 51769e474f6a45..ba7870bb10fe9b 100644 --- a/types/grasp/index.d.ts +++ b/types/grasp/index.d.ts @@ -1,6 +1,6 @@ /// -import * as cliColor from "cli-color"; +import cliColor = require("cli-color"); import * as fs from "fs"; // Though Grasp does not use esprima, the parser it uses (flow-parser) has a compatible Node type and existing typedefs import { Node } from "estree"; diff --git a/types/graylog2/tsconfig.json b/types/graylog2/tsconfig.json index 239ab86b3f9de7..f47f503e31c2fc 100644 --- a/types/graylog2/tsconfig.json +++ b/types/graylog2/tsconfig.json @@ -11,7 +11,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "allowSyntheticDefaultImports": true }, "files": [ diff --git a/types/guacamole-client/tsconfig.json b/types/guacamole-client/tsconfig.json index ad10ac266c7d0d..f13ed0a0556401 100644 --- a/types/guacamole-client/tsconfig.json +++ b/types/guacamole-client/tsconfig.json @@ -5,7 +5,6 @@ "noEmit": true, "forceConsistentCasingInFileNames": true, "strict": true, - "esModuleInterop": true, "lib": [ "DOM", "ES6", diff --git a/types/gulp-bump/index.d.ts b/types/gulp-bump/index.d.ts index a3e9f507f88e8e..1be0226e8f20a0 100644 --- a/types/gulp-bump/index.d.ts +++ b/types/gulp-bump/index.d.ts @@ -1,6 +1,6 @@ /// -import * as BumpRegex from "bump-regex"; +import BumpRegex = require("bump-regex"); declare function GulpBump(options?: BumpRegex.Options): NodeJS.ReadWriteStream; diff --git a/types/gulp-clean-css/gulp-clean-css-tests.ts b/types/gulp-clean-css/gulp-clean-css-tests.ts index f4df9ca3b900a9..592a75609dc5dc 100644 --- a/types/gulp-clean-css/gulp-clean-css-tests.ts +++ b/types/gulp-clean-css/gulp-clean-css-tests.ts @@ -1,5 +1,5 @@ import * as gulp from "gulp"; -import * as gulpCleanCSS from "gulp-clean-css"; +import gulpCleanCSS from "gulp-clean-css"; // gulp gulp.src("/foo").pipe(gulpCleanCSS()); diff --git a/types/gulp-clean-css/tsconfig.json b/types/gulp-clean-css/tsconfig.json index 258844155a5095..cff0ba1fde9f40 100644 --- a/types/gulp-clean-css/tsconfig.json +++ b/types/gulp-clean-css/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/gulp-codecov/index.d.ts b/types/gulp-codecov/index.d.ts index a62346d6133d9b..d469fe7366a1eb 100644 --- a/types/gulp-codecov/index.d.ts +++ b/types/gulp-codecov/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); declare namespace gulpCodecov { interface CodecovOptions { diff --git a/types/gulp-connect/index.d.ts b/types/gulp-connect/index.d.ts index f048748e6d8c8e..29a93157908849 100644 --- a/types/gulp-connect/index.d.ts +++ b/types/gulp-connect/index.d.ts @@ -1,4 +1,4 @@ -import * as connectModule from "connect"; +import connectModule = require("connect"); import * as http from "http"; import * as https from "https"; diff --git a/types/gulp-filter/index.d.ts b/types/gulp-filter/index.d.ts index 1386873acf8c56..0af5b93deb700d 100644 --- a/types/gulp-filter/index.d.ts +++ b/types/gulp-filter/index.d.ts @@ -1,7 +1,7 @@ /// import File = require("vinyl"); -import * as Minimatch from "minimatch"; +import Minimatch = require("minimatch"); declare namespace filter { interface FileFunction { diff --git a/types/gulp-flatmap/index.d.ts b/types/gulp-flatmap/index.d.ts index 567a9678b8e40f..23320b757af018 100644 --- a/types/gulp-flatmap/index.d.ts +++ b/types/gulp-flatmap/index.d.ts @@ -1,4 +1,4 @@ -import * as File from "vinyl"; +import File = require("vinyl"); export = gulp_flatmap; diff --git a/types/gulp-html-prettify/tsconfig.json b/types/gulp-html-prettify/tsconfig.json index 5a68735cb00302..0a1b1e12afcb4b 100644 --- a/types/gulp-html-prettify/tsconfig.json +++ b/types/gulp-html-prettify/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/gulp-image-resize/index.d.ts b/types/gulp-image-resize/index.d.ts index b28308a441a5ed..a58cb753d2e373 100644 --- a/types/gulp-image-resize/index.d.ts +++ b/types/gulp-image-resize/index.d.ts @@ -1,7 +1,7 @@ /// -import * as gm from "gm"; -import * as stream from "stream"; +import gm = require("gm"); +import stream = require("stream"); export = GulpImageResize; diff --git a/types/gulp-imagemin/tsconfig.json b/types/gulp-imagemin/tsconfig.json index 5385e4e0e59bf3..d14074cbd03229 100644 --- a/types/gulp-imagemin/tsconfig.json +++ b/types/gulp-imagemin/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/gulp-live-server/gulp-live-server-tests.ts b/types/gulp-live-server/gulp-live-server-tests.ts index 985857495db9ac..0a6f5d553465b2 100644 --- a/types/gulp-live-server/gulp-live-server-tests.ts +++ b/types/gulp-live-server/gulp-live-server-tests.ts @@ -1,4 +1,4 @@ -import * as gls from "gulp-live-server"; +import gls from "gulp-live-server"; // $ExpectType GLSStatic gls(["command"]); diff --git a/types/gulp-live-server/tsconfig.json b/types/gulp-live-server/tsconfig.json index cb8c5fd34393b0..2233c8cc0a7a0f 100644 --- a/types/gulp-live-server/tsconfig.json +++ b/types/gulp-live-server/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/gulp-load-plugins/gulp-load-plugins-tests.ts b/types/gulp-load-plugins/gulp-load-plugins-tests.ts index 05c62bef0562d2..2bcdff969d3177 100644 --- a/types/gulp-load-plugins/gulp-load-plugins-tests.ts +++ b/types/gulp-load-plugins/gulp-load-plugins-tests.ts @@ -1,4 +1,4 @@ -import * as gulp from "gulp"; +import gulp from "gulp"; import gulpConcat = require("gulp-concat"); import gulpLoadPlugins = require("gulp-load-plugins"); diff --git a/types/gulp-minify-css/index.d.ts b/types/gulp-minify-css/index.d.ts index efc86942657bde..e5d5bf2372c2c7 100644 --- a/types/gulp-minify-css/index.d.ts +++ b/types/gulp-minify-css/index.d.ts @@ -1,6 +1,6 @@ /// -import * as CleanCSS from "clean-css"; +import CleanCSS = require("clean-css"); declare function minifyCSS(options?: CleanCSS.Options): NodeJS.ReadWriteStream; diff --git a/types/gulp-minify/gulp-minify-tests.ts b/types/gulp-minify/gulp-minify-tests.ts index 3b02a41e3d6983..2f9ac5d11c0b5d 100644 --- a/types/gulp-minify/gulp-minify-tests.ts +++ b/types/gulp-minify/gulp-minify-tests.ts @@ -1,5 +1,5 @@ import * as gulp from "gulp"; -import * as minify from "gulp-minify"; +import minify from "gulp-minify"; gulp.task("minify-1", () => { gulp.src("./src").pipe(minify()).pipe(gulp.dest("./out")); diff --git a/types/gulp-minify/tsconfig.json b/types/gulp-minify/tsconfig.json index df9444ee9ed6de..92799e0f1a7683 100644 --- a/types/gulp-minify/tsconfig.json +++ b/types/gulp-minify/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/gulp-muxml/index.d.ts b/types/gulp-muxml/index.d.ts index 16b9b7ad17eda7..cd0a7725c5a837 100644 --- a/types/gulp-muxml/index.d.ts +++ b/types/gulp-muxml/index.d.ts @@ -1,6 +1,6 @@ /// -import * as muxml from "muxml"; +import muxml = require("muxml"); import { Transform } from "stream"; declare function gulpMuxml(opts: muxml.Options): Transform; diff --git a/types/gulp-postcss/gulp-postcss-tests.ts b/types/gulp-postcss/gulp-postcss-tests.ts index 273397fe04fa0d..b8d75235b1810a 100644 --- a/types/gulp-postcss/gulp-postcss-tests.ts +++ b/types/gulp-postcss/gulp-postcss-tests.ts @@ -1,5 +1,5 @@ import * as gulp from "gulp"; -import * as Vinyl from "vinyl"; +import Vinyl from "vinyl"; import postcss = require("gulp-postcss"); const postCssPlugins: any[] = []; diff --git a/types/gulp-postcss/tsconfig.json b/types/gulp-postcss/tsconfig.json index 8ce5c6a263a375..f43a851a2e8978 100644 --- a/types/gulp-postcss/tsconfig.json +++ b/types/gulp-postcss/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/gulp-pug-linter/gulp-pug-linter-tests.ts b/types/gulp-pug-linter/gulp-pug-linter-tests.ts index 8e3c78d76bf5b3..6bff17cd9efabc 100644 --- a/types/gulp-pug-linter/gulp-pug-linter-tests.ts +++ b/types/gulp-pug-linter/gulp-pug-linter-tests.ts @@ -1,5 +1,5 @@ import gulp = require("gulp"); -import * as gulpPugLinter from "gulp-pug-linter"; +import gulpPugLinter from "gulp-pug-linter"; gulp.task("lint:template__default", () => ( gulp diff --git a/types/gulp-pug-linter/tsconfig.json b/types/gulp-pug-linter/tsconfig.json index 165fc2ad3bbaff..0002888ba23ecd 100644 --- a/types/gulp-pug-linter/tsconfig.json +++ b/types/gulp-pug-linter/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/gulp-rename/index.d.ts b/types/gulp-rename/index.d.ts index 1e807914e3816d..11b3e9aa4ee84a 100644 --- a/types/gulp-rename/index.d.ts +++ b/types/gulp-rename/index.d.ts @@ -1,5 +1,5 @@ /// -import * as File from "vinyl"; +import File = require("vinyl"); declare namespace rename { interface ParsedPath { diff --git a/types/gulp-responsive-images/index.d.ts b/types/gulp-responsive-images/index.d.ts index 19499c2509a363..355d1e48b5ec46 100644 --- a/types/gulp-responsive-images/index.d.ts +++ b/types/gulp-responsive-images/index.d.ts @@ -1,8 +1,8 @@ /// -import * as gm from "gm"; +import gm = require("gm"); import { Options as RenameOptions, ParsedPath } from "gulp-rename"; -import * as stream from "stream"; +import stream = require("stream"); export = GulpResponsiveImage; diff --git a/types/gulp-sequence/gulp-sequence-tests.ts b/types/gulp-sequence/gulp-sequence-tests.ts index 9d33ccebb943d9..042993418573d8 100644 --- a/types/gulp-sequence/gulp-sequence-tests.ts +++ b/types/gulp-sequence/gulp-sequence-tests.ts @@ -1,5 +1,5 @@ import * as gulp from "gulp"; -import * as seq from "gulp-sequence"; +import seq from "gulp-sequence"; seq.use(gulp).use(gulp).use(gulp); diff --git a/types/gulp-sequence/tsconfig.json b/types/gulp-sequence/tsconfig.json index a2490ce0627eea..cff7287e1488f0 100644 --- a/types/gulp-sequence/tsconfig.json +++ b/types/gulp-sequence/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "target": "es6", "lib": [ "es6" diff --git a/types/gulp-stylint/gulp-stylint-tests.ts b/types/gulp-stylint/gulp-stylint-tests.ts index 37bdd17e4ad6d3..77245c22f4962a 100644 --- a/types/gulp-stylint/gulp-stylint-tests.ts +++ b/types/gulp-stylint/gulp-stylint-tests.ts @@ -1,5 +1,5 @@ import gulp = require("gulp"); -import * as gulpStylint from "gulp-stylint"; +import gulpStylint from "gulp-stylint"; gulp.task("default", () => { return gulp.src("src/*.styl") diff --git a/types/gulp-stylint/tsconfig.json b/types/gulp-stylint/tsconfig.json index 565ea43914c401..d6549297e1723a 100644 --- a/types/gulp-stylint/tsconfig.json +++ b/types/gulp-stylint/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/gulp-svgmin/index.d.ts b/types/gulp-svgmin/index.d.ts index 81814a93c094de..2781f7b683cbca 100644 --- a/types/gulp-svgmin/index.d.ts +++ b/types/gulp-svgmin/index.d.ts @@ -2,7 +2,7 @@ import SVGO = require("svgo"); import { Transform } from "stream"; -import * as File from "vinyl"; +import File = require("vinyl"); export = GulpSvgmin; diff --git a/types/gulp-template/index.d.ts b/types/gulp-template/index.d.ts index 9c0ca39cea86ca..7e59ede229d0b6 100644 --- a/types/gulp-template/index.d.ts +++ b/types/gulp-template/index.d.ts @@ -1,7 +1,7 @@ /// -import * as _ from "lodash"; -import * as stream from "stream"; +import _ = require("lodash"); +import stream = require("stream"); declare function gulpTemplate(data: any, options: _.TemplateOptions): stream.Transform; diff --git a/types/gulp-watch/index.d.ts b/types/gulp-watch/index.d.ts index 1ea79bf2a4b561..1f864ce625ea8f 100644 --- a/types/gulp-watch/index.d.ts +++ b/types/gulp-watch/index.d.ts @@ -1,6 +1,6 @@ /// -import * as File from "vinyl"; +import File = require("vinyl"); import { SrcOptions } from "vinyl-fs"; interface IOptions extends SrcOptions { diff --git a/types/gulp/index.d.ts b/types/gulp/index.d.ts index 5a3f26e5f7144d..14b2472ecaf115 100644 --- a/types/gulp/index.d.ts +++ b/types/gulp/index.d.ts @@ -1,7 +1,7 @@ import * as chokidar from "chokidar"; import * as fs from "fs"; import { Duplex } from "stream"; -import * as Undertaker from "undertaker"; +import Undertaker = require("undertaker"); import * as vfs from "vinyl-fs"; declare namespace GulpClient { diff --git a/types/gulp/test/index.ts b/types/gulp/test/index.ts index 84b8c429bfcd60..e87a26b257ad29 100644 --- a/types/gulp/test/index.ts +++ b/types/gulp/test/index.ts @@ -1,5 +1,5 @@ import * as gulp from "gulp"; -import * as registry from "undertaker-registry"; +import registry from "undertaker-registry"; const minify: () => any = () => {}; const jade: () => any = () => {}; diff --git a/types/gunzip-maybe/index.d.ts b/types/gunzip-maybe/index.d.ts index df0bf41508a727..6a4bfa5d061701 100644 --- a/types/gunzip-maybe/index.d.ts +++ b/types/gunzip-maybe/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); declare function gunzip(maxRecursion?: number): stream.Transform; diff --git a/types/gunzip-maybe/tsconfig.json b/types/gunzip-maybe/tsconfig.json index 9c52f9d07d18a3..a8ea72f5681a37 100644 --- a/types/gunzip-maybe/tsconfig.json +++ b/types/gunzip-maybe/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/h2o2/tsconfig.json b/types/h2o2/tsconfig.json index ae1173dcacecd3..9997f0f1b86537 100644 --- a/types/h2o2/tsconfig.json +++ b/types/h2o2/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/hafas-client/tsconfig.json b/types/hafas-client/tsconfig.json index 2b0b61d7bce216..6fc5b3e7fe8abc 100644 --- a/types/hafas-client/tsconfig.json +++ b/types/hafas-client/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/halogen/test/clip-loader.tsx b/types/halogen/test/clip-loader.tsx index 2ae00a47a193d7..7ef1eb777df368 100644 --- a/types/halogen/test/clip-loader.tsx +++ b/types/halogen/test/clip-loader.tsx @@ -1,4 +1,4 @@ -import * as Halogen from "halogen"; +import Halogen from "halogen"; import * as React from "react"; class HalogenTests_ClipLoader_withNoProps extends React.Component { diff --git a/types/halogen/test/fade-loader.tsx b/types/halogen/test/fade-loader.tsx index 99c4fef03475b2..42b95e6abe830f 100644 --- a/types/halogen/test/fade-loader.tsx +++ b/types/halogen/test/fade-loader.tsx @@ -1,4 +1,4 @@ -import * as Halogen from "halogen"; +import Halogen from "halogen"; import * as React from "react"; class HalogenTests_FadeLoader_withNoProps extends React.Component { diff --git a/types/halogen/test/pacman-loader.tsx b/types/halogen/test/pacman-loader.tsx index 6809b0bf86a22c..aa71ef9647aaa6 100644 --- a/types/halogen/test/pacman-loader.tsx +++ b/types/halogen/test/pacman-loader.tsx @@ -1,4 +1,4 @@ -import * as Halogen from "halogen"; +import Halogen from "halogen"; import * as React from "react"; class HalogenTests_PacmanLoader_withNoProps extends React.Component { diff --git a/types/halogen/test/rotate-loader.tsx b/types/halogen/test/rotate-loader.tsx index 7b2d148d3b5198..1502fe2b740f45 100644 --- a/types/halogen/test/rotate-loader.tsx +++ b/types/halogen/test/rotate-loader.tsx @@ -1,4 +1,4 @@ -import * as Halogen from "halogen"; +import Halogen from "halogen"; import * as React from "react"; class HalogenTests_RotateLoader_withNoProps extends React.Component { diff --git a/types/halogenium/test/clip-loader.tsx b/types/halogenium/test/clip-loader.tsx index 9613366f2d3b99..11aa85063fc5a5 100644 --- a/types/halogenium/test/clip-loader.tsx +++ b/types/halogenium/test/clip-loader.tsx @@ -1,4 +1,4 @@ -import * as Halogenium from "halogenium"; +import Halogenium from "halogenium"; import * as React from "react"; class HalogenTests_ClipLoader_withNoProps extends React.Component { diff --git a/types/halogenium/test/fade-loader.tsx b/types/halogenium/test/fade-loader.tsx index e74683e681506d..2ca7d083d6f844 100644 --- a/types/halogenium/test/fade-loader.tsx +++ b/types/halogenium/test/fade-loader.tsx @@ -1,4 +1,4 @@ -import * as Halogenium from "halogenium"; +import Halogenium from "halogenium"; import * as React from "react"; class HalogenTests_FadeLoader_withNoProps extends React.Component { diff --git a/types/halogenium/test/pacman-loader.tsx b/types/halogenium/test/pacman-loader.tsx index 21d8f1742b99f1..fcde3c26fa4f12 100644 --- a/types/halogenium/test/pacman-loader.tsx +++ b/types/halogenium/test/pacman-loader.tsx @@ -1,4 +1,4 @@ -import * as Halogenium from "halogenium"; +import Halogenium from "halogenium"; import * as React from "react"; class HalogenTests_PacmanLoader_withNoProps extends React.Component { diff --git a/types/halogenium/test/rotate-loader.tsx b/types/halogenium/test/rotate-loader.tsx index c8f00060734372..4b351dd6c32bc6 100644 --- a/types/halogenium/test/rotate-loader.tsx +++ b/types/halogenium/test/rotate-loader.tsx @@ -1,4 +1,4 @@ -import * as Halogenium from "halogenium"; +import Halogenium from "halogenium"; import * as React from "react"; class HalogenTests_RotateLoader_withNoProps extends React.Component { diff --git a/types/hamt_plus/tsconfig.json b/types/hamt_plus/tsconfig.json index 055706973e8490..444cf02abc3fa4 100644 --- a/types/hamt_plus/tsconfig.json +++ b/types/hamt_plus/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es2015" ], diff --git a/types/handlebars-helpers/handlebars-helpers-tests.ts b/types/handlebars-helpers/handlebars-helpers-tests.ts index d4db9809227c23..6b0dc5d08aa5a3 100644 --- a/types/handlebars-helpers/handlebars-helpers-tests.ts +++ b/types/handlebars-helpers/handlebars-helpers-tests.ts @@ -1,5 +1,5 @@ import * as Handlebars from "handlebars"; -import * as helpers from "handlebars-helpers"; +import helpers from "handlebars-helpers"; const handlebars = Handlebars.create(); diff --git a/types/handlebars-helpers/tsconfig.json b/types/handlebars-helpers/tsconfig.json index 74512aa7c6867d..a906a35024184a 100644 --- a/types/handlebars-helpers/tsconfig.json +++ b/types/handlebars-helpers/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es2015" ], diff --git a/types/hapi/index.d.ts b/types/hapi/index.d.ts index 825bcf2f02b3db..76fb2c4efaca4a 100644 --- a/types/hapi/index.d.ts +++ b/types/hapi/index.d.ts @@ -10,11 +10,11 @@ /// -import * as Boom from "boom"; +import Boom = require("boom"); import * as http from "http"; import * as https from "https"; import * as Shot from "shot"; -import * as stream from "stream"; +import stream = require("stream"); import * as url from "url"; import * as zlib from "zlib"; diff --git a/types/hapi/v17/index.d.ts b/types/hapi/v17/index.d.ts index 18bf1d4556a021..383ba35de97660 100644 --- a/types/hapi/v17/index.d.ts +++ b/types/hapi/v17/index.d.ts @@ -10,11 +10,11 @@ /// -import * as Boom from "boom"; +import Boom = require("boom"); import * as http from "http"; import * as https from "https"; import * as Shot from "shot"; -import * as stream from "stream"; +import stream = require("stream"); import * as url from "url"; import * as zlib from "zlib"; diff --git a/types/hapi__b64/index.d.ts b/types/hapi__b64/index.d.ts index b571c3f8b3a149..478fd0c42651b5 100644 --- a/types/hapi__b64/index.d.ts +++ b/types/hapi__b64/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export class Decoder extends stream.Transform {} export class Encoder extends stream.Transform {} diff --git a/types/hapi__call/tsconfig.json b/types/hapi__call/tsconfig.json index 700f0647736748..1ba147f5426c9a 100644 --- a/types/hapi__call/tsconfig.json +++ b/types/hapi__call/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/hapi__content/tsconfig.json b/types/hapi__content/tsconfig.json index 02e271a32e9b4b..50b1b3a1173d19 100644 --- a/types/hapi__content/tsconfig.json +++ b/types/hapi__content/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/hapi__glue/tsconfig.json b/types/hapi__glue/tsconfig.json index 858be0bd8f0dc9..89c7d5682263fb 100644 --- a/types/hapi__glue/tsconfig.json +++ b/types/hapi__glue/tsconfig.json @@ -12,8 +12,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "experimentalDecorators": true, - "esModuleInterop": true + "experimentalDecorators": true }, "files": [ "index.d.ts", diff --git a/types/hapi__h2o2/tsconfig.json b/types/hapi__h2o2/tsconfig.json index 500a8e032c98fc..fccc6fac737316 100644 --- a/types/hapi__h2o2/tsconfig.json +++ b/types/hapi__h2o2/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/hapi__hawk/hapi__hawk-tests.ts b/types/hapi__hawk/hapi__hawk-tests.ts index 35bde1f49814de..e962f1461be1f4 100644 --- a/types/hapi__hawk/hapi__hawk-tests.ts +++ b/types/hapi__hawk/hapi__hawk-tests.ts @@ -1,6 +1,6 @@ import * as Hawk from "@hapi/hawk"; import * as Http from "http"; -import * as request from "request"; +import request from "request"; const credentialsFunc = (): Hawk.server.Credentials => { const credentials: Hawk.server.Credentials = { diff --git a/types/hapi__hawk/lib/client.d.ts b/types/hapi__hawk/lib/client.d.ts index 8eede6ac269919..3f4c5d009af036 100755 --- a/types/hapi__hawk/lib/client.d.ts +++ b/types/hapi__hawk/lib/client.d.ts @@ -1,5 +1,5 @@ import * as http from "http"; -import * as request from "request"; +import request = require("request"); import * as Crypto from "./crypto"; export interface Credentials { diff --git a/types/hapi__hawk/lib/server.d.ts b/types/hapi__hawk/lib/server.d.ts index d8d67573e16edf..3b2cbdb2d7f4bc 100755 --- a/types/hapi__hawk/lib/server.d.ts +++ b/types/hapi__hawk/lib/server.d.ts @@ -1,5 +1,5 @@ import * as http from "http"; -import * as request from "request"; +import request = require("request"); import { Message } from "./client"; import * as Crypto from "./crypto"; diff --git a/types/hapi__hawk/tsconfig.json b/types/hapi__hawk/tsconfig.json index e8907e938f4bfa..ffd4ee87cf6051 100644 --- a/types/hapi__hawk/tsconfig.json +++ b/types/hapi__hawk/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "dom", "es6" diff --git a/types/hapi__pez/index.d.ts b/types/hapi__pez/index.d.ts index 1a0928a4c0a068..2791cf206e26c4 100644 --- a/types/hapi__pez/index.d.ts +++ b/types/hapi__pez/index.d.ts @@ -1,5 +1,5 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export interface PezOptions extends stream.WritableOptions { boundary: string; diff --git a/types/hapi__pez/tsconfig.json b/types/hapi__pez/tsconfig.json index 0412feb9549595..6ae7fd41ca827e 100644 --- a/types/hapi__pez/tsconfig.json +++ b/types/hapi__pez/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/hapi__subtext/tsconfig.json b/types/hapi__subtext/tsconfig.json index bac39a9560296d..92d43df609f434 100644 --- a/types/hapi__subtext/tsconfig.json +++ b/types/hapi__subtext/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/happypack/happypack-tests.ts b/types/happypack/happypack-tests.ts index 278cf23dad1489..d24824cdd4fe82 100644 --- a/types/happypack/happypack-tests.ts +++ b/types/happypack/happypack-tests.ts @@ -1,4 +1,4 @@ -import * as happyPack from "happypack"; +import happyPack from "happypack"; const ref: happyPack = new happyPack({ id: "1", diff --git a/types/happypack/tsconfig.json b/types/happypack/tsconfig.json index b8dc1ba783c38f..16b88c75830da4 100644 --- a/types/happypack/tsconfig.json +++ b/types/happypack/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/hard-source-webpack-plugin/hard-source-webpack-plugin-tests.ts b/types/hard-source-webpack-plugin/hard-source-webpack-plugin-tests.ts index d40d5db2cea86c..6a0f17b8a0e5e5 100644 --- a/types/hard-source-webpack-plugin/hard-source-webpack-plugin-tests.ts +++ b/types/hard-source-webpack-plugin/hard-source-webpack-plugin-tests.ts @@ -1,5 +1,5 @@ import { ChildProcess, ForkOptions } from "child_process"; -import * as HardSourceWebpackPlugin from "hard-source-webpack-plugin"; +import HardSourceWebpackPlugin from "hard-source-webpack-plugin"; import * as webpack from "webpack"; new HardSourceWebpackPlugin({ diff --git a/types/hard-source-webpack-plugin/index.d.ts b/types/hard-source-webpack-plugin/index.d.ts index f344b9195f7fbc..b2ebc19a52d113 100644 --- a/types/hard-source-webpack-plugin/index.d.ts +++ b/types/hard-source-webpack-plugin/index.d.ts @@ -1,5 +1,5 @@ import { ChildProcess, ForkOptions } from "child_process"; -import * as webpack from "webpack"; +import webpack = require("webpack"); declare class hard_source_webpack_plugin { constructor(options?: Options); diff --git a/types/hard-source-webpack-plugin/tsconfig.json b/types/hard-source-webpack-plugin/tsconfig.json index 782a6f13d75dc1..7a8b9fcedc2b51 100644 --- a/types/hard-source-webpack-plugin/tsconfig.json +++ b/types/hard-source-webpack-plugin/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/harmon/harmon-tests.ts b/types/harmon/harmon-tests.ts index e22ccb5435a5d0..b6e9bc7aeff4d7 100644 --- a/types/harmon/harmon-tests.ts +++ b/types/harmon/harmon-tests.ts @@ -1,4 +1,4 @@ -import * as harmonBinary from "harmon"; +import harmonBinary from "harmon"; type Select = harmonBinary.Select; const select1: Select = { func: () => {}, query: "query1" }; diff --git a/types/harmon/tsconfig.json b/types/harmon/tsconfig.json index f6cdaf6910de8a..6fa68e386eb178 100644 --- a/types/harmon/tsconfig.json +++ b/types/harmon/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/harmony-proxy/harmony-proxy-tests.ts b/types/harmony-proxy/harmony-proxy-tests.ts index f42540388d5a0a..e0315509f1f69b 100644 --- a/types/harmony-proxy/harmony-proxy-tests.ts +++ b/types/harmony-proxy/harmony-proxy-tests.ts @@ -1,4 +1,4 @@ -import * as Proxy from "harmony-proxy"; +import Proxy from "harmony-proxy"; interface IKatana { use: () => void; diff --git a/types/harmony-proxy/tsconfig.json b/types/harmony-proxy/tsconfig.json index 02c33fe536b576..c777a0dd4132ea 100644 --- a/types/harmony-proxy/tsconfig.json +++ b/types/harmony-proxy/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/hash-stream/index.d.ts b/types/hash-stream/index.d.ts index 0c63b53407e47c..420b970f48df94 100644 --- a/types/hash-stream/index.d.ts +++ b/types/hash-stream/index.d.ts @@ -1,5 +1,5 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export = hashStream; diff --git a/types/hasher/tsconfig.json b/types/hasher/tsconfig.json index 42d5c264499c58..4449be14cce2bd 100644 --- a/types/hasher/tsconfig.json +++ b/types/hasher/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/hashring/hashring-tests.ts b/types/hashring/hashring-tests.ts index 038c4875573333..e2dbd59471e0ed 100644 --- a/types/hashring/hashring-tests.ts +++ b/types/hashring/hashring-tests.ts @@ -1,4 +1,4 @@ -import * as HashRing from "hashring"; +import HashRing from "hashring"; const ring = new HashRing( [ diff --git a/types/hashring/tsconfig.json b/types/hashring/tsconfig.json index 7f2e3094088d25..ec2453cd040b35 100644 --- a/types/hashring/tsconfig.json +++ b/types/hashring/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/hawk/hawk-tests.ts b/types/hawk/hawk-tests.ts index 3e89ab92cf2124..feab2fffadddec 100644 --- a/types/hawk/hawk-tests.ts +++ b/types/hawk/hawk-tests.ts @@ -1,6 +1,6 @@ import * as Hawk from "hawk"; import * as Http from "http"; -import * as Request from "request"; +import Request from "request"; { // Credentials lookup function diff --git a/types/hawk/lib/client.d.ts b/types/hawk/lib/client.d.ts index 8eede6ac269919..3f4c5d009af036 100755 --- a/types/hawk/lib/client.d.ts +++ b/types/hawk/lib/client.d.ts @@ -1,5 +1,5 @@ import * as http from "http"; -import * as request from "request"; +import request = require("request"); import * as Crypto from "./crypto"; export interface Credentials { diff --git a/types/hawk/tsconfig.json b/types/hawk/tsconfig.json index e0f139b2f4b927..ceb1d5ef67252e 100644 --- a/types/hawk/tsconfig.json +++ b/types/hawk/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "dom", "es6" diff --git a/types/heatmap.js/tsconfig.json b/types/heatmap.js/tsconfig.json index 596c19bb9a4484..9ef1de5209bcf1 100644 --- a/types/heatmap.js/tsconfig.json +++ b/types/heatmap.js/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/hellojs/tsconfig.json b/types/hellojs/tsconfig.json index 2d0970886f8e79..51ca57c0289136 100644 --- a/types/hellojs/tsconfig.json +++ b/types/hellojs/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/highcharts-ng/tsconfig.json b/types/highcharts-ng/tsconfig.json index 8d07ccdd4a8c2b..b1bb97578584d8 100644 --- a/types/highcharts-ng/tsconfig.json +++ b/types/highcharts-ng/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/hijackresponse/hijackresponse-tests.ts b/types/hijackresponse/hijackresponse-tests.ts index 4ec62c74118fd5..3dd9a0462d1cef 100644 --- a/types/hijackresponse/hijackresponse-tests.ts +++ b/types/hijackresponse/hijackresponse-tests.ts @@ -1,5 +1,5 @@ -import * as express from "express"; -import * as hijackResponse from "hijackresponse"; +import express from "express"; +import hijackResponse from "hijackresponse"; const app = express(); diff --git a/types/hijackresponse/tsconfig.json b/types/hijackresponse/tsconfig.json index fb653a06b17e31..c728f6819d6f30 100644 --- a/types/hijackresponse/tsconfig.json +++ b/types/hijackresponse/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/hippy__react/index.d.ts b/types/hippy__react/index.d.ts index db23bcac496a47..72e63df83f7cc6 100644 --- a/types/hippy__react/index.d.ts +++ b/types/hippy__react/index.d.ts @@ -1,5 +1,5 @@ import * as React from "react"; -import * as ReactReconciler from "react-reconciler"; +import ReactReconciler = require("react-reconciler"); // // Hippy Event diff --git a/types/host-validation/host-validation-tests.ts b/types/host-validation/host-validation-tests.ts index 0ea1332ffb5d66..fe244c169049e2 100644 --- a/types/host-validation/host-validation-tests.ts +++ b/types/host-validation/host-validation-tests.ts @@ -18,8 +18,8 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE // SOFTWARE. -import * as express from "express"; -import * as hostValidation from "host-validation"; +import express from "express"; +import hostValidation from "host-validation"; const app = express(); diff --git a/types/host-validation/tsconfig.json b/types/host-validation/tsconfig.json index 0de54e24437413..780e6815d9bb1b 100644 --- a/types/host-validation/tsconfig.json +++ b/types/host-validation/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/hotwired__turbo/tsconfig.json b/types/hotwired__turbo/tsconfig.json index 6e3ae19660f53f..baf9339dcf80cf 100644 --- a/types/hotwired__turbo/tsconfig.json +++ b/types/hotwired__turbo/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/howler/tsconfig.json b/types/howler/tsconfig.json index b4de049b870540..54c8f8585c2c8f 100644 --- a/types/howler/tsconfig.json +++ b/types/howler/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/hoxy/tsconfig.json b/types/hoxy/tsconfig.json index 15003ece76c92d..7ad6acaa28cda2 100644 --- a/types/hoxy/tsconfig.json +++ b/types/hoxy/tsconfig.json @@ -1,7 +1,6 @@ { "compilerOptions": { "target": "es6", - "esModuleInterop": true, "module": "node16", "lib": [ "es6" diff --git a/types/hpp/index.d.ts b/types/hpp/index.d.ts index 56e4a117958b7b..14087d31ff64f0 100644 --- a/types/hpp/index.d.ts +++ b/types/hpp/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); declare namespace hpp { interface Options { diff --git a/types/hsl-to-hex/tsconfig.json b/types/hsl-to-hex/tsconfig.json index 8c3e5ed71b51ef..83fde6d5712d72 100644 --- a/types/hsl-to-hex/tsconfig.json +++ b/types/hsl-to-hex/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/html-minifier-next/index.d.cts b/types/html-minifier-next/index.d.cts index 700856500068cc..02fbe6e80e05c7 100644 --- a/types/html-minifier-next/index.d.cts +++ b/types/html-minifier-next/index.d.cts @@ -1,5 +1,5 @@ -import type * as CleanCSS from "clean-css"; -import type * as RelateUrl from "relateurl"; +import CleanCSS = require("clean-css"); +import RelateUrl = require("relateurl"); import type * as Terser from "terser" with { "resolution-mode": "import" }; /** diff --git a/types/html-minifier/index.d.ts b/types/html-minifier/index.d.ts index 5a99502b703d04..3876e371c3b306 100644 --- a/types/html-minifier/index.d.ts +++ b/types/html-minifier/index.d.ts @@ -1,5 +1,5 @@ -import * as CleanCSS from "clean-css"; -import * as RelateUrl from "relateurl"; +import CleanCSS = require("clean-css"); +import RelateUrl = require("relateurl"); import * as UglifyJS from "uglify-js"; export function minify(text: string, options?: Options): string; diff --git a/types/html-minifier/v1/index.d.ts b/types/html-minifier/v1/index.d.ts index 31921dbd5b3c76..c9df78bda6b9cb 100644 --- a/types/html-minifier/v1/index.d.ts +++ b/types/html-minifier/v1/index.d.ts @@ -1,7 +1,7 @@ /// -import * as CleanCSS from "clean-css"; -import * as RelateUrl from "relateurl"; +import CleanCSS = require("clean-css"); +import RelateUrl = require("relateurl"); import * as UglifyJS from "uglify-js"; declare namespace HTMLMinifier { diff --git a/types/html-to-pdfmake/tsconfig.json b/types/html-to-pdfmake/tsconfig.json index 0355c0a36f725b..1d3b7b16e73d6b 100644 --- a/types/html-to-pdfmake/tsconfig.json +++ b/types/html-to-pdfmake/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "module": "node16", "lib": [ "es6", diff --git a/types/html4-id/tsconfig.json b/types/html4-id/tsconfig.json index 6875d9a204cca3..15cd8d90cfb8d9 100644 --- a/types/html4-id/tsconfig.json +++ b/types/html4-id/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/html_codesniffer/tsconfig.json b/types/html_codesniffer/tsconfig.json index 0aa82013d68d19..fc43d60bb33f6c 100644 --- a/types/html_codesniffer/tsconfig.json +++ b/types/html_codesniffer/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/htmlescape/htmlescape-tests.ts b/types/htmlescape/htmlescape-tests.ts index c3e174787c2a4b..d1abe655743854 100644 --- a/types/htmlescape/htmlescape-tests.ts +++ b/types/htmlescape/htmlescape-tests.ts @@ -1,5 +1,4 @@ -import * as htmlescape from "htmlescape"; -import { sanitize } from "htmlescape"; +import htmlescape, { sanitize } from "htmlescape"; // === '{"x":"a\\u0026\\u003c\\u003e\\u2028\\u2029"}' htmlescape({ x: "a&<>\u2028\u2029" }); diff --git a/types/htmlescape/tsconfig.json b/types/htmlescape/tsconfig.json index e567542e809ba2..22c969544ee68e 100644 --- a/types/htmlescape/tsconfig.json +++ b/types/htmlescape/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/http-auth/test/http-auth-tests.proxy.ts b/types/http-auth/test/http-auth-tests.proxy.ts index 5f8da8eed56694..4e0a47ef637c54 100644 --- a/types/http-auth/test/http-auth-tests.proxy.ts +++ b/types/http-auth/test/http-auth-tests.proxy.ts @@ -1,7 +1,7 @@ -import * as fs from "fs"; -import * as http from "http"; -import * as auth from "http-auth"; -import * as httpProxy from "http-proxy"; +import fs from "fs"; +import http from "http"; +import auth from "http-auth"; +import httpProxy from "http-proxy"; const basic = auth.basic({ realm: "Simon Area.", diff --git a/types/http-auth/tsconfig.json b/types/http-auth/tsconfig.json index fd7e4347791596..35819e51439b9e 100644 --- a/types/http-auth/tsconfig.json +++ b/types/http-auth/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/http-build-query/tsconfig.json b/types/http-build-query/tsconfig.json index 9916d522e7d61c..73bc77a7904be0 100644 --- a/types/http-build-query/tsconfig.json +++ b/types/http-build-query/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/http-proxy/http-proxy-tests.ts b/types/http-proxy/http-proxy-tests.ts index 3ce48a28882e9b..aa75e1bd6ff784 100644 --- a/types/http-proxy/http-proxy-tests.ts +++ b/types/http-proxy/http-proxy-tests.ts @@ -1,6 +1,6 @@ import * as express from "express"; import * as http from "http"; -import * as HttpProxy from "http-proxy"; +import HttpProxy from "http-proxy"; const proxy = new HttpProxy({ changeOrigin: true, diff --git a/types/http-proxy/index.d.ts b/types/http-proxy/index.d.ts index 0bbdb70985324f..24809ef82c07af 100644 --- a/types/http-proxy/index.d.ts +++ b/types/http-proxy/index.d.ts @@ -1,10 +1,10 @@ /// -import * as events from "events"; +import events = require("events"); import * as http from "http"; import * as https from "https"; import * as net from "net"; -import * as stream from "stream"; +import stream = require("stream"); import * as url from "url"; interface ProxyTargetDetailed { diff --git a/types/http-proxy/tsconfig.json b/types/http-proxy/tsconfig.json index 604e58820344a6..e205910c7cb80f 100644 --- a/types/http-proxy/tsconfig.json +++ b/types/http-proxy/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/http-rx/tsconfig.json b/types/http-rx/tsconfig.json index 8c267176ac9dc0..377e548a06308f 100644 --- a/types/http-rx/tsconfig.json +++ b/types/http-rx/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/human-interval/human-interval-tests.ts b/types/human-interval/human-interval-tests.ts index faec88c42b95bf..34ddc024abcb55 100644 --- a/types/human-interval/human-interval-tests.ts +++ b/types/human-interval/human-interval-tests.ts @@ -1,4 +1,4 @@ -import * as humanInterval from "human-interval"; +import humanInterval from "human-interval"; function testHumanInterval() { const value1 = humanInterval("one minute"); diff --git a/types/human-interval/tsconfig.json b/types/human-interval/tsconfig.json index 1d2ce15be01cff..09e2f20d6c5b45 100644 --- a/types/human-interval/tsconfig.json +++ b/types/human-interval/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/humps/tsconfig.json b/types/humps/tsconfig.json index 23c4aac8dba701..dff995e4e5554b 100644 --- a/types/humps/tsconfig.json +++ b/types/humps/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/hunspell-spellchecker/hunspell-spellchecker-tests.ts b/types/hunspell-spellchecker/hunspell-spellchecker-tests.ts index f81a2cb168d6fe..e14bdcd661f272 100644 --- a/types/hunspell-spellchecker/hunspell-spellchecker-tests.ts +++ b/types/hunspell-spellchecker/hunspell-spellchecker-tests.ts @@ -1,5 +1,5 @@ import { readFileSync } from "fs"; -import * as Spellchecker from "hunspell-spellchecker"; +import Spellchecker from "hunspell-spellchecker"; const spellchecker = new Spellchecker(); diff --git a/types/hunspell-spellchecker/tsconfig.json b/types/hunspell-spellchecker/tsconfig.json index 01d1ebaa656b28..24504a50d458ee 100644 --- a/types/hunspell-spellchecker/tsconfig.json +++ b/types/hunspell-spellchecker/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/hyco-ws/hyco-ws-tests.ts b/types/hyco-ws/hyco-ws-tests.ts index 14fb32e05b4ef7..95350656144bde 100644 --- a/types/hyco-ws/hyco-ws-tests.ts +++ b/types/hyco-ws/hyco-ws-tests.ts @@ -1,5 +1,5 @@ import * as AzureRelay from "hyco-ws"; -import * as WebSocket from "ws"; +import WebSocket from "ws"; const wss = AzureRelay.createRelayedServer( { diff --git a/types/hyco-ws/index.d.ts b/types/hyco-ws/index.d.ts index 75b8e12345bb84..1745424847eb9f 100644 --- a/types/hyco-ws/index.d.ts +++ b/types/hyco-ws/index.d.ts @@ -1,7 +1,7 @@ /// import { EventEmitter } from "events"; -import * as WebSocket from "ws"; +import WebSocket = require("ws"); export class HybridConnectionWebSocketServer extends EventEmitter { constructor(options: any); diff --git a/types/hydra-box/tsconfig.json b/types/hydra-box/tsconfig.json index 1e4aa167ad965b..26f14fa33c500d 100644 --- a/types/hydra-box/tsconfig.json +++ b/types/hydra-box/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/hyperscript/hyperscript-tests.ts b/types/hyperscript/hyperscript-tests.ts index 1dab2cc48d0207..165dc83f22cda5 100644 --- a/types/hyperscript/hyperscript-tests.ts +++ b/types/hyperscript/hyperscript-tests.ts @@ -1,4 +1,4 @@ -import * as h from "hyperscript"; +import h from "hyperscript"; // Test/example code adapted from https://github.com/dominictarr/hyperscript/blob/master/README.md diff --git a/types/hyperscript/tsconfig.json b/types/hyperscript/tsconfig.json index 90db6dbc8c6f5f..257e9655372962 100644 --- a/types/hyperscript/tsconfig.json +++ b/types/hyperscript/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/hyphen/tsconfig.json b/types/hyphen/tsconfig.json index 611ee60b8caae5..64180e67762670 100644 --- a/types/hyphen/tsconfig.json +++ b/types/hyphen/tsconfig.json @@ -7,8 +7,7 @@ "strict": true, "noEmit": true, "forceConsistentCasingInFileNames": true, - "types": [], - "esModuleInterop": true + "types": [] }, "files": [ "index.d.ts", diff --git a/types/i18next-node-fs-backend/i18next-node-fs-backend-tests.ts b/types/i18next-node-fs-backend/i18next-node-fs-backend-tests.ts index e3f36690499e6f..064c12197bd509 100644 --- a/types/i18next-node-fs-backend/i18next-node-fs-backend-tests.ts +++ b/types/i18next-node-fs-backend/i18next-node-fs-backend-tests.ts @@ -1,5 +1,5 @@ import i18next from "i18next"; -import * as Backend from "i18next-node-fs-backend"; +import Backend from "i18next-node-fs-backend"; var options = { backend: { diff --git a/types/i18next-node-fs-backend/tsconfig.json b/types/i18next-node-fs-backend/tsconfig.json index 52e20b210169eb..c80d1e71032a45 100644 --- a/types/i18next-node-fs-backend/tsconfig.json +++ b/types/i18next-node-fs-backend/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/iitc/core/iitctypes.d.ts b/types/iitc/core/iitctypes.d.ts index 6dab822329a40b..e607fadbeb04c8 100644 --- a/types/iitc/core/iitctypes.d.ts +++ b/types/iitc/core/iitctypes.d.ts @@ -1,6 +1,6 @@ import * as L from "leaflet"; import "../leafletExtentions"; -import * as jQuery from "jquery"; +import jQuery = require("jquery"); export type PortalGUID = string; export type LinkGUID = string; diff --git a/types/iitc/core/main.d.ts b/types/iitc/core/main.d.ts index bb278183b230a0..2072558e983f17 100644 --- a/types/iitc/core/main.d.ts +++ b/types/iitc/core/main.d.ts @@ -1,4 +1,4 @@ -import * as jQuery from "jquery"; +import jQuery = require("jquery"); import { FieldGUID, IITC, LinkGUID, PortalGUID } from "./iitctypes"; import { Intel } from "./inteltypes"; import { MapDataRequest } from "./map_data_request"; diff --git a/types/image-blob-reduce/image-blob-reduce-tests.ts b/types/image-blob-reduce/image-blob-reduce-tests.ts index 1839d37775a33e..7828e2562f5e94 100644 --- a/types/image-blob-reduce/image-blob-reduce-tests.ts +++ b/types/image-blob-reduce/image-blob-reduce-tests.ts @@ -1,4 +1,4 @@ -import * as imageBlobReduce from "image-blob-reduce"; +import imageBlobReduce from "image-blob-reduce"; // no options // $ExpectType ImageBlobReduce diff --git a/types/image-blob-reduce/tsconfig.json b/types/image-blob-reduce/tsconfig.json index b8a03d66504a7b..c25b20b41e3c84 100644 --- a/types/image-blob-reduce/tsconfig.json +++ b/types/image-blob-reduce/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/imagemin-gifsicle/tsconfig.json b/types/imagemin-gifsicle/tsconfig.json index 6ee2e7953f679a..ed50311ec46d20 100644 --- a/types/imagemin-gifsicle/tsconfig.json +++ b/types/imagemin-gifsicle/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/imagemin-jpegtran/tsconfig.json b/types/imagemin-jpegtran/tsconfig.json index 97226cdca70128..fb6c2990aac4da 100644 --- a/types/imagemin-jpegtran/tsconfig.json +++ b/types/imagemin-jpegtran/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/imagemin-mozjpeg/tsconfig.json b/types/imagemin-mozjpeg/tsconfig.json index 1793a3ee20e765..c5c92348dea83c 100644 --- a/types/imagemin-mozjpeg/tsconfig.json +++ b/types/imagemin-mozjpeg/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/imagemin-optipng/tsconfig.json b/types/imagemin-optipng/tsconfig.json index 26408c50b896f3..18e8789e2b29e0 100644 --- a/types/imagemin-optipng/tsconfig.json +++ b/types/imagemin-optipng/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/imagemin-svgo/tsconfig.json b/types/imagemin-svgo/tsconfig.json index cff11ce0705d29..9eb588bdad3dd0 100644 --- a/types/imagemin-svgo/tsconfig.json +++ b/types/imagemin-svgo/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/imagemin-upng/tsconfig.json b/types/imagemin-upng/tsconfig.json index e6533c1c9a9eec..9b316515a2b069 100644 --- a/types/imagemin-upng/tsconfig.json +++ b/types/imagemin-upng/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/imagemin-webp/tsconfig.json b/types/imagemin-webp/tsconfig.json index 43a95b8ec417d9..5141f173e3984b 100644 --- a/types/imagemin-webp/tsconfig.json +++ b/types/imagemin-webp/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/imagemin-zopfli/tsconfig.json b/types/imagemin-zopfli/tsconfig.json index c182cc99248a46..7d6f4ae73f4c47 100644 --- a/types/imagemin-zopfli/tsconfig.json +++ b/types/imagemin-zopfli/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/imperium/tsconfig.json b/types/imperium/tsconfig.json index e566a5e45e55a0..eaa16a449293f1 100644 --- a/types/imperium/tsconfig.json +++ b/types/imperium/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/inboxsdk/tsconfig.json b/types/inboxsdk/tsconfig.json index 65a3a267201783..f5175f65d27134 100644 --- a/types/inboxsdk/tsconfig.json +++ b/types/inboxsdk/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/indy-sdk/tsconfig.json b/types/indy-sdk/tsconfig.json index 2075b66f9f55db..4767c56dd9525f 100644 --- a/types/indy-sdk/tsconfig.json +++ b/types/indy-sdk/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/inert/inert-tests.ts b/types/inert/inert-tests.ts index 00d27db6e4b277..d0799b3d58e656 100644 --- a/types/inert/inert-tests.ts +++ b/types/inert/inert-tests.ts @@ -1,7 +1,7 @@ import { Lifecycle, Server } from "hapi"; import * as inert from "inert"; -import * as path from "path"; +import path from "path"; const server = new Server({ port: 3000, diff --git a/types/infinite-scroll/tsconfig.json b/types/infinite-scroll/tsconfig.json index 8ebee1436e849d..0a9bfc15be4bdb 100644 --- a/types/infinite-scroll/tsconfig.json +++ b/types/infinite-scroll/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/inflation/inflation-tests.ts b/types/inflation/inflation-tests.ts index b2670ea9d76f5b..705dcab43b122a 100644 --- a/types/inflation/inflation-tests.ts +++ b/types/inflation/inflation-tests.ts @@ -1,6 +1,6 @@ import { createServer } from "http"; -import * as inflate from "inflation"; +import inflate from "inflation"; createServer((req, res) => { inflate(req).pipe(res); diff --git a/types/inflation/tsconfig.json b/types/inflation/tsconfig.json index 2d49f3dd3a9834..a8c519994bed2b 100644 --- a/types/inflation/tsconfig.json +++ b/types/inflation/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/ink-big-text/ink-big-text-tests.tsx b/types/ink-big-text/ink-big-text-tests.tsx index 07af6865a72747..432e410721bafc 100644 --- a/types/ink-big-text/ink-big-text-tests.tsx +++ b/types/ink-big-text/ink-big-text-tests.tsx @@ -1,5 +1,5 @@ -import * as BigText from "ink-big-text"; -import * as Gradient from "ink-gradient"; +import BigText from "ink-big-text"; +import Gradient from "ink-gradient"; import * as React from "react"; function test() { diff --git a/types/ink-big-text/tsconfig.json b/types/ink-big-text/tsconfig.json index 2294dbb9936658..646d109dc22a77 100644 --- a/types/ink-big-text/tsconfig.json +++ b/types/ink-big-text/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "jsx": "react", "lib": [ "es6" diff --git a/types/ink-box/ink-box-tests.tsx b/types/ink-box/ink-box-tests.tsx index 522f6a5b1bb8a6..2858aecdfaabb8 100644 --- a/types/ink-box/ink-box-tests.tsx +++ b/types/ink-box/ink-box-tests.tsx @@ -1,4 +1,4 @@ -import * as Box from "ink-box"; +import Box from "ink-box"; import * as React from "react"; const test1 = () => { diff --git a/types/ink-box/tsconfig.json b/types/ink-box/tsconfig.json index 2ffbbd3892d1a0..6b64597a70812d 100644 --- a/types/ink-box/tsconfig.json +++ b/types/ink-box/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "jsx": "react", "lib": [ "es6" diff --git a/types/ink-divider/ink-divider-tests.tsx b/types/ink-divider/ink-divider-tests.tsx index a782ec99852fa5..ccdf5900ac8777 100644 --- a/types/ink-divider/ink-divider-tests.tsx +++ b/types/ink-divider/ink-divider-tests.tsx @@ -1,4 +1,4 @@ -import * as Divider from "ink-divider"; +import Divider from "ink-divider"; import * as React from "react"; const test1 = () => { diff --git a/types/ink-divider/tsconfig.json b/types/ink-divider/tsconfig.json index 418ebf4bbc75ff..dc3582edfbb9ab 100644 --- a/types/ink-divider/tsconfig.json +++ b/types/ink-divider/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "jsx": "react", "lib": [ "es6" diff --git a/types/ink-gradient/ink-gradient-tests.tsx b/types/ink-gradient/ink-gradient-tests.tsx index 433f4b0f4ed60c..1542e107e19d86 100644 --- a/types/ink-gradient/ink-gradient-tests.tsx +++ b/types/ink-gradient/ink-gradient-tests.tsx @@ -1,5 +1,5 @@ -import * as Box from "ink-box"; -import * as Gradient from "ink-gradient"; +import Box from "ink-box"; +import Gradient from "ink-gradient"; import * as React from "react"; function test() { diff --git a/types/ink-gradient/tsconfig.json b/types/ink-gradient/tsconfig.json index 5f8d7bb467ed41..dc80798820f576 100644 --- a/types/ink-gradient/tsconfig.json +++ b/types/ink-gradient/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "jsx": "react", "lib": [ "es6" diff --git a/types/inline-critical/tsconfig.json b/types/inline-critical/tsconfig.json index e8734f1d8b9016..5a3b7474e066ec 100644 --- a/types/inline-critical/tsconfig.json +++ b/types/inline-critical/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/inquirer/tsconfig.json b/types/inquirer/tsconfig.json index 19a769b084ced7..4e1cedfd85b94b 100644 --- a/types/inquirer/tsconfig.json +++ b/types/inquirer/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/insert-module-globals/index.d.ts b/types/insert-module-globals/index.d.ts index fb5925b44f8f10..55f457ab24acd2 100644 --- a/types/insert-module-globals/index.d.ts +++ b/types/insert-module-globals/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export = InsertModuleGlobals; diff --git a/types/intersects/intersects-tests.ts b/types/intersects/intersects-tests.ts index f7473c21969a2c..b0541058313d97 100644 --- a/types/intersects/intersects-tests.ts +++ b/types/intersects/intersects-tests.ts @@ -1,6 +1,6 @@ import { circleEllipse, pointLine, polygonBox } from "intersects"; import * as box from "intersects/box"; -import * as line from "intersects/line"; +import line from "intersects/line"; import circleOutlineCircle = require("intersects/circleOutline-circle"); const res = polygonBox([2, 0, 4, 2, 0, 2], 1, 1, 2, 2); diff --git a/types/intl-tel-input/tsconfig.json b/types/intl-tel-input/tsconfig.json index eb628cd4f4b751..0c0a90dfdceddc 100644 --- a/types/intl-tel-input/tsconfig.json +++ b/types/intl-tel-input/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/ipcheck/ipcheck-tests.ts b/types/ipcheck/ipcheck-tests.ts index aba17b6bc2b4fc..a87aa03c6dcdd2 100644 --- a/types/ipcheck/ipcheck-tests.ts +++ b/types/ipcheck/ipcheck-tests.ts @@ -1,4 +1,4 @@ -import * as ipcheck from "ipcheck"; +import ipcheck from "ipcheck"; // @ts-expect-error ipcheck.match(1, 1); diff --git a/types/ipcheck/tsconfig.json b/types/ipcheck/tsconfig.json index 8c0cb4ba458c49..0d50eac4b0ce82 100644 --- a/types/ipcheck/tsconfig.json +++ b/types/ipcheck/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/ipp-printer/ipp-printer-tests.ts b/types/ipp-printer/ipp-printer-tests.ts index fa00b1c9652393..35c8a723d31b31 100644 --- a/types/ipp-printer/ipp-printer-tests.ts +++ b/types/ipp-printer/ipp-printer-tests.ts @@ -1,4 +1,4 @@ -import * as Printer from "ipp-printer"; +import Printer from "ipp-printer"; import * as fs from "node:fs"; const printer = new Printer({ diff --git a/types/ipp-printer/tsconfig.json b/types/ipp-printer/tsconfig.json index ae187af4db838b..a3cd2122b318f3 100644 --- a/types/ipp-printer/tsconfig.json +++ b/types/ipp-printer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/is-even/tsconfig.json b/types/is-even/tsconfig.json index 0099fb552e4153..e1f6a5f54a3171 100644 --- a/types/is-even/tsconfig.json +++ b/types/is-even/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/is-glob/is-glob-tests.ts b/types/is-glob/is-glob-tests.ts index 4e3642f5719ccc..4e4510efd9d5a0 100644 --- a/types/is-glob/is-glob-tests.ts +++ b/types/is-glob/is-glob-tests.ts @@ -1,4 +1,4 @@ -import * as isGlob from "is-glob"; +import isGlob from "is-glob"; // $ExpectType boolean isGlob(); diff --git a/types/is-glob/tsconfig.json b/types/is-glob/tsconfig.json index 96e2f9903a0f99..80eec0a507e8c2 100644 --- a/types/is-glob/tsconfig.json +++ b/types/is-glob/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/is-gzip/tsconfig.json b/types/is-gzip/tsconfig.json index 640b17353c9fc3..8227c151a096eb 100644 --- a/types/is-gzip/tsconfig.json +++ b/types/is-gzip/tsconfig.json @@ -9,7 +9,6 @@ "strictFunctionTypes": true, "strictNullChecks": true, "types": [], - "esModuleInterop": true, "noEmit": true, "forceConsistentCasingInFileNames": true }, diff --git a/types/is-windows/tsconfig.json b/types/is-windows/tsconfig.json index 84d274183c1f9d..791bca6999a07c 100644 --- a/types/is-windows/tsconfig.json +++ b/types/is-windows/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/is/tsconfig.json b/types/is/tsconfig.json index 654f2bd43b78d4..480a8c9a215489 100644 --- a/types/is/tsconfig.json +++ b/types/is/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/isarray/tsconfig.json b/types/isarray/tsconfig.json index 62ac7547ad1d86..e128a6724f32db 100644 --- a/types/isarray/tsconfig.json +++ b/types/isarray/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/isomorphic-fetch/isomorphic-fetch-tests.ts b/types/isomorphic-fetch/isomorphic-fetch-tests.ts index 6e3a388341e62f..b1b0bec7cbefba 100644 --- a/types/isomorphic-fetch/isomorphic-fetch-tests.ts +++ b/types/isomorphic-fetch/isomorphic-fetch-tests.ts @@ -1,5 +1,5 @@ import fetchImportedViaCommonJS = require("isomorphic-fetch"); -import * as fetchImportedViaES6Module from "isomorphic-fetch"; +import fetchImportedViaES6Module from "isomorphic-fetch"; function test_isomorphicFetchTestCases_ambient() { expectSuccess(fetch("http://localhost:3000/good"), "Good response"); diff --git a/types/isomorphic-fetch/tsconfig.json b/types/isomorphic-fetch/tsconfig.json index 4c4eea853ee68a..b74f52f3fd3c2e 100644 --- a/types/isomorphic-fetch/tsconfig.json +++ b/types/isomorphic-fetch/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/isomorphic-form-data/tsconfig.json b/types/isomorphic-form-data/tsconfig.json index 540234f9c42c3b..963f7eab2b4f4d 100644 --- a/types/isomorphic-form-data/tsconfig.json +++ b/types/isomorphic-form-data/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/isomorphic-git__lightning-fs/tsconfig.json b/types/isomorphic-git__lightning-fs/tsconfig.json index 0f3ee6a3a39dde..ff82d98d2b3c8c 100644 --- a/types/isomorphic-git__lightning-fs/tsconfig.json +++ b/types/isomorphic-git__lightning-fs/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/isotope-layout/tsconfig.json b/types/isotope-layout/tsconfig.json index 52eb77ffdb1678..45c5bb1f3448b0 100644 --- a/types/isotope-layout/tsconfig.json +++ b/types/isotope-layout/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/istanbul-lib-hook/tsconfig.json b/types/istanbul-lib-hook/tsconfig.json index 9524e6abd07a32..147784de6d24fc 100644 --- a/types/istanbul-lib-hook/tsconfig.json +++ b/types/istanbul-lib-hook/tsconfig.json @@ -12,7 +12,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/isurl/tsconfig.json b/types/isurl/tsconfig.json index e1d4daed60498b..620d2a966b7677 100644 --- a/types/isurl/tsconfig.json +++ b/types/isurl/tsconfig.json @@ -1,7 +1,10 @@ { "compilerOptions": { - "module": "commonjs", - "lib": ["es6", "dom"], + "module": "node16", + "lib": [ + "es6", + "dom" + ], "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, @@ -10,5 +13,8 @@ "noEmit": true, "forceConsistentCasingInFileNames": true }, - "files": ["index.d.ts", "isurl-tests.ts"] + "files": [ + "index.d.ts", + "isurl-tests.ts" + ] } diff --git a/types/itowns/test/3DTiles25D.ts b/types/itowns/test/3DTiles25D.ts index 8f864ed14e8a43..cabcbdad25e210 100644 --- a/types/itowns/test/3DTiles25D.ts +++ b/types/itowns/test/3DTiles25D.ts @@ -1,5 +1,5 @@ import * as itowns from "itowns"; -import * as proj4 from "proj4"; +import proj4 from "proj4"; import * as THREE from "three"; // Define crs projection that we will use (taken from https://epsg.io/3946, Proj4js section) diff --git a/types/itowns/tsconfig.json b/types/itowns/tsconfig.json index bfb29aa8212873..b5046b021fc991 100644 --- a/types/itowns/tsconfig.json +++ b/types/itowns/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/itunesconnectanalytics/index.d.ts b/types/itunesconnectanalytics/index.d.ts index 1e6b38f893d100..474902281b7934 100644 --- a/types/itunesconnectanalytics/index.d.ts +++ b/types/itunesconnectanalytics/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); export class Itunes { constructor(username: string, password: string, options: ItunesOptions); diff --git a/types/iv-viewer/tsconfig.json b/types/iv-viewer/tsconfig.json index 8f4f3ab2a7a381..0097f035075702 100644 --- a/types/iv-viewer/tsconfig.json +++ b/types/iv-viewer/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jasmine-ajax/tsconfig.json b/types/jasmine-ajax/tsconfig.json index b135ba55ea8cbe..b082c8d6d6f63a 100644 --- a/types/jasmine-ajax/tsconfig.json +++ b/types/jasmine-ajax/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/jasmine-data-provider/jasmine-data-provider-tests.ts b/types/jasmine-data-provider/jasmine-data-provider-tests.ts index 7e041e8c41e30f..8629339a31180c 100644 --- a/types/jasmine-data-provider/jasmine-data-provider-tests.ts +++ b/types/jasmine-data-provider/jasmine-data-provider-tests.ts @@ -1,4 +1,4 @@ -import * as using from "jasmine-data-provider"; +import using from "jasmine-data-provider"; import "jasmine"; declare const calculator: any; diff --git a/types/jasmine-data-provider/tsconfig.json b/types/jasmine-data-provider/tsconfig.json index c8a6838839f266..8574b8f80ccec0 100644 --- a/types/jasmine-data-provider/tsconfig.json +++ b/types/jasmine-data-provider/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/jasmine-expect-jsx/tsconfig.json b/types/jasmine-expect-jsx/tsconfig.json index 18baa1170c2b20..5652cec30bad39 100644 --- a/types/jasmine-expect-jsx/tsconfig.json +++ b/types/jasmine-expect-jsx/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jasmine/tsconfig.json b/types/jasmine/tsconfig.json index 72398d39538d07..6eac9fdbf48ee1 100644 --- a/types/jasmine/tsconfig.json +++ b/types/jasmine/tsconfig.json @@ -9,7 +9,6 @@ "es6", "dom" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/jasmine/v2/tsconfig.json b/types/jasmine/v2/tsconfig.json index 375baaebe0007e..7329e6a1dfceda 100644 --- a/types/jasmine/v2/tsconfig.json +++ b/types/jasmine/v2/tsconfig.json @@ -15,6 +15,7 @@ "strictFunctionTypes": false, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/jasmine/v3/tsconfig.json b/types/jasmine/v3/tsconfig.json index 72398d39538d07..6eac9fdbf48ee1 100644 --- a/types/jasmine/v3/tsconfig.json +++ b/types/jasmine/v3/tsconfig.json @@ -9,7 +9,6 @@ "es6", "dom" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/jasmine/v4/tsconfig.json b/types/jasmine/v4/tsconfig.json index 72398d39538d07..6eac9fdbf48ee1 100644 --- a/types/jasmine/v4/tsconfig.json +++ b/types/jasmine/v4/tsconfig.json @@ -9,7 +9,6 @@ "es6", "dom" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/jest-environment-puppeteer/tsconfig.json b/types/jest-environment-puppeteer/tsconfig.json index 659b137b7a5c0d..5241eede0b9b3f 100644 --- a/types/jest-environment-puppeteer/tsconfig.json +++ b/types/jest-environment-puppeteer/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jest-json-schema/index.d.ts b/types/jest-json-schema/index.d.ts index 3e10a54728b422..64298bab46f708 100644 --- a/types/jest-json-schema/index.d.ts +++ b/types/jest-json-schema/index.d.ts @@ -1,5 +1,5 @@ /// -import * as ajv from "ajv"; +import ajv = require("ajv"); declare global { namespace jest { diff --git a/types/jfs/jfs-tests.ts b/types/jfs/jfs-tests.ts index 856fb60ca23dbf..84e35eda64b8d5 100644 --- a/types/jfs/jfs-tests.ts +++ b/types/jfs/jfs-tests.ts @@ -1,4 +1,4 @@ -import * as Store from "jfs"; +import Store from "jfs"; interface TestStore { foo: string; diff --git a/types/jfs/tsconfig.json b/types/jfs/tsconfig.json index 40fb00d02486ee..b12ec4494e97db 100644 --- a/types/jfs/tsconfig.json +++ b/types/jfs/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/jira-client/jira-client-tests.ts b/types/jira-client/jira-client-tests.ts index e66618bba85a94..818c668a67eaf8 100644 --- a/types/jira-client/jira-client-tests.ts +++ b/types/jira-client/jira-client-tests.ts @@ -1,4 +1,4 @@ -import * as JiraApi from "jira-client"; +import JiraApi from "jira-client"; // Initialize const jira = new JiraApi({ diff --git a/types/jira-client/tsconfig.json b/types/jira-client/tsconfig.json index a953b2788cba53..4b7f9246711d11 100644 --- a/types/jira-client/tsconfig.json +++ b/types/jira-client/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/jmuxer/jmuxer-tests.ts b/types/jmuxer/jmuxer-tests.ts index 9c46d08546d30d..8f2a8dbed8ad63 100644 --- a/types/jmuxer/jmuxer-tests.ts +++ b/types/jmuxer/jmuxer-tests.ts @@ -1,4 +1,4 @@ -import * as JMuxer from "jmuxer"; +import JMuxer from "jmuxer"; const video: Uint8Array = new Uint8Array([1, 2, 3, 4, 5]); diff --git a/types/jmuxer/tsconfig.json b/types/jmuxer/tsconfig.json index 97b3398bebd224..4a545920b934b9 100644 --- a/types/jmuxer/tsconfig.json +++ b/types/jmuxer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/jquery-animate-scroll/tsconfig.json b/types/jquery-animate-scroll/tsconfig.json index 63e4bc3f271bca..c9413a14deb59b 100644 --- a/types/jquery-animate-scroll/tsconfig.json +++ b/types/jquery-animate-scroll/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery-countto/tsconfig.json b/types/jquery-countto/tsconfig.json index 658f18099de500..e51169e6da2000 100644 --- a/types/jquery-countto/tsconfig.json +++ b/types/jquery-countto/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery-easy-loading/jquery-easy-loading-tests.ts b/types/jquery-easy-loading/jquery-easy-loading-tests.ts index f082d19180b594..76713f7dd15360 100644 --- a/types/jquery-easy-loading/jquery-easy-loading-tests.ts +++ b/types/jquery-easy-loading/jquery-easy-loading-tests.ts @@ -32,7 +32,7 @@ function test_commands() { .loading("toggle"); } -import * as factory from "jquery-easy-loading"; +import factory from "jquery-easy-loading"; function test_factory() { const $loading: JQueryStatic = factory(window, jQuery); diff --git a/types/jquery-easy-loading/tsconfig.json b/types/jquery-easy-loading/tsconfig.json index cf95b7d3e43890..d72c0ba1755d61 100644 --- a/types/jquery-easy-loading/tsconfig.json +++ b/types/jquery-easy-loading/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/jquery-focus-exit/tsconfig.json b/types/jquery-focus-exit/tsconfig.json index d40ae2b42b040b..105f0178a14aea 100644 --- a/types/jquery-focus-exit/tsconfig.json +++ b/types/jquery-focus-exit/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery-focusable/tsconfig.json b/types/jquery-focusable/tsconfig.json index 3714d4a3c39c2c..836f6efc35a229 100644 --- a/types/jquery-focusable/tsconfig.json +++ b/types/jquery-focusable/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery-gray/tsconfig.json b/types/jquery-gray/tsconfig.json index 325437df4890d6..4ff1addf403043 100644 --- a/types/jquery-gray/tsconfig.json +++ b/types/jquery-gray/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery-lazyload/tsconfig.json b/types/jquery-lazyload/tsconfig.json index 4136b78dfbb311..645eff6668287f 100644 --- a/types/jquery-lazyload/tsconfig.json +++ b/types/jquery-lazyload/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery-loading-overlay/tsconfig.json b/types/jquery-loading-overlay/tsconfig.json index b6680b312745dc..778b9a68a0d9cc 100644 --- a/types/jquery-loading-overlay/tsconfig.json +++ b/types/jquery-loading-overlay/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery-mouse-exit/tsconfig.json b/types/jquery-mouse-exit/tsconfig.json index 678486294d083e..33420fd64b998d 100644 --- a/types/jquery-mouse-exit/tsconfig.json +++ b/types/jquery-mouse-exit/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery-next-id/tsconfig.json b/types/jquery-next-id/tsconfig.json index 72ef37823da9fa..1363cb0947e9ee 100644 --- a/types/jquery-next-id/tsconfig.json +++ b/types/jquery-next-id/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery-slugify/tsconfig.json b/types/jquery-slugify/tsconfig.json index d44cc123f2c5db..9f4049eba1840a 100644 --- a/types/jquery-slugify/tsconfig.json +++ b/types/jquery-slugify/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery.appear/tsconfig.json b/types/jquery.appear/tsconfig.json index ff2973a0e65fe8..b7288d1e25a696 100644 --- a/types/jquery.appear/tsconfig.json +++ b/types/jquery.appear/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery.browser/tsconfig.json b/types/jquery.browser/tsconfig.json index 1d03578d9d876e..02220298244131 100644 --- a/types/jquery.browser/tsconfig.json +++ b/types/jquery.browser/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery.clientsidelogging/tsconfig.json b/types/jquery.clientsidelogging/tsconfig.json index 8f831ca1bd2509..32a6d4d3a628ad 100644 --- a/types/jquery.clientsidelogging/tsconfig.json +++ b/types/jquery.clientsidelogging/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/jquery.livestampjs/index.d.ts b/types/jquery.livestampjs/index.d.ts index e9faad08b99531..9f3f75e2c697ca 100644 --- a/types/jquery.livestampjs/index.d.ts +++ b/types/jquery.livestampjs/index.d.ts @@ -3,7 +3,7 @@ /// /// -import * as moment from "moment"; +import moment = require("moment"); export as namespace LivestampGlobal; diff --git a/types/jquery.livestampjs/jquery.livestampjs-tests.ts b/types/jquery.livestampjs/jquery.livestampjs-tests.ts index bf7c48b4ae1e8a..c8b4a8cb4979bb 100644 --- a/types/jquery.livestampjs/jquery.livestampjs-tests.ts +++ b/types/jquery.livestampjs/jquery.livestampjs-tests.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment from "moment"; $("#test1").livestamp(new Date("June 18, 1987")); $("#test2").livestamp(1362282933); diff --git a/types/jquery.livestampjs/tsconfig.json b/types/jquery.livestampjs/tsconfig.json index fdd2ee58a4da27..304d91c5ad0167 100644 --- a/types/jquery.livestampjs/tsconfig.json +++ b/types/jquery.livestampjs/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/jquery.pin/tsconfig.json b/types/jquery.pin/tsconfig.json index ec32c3e83b8d1e..90f4ee9092d967 100644 --- a/types/jquery.pin/tsconfig.json +++ b/types/jquery.pin/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/jquery/tsconfig.json b/types/jquery/tsconfig.json index 4270031785d4d2..ffbabab7d95278 100644 --- a/types/jquery/tsconfig.json +++ b/types/jquery/tsconfig.json @@ -12,7 +12,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/jquery/v1/tsconfig.json b/types/jquery/v1/tsconfig.json index dcea2b24184322..aaba4cce215444 100644 --- a/types/jquery/v1/tsconfig.json +++ b/types/jquery/v1/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/jquery/v2/tsconfig.json b/types/jquery/v2/tsconfig.json index 472f46589318ca..9c001fa2e90f46 100644 --- a/types/jquery/v2/tsconfig.json +++ b/types/jquery/v2/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/js-captcha/tsconfig.json b/types/js-captcha/tsconfig.json index b06795e17b0bb2..846abff6b86ec6 100644 --- a/types/js-captcha/tsconfig.json +++ b/types/js-captcha/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/js-priority-queue/js-priority-queue-tests.ts b/types/js-priority-queue/js-priority-queue-tests.ts index 26756ea7c9f1c1..3a912f808756ab 100644 --- a/types/js-priority-queue/js-priority-queue-tests.ts +++ b/types/js-priority-queue/js-priority-queue-tests.ts @@ -1,4 +1,4 @@ -import * as PriorityQueue from "js-priority-queue"; +import PriorityQueue from "js-priority-queue"; { var queue = new PriorityQueue({ comparator: (a, b) => b - a }); diff --git a/types/js-priority-queue/tsconfig.json b/types/js-priority-queue/tsconfig.json index 950c4249dc2781..674d5373d604c3 100644 --- a/types/js-priority-queue/tsconfig.json +++ b/types/js-priority-queue/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/js-schema/js-schema-tests.ts b/types/js-schema/js-schema-tests.ts index 3fbd368f626047..0023ae42cd487c 100644 --- a/types/js-schema/js-schema-tests.ts +++ b/types/js-schema/js-schema-tests.ts @@ -1,4 +1,4 @@ -import * as schema from "js-schema"; +import schema from "js-schema"; var Duck = schema({ // A duck swim: Function, // - can swim diff --git a/types/js-schema/tsconfig.json b/types/js-schema/tsconfig.json index 326d116085b8c8..1d5ba27dd6e076 100644 --- a/types/js-schema/tsconfig.json +++ b/types/js-schema/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/js-sha1/js-sha1-tests.ts b/types/js-sha1/js-sha1-tests.ts index d160fee1550369..137b0a6ac8534b 100644 --- a/types/js-sha1/js-sha1-tests.ts +++ b/types/js-sha1/js-sha1-tests.ts @@ -1,4 +1,4 @@ -import * as sha1 from "js-sha1"; +import sha1 from "js-sha1"; sha1("test"); // $ExpectType string diff --git a/types/js-sha1/tsconfig.json b/types/js-sha1/tsconfig.json index 7566e12fe8df26..a006efca4aa928 100644 --- a/types/js-sha1/tsconfig.json +++ b/types/js-sha1/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/js2coffee/js2coffee-tests.ts b/types/js2coffee/js2coffee-tests.ts index de86950de6c8cd..ef345ad648229c 100644 --- a/types/js2coffee/js2coffee-tests.ts +++ b/types/js2coffee/js2coffee-tests.ts @@ -1,4 +1,4 @@ -import * as js2coffee from "js2coffee"; +import js2coffee from "js2coffee"; const javaScriptFn = "function isUnique(v, i, a) {\n return a.indexOf(v) == i;\n}"; diff --git a/types/js2coffee/tsconfig.json b/types/js2coffee/tsconfig.json index 5227c354f5dc27..4ab04fd35c5dcc 100644 --- a/types/js2coffee/tsconfig.json +++ b/types/js2coffee/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/jsdom-global/tsconfig.json b/types/jsdom-global/tsconfig.json index 8fd9a1628f86a8..29b5aaff20ab6a 100644 --- a/types/jsdom-global/tsconfig.json +++ b/types/jsdom-global/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/jsdom-screenshot/tsconfig.json b/types/jsdom-screenshot/tsconfig.json index f55cb27224efb4..a0a7b9d268bcdd 100644 --- a/types/jsdom-screenshot/tsconfig.json +++ b/types/jsdom-screenshot/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/jsforce/salesforce-object.d.ts b/types/jsforce/salesforce-object.d.ts index adcc136540fec0..9352d5b36f50a6 100644 --- a/types/jsforce/salesforce-object.d.ts +++ b/types/jsforce/salesforce-object.d.ts @@ -1,4 +1,4 @@ -import * as stream from "stream"; +import stream = require("stream"); import { Batch, BatchResultInfo } from "./batch"; import { Callback, Connection, RestApiOptions } from "./connection"; diff --git a/types/json-rpc-ws/index.d.ts b/types/json-rpc-ws/index.d.ts index ed1c9e6f8e2331..bb2122a31b1262 100644 --- a/types/json-rpc-ws/index.d.ts +++ b/types/json-rpc-ws/index.d.ts @@ -1,4 +1,4 @@ -import * as ws from "ws"; +import ws = require("ws"); export function createServer(): Server; export function createClient(): Client; diff --git a/types/json-server/json-server-tests.ts b/types/json-server/json-server-tests.ts index ce8d461fdb6be3..397c768a6489f8 100644 --- a/types/json-server/json-server-tests.ts +++ b/types/json-server/json-server-tests.ts @@ -1,6 +1,6 @@ import * as jsonServer from "json-server"; -import * as lowdb from "lowdb"; -import * as FileSync from "lowdb/adapters/FileSync"; +import lowdb from "lowdb"; +import FileSync from "lowdb/adapters/FileSync"; const server = jsonServer.create(); diff --git a/types/json-server/tsconfig.json b/types/json-server/tsconfig.json index 7b297a0af1c5cf..d822ea305eb11a 100644 --- a/types/json-server/tsconfig.json +++ b/types/json-server/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "dom", "es6" @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/json-templates/tsconfig.json b/types/json-templates/tsconfig.json index bee9c29cf07074..f3667243ec13ec 100644 --- a/types/json-templates/tsconfig.json +++ b/types/json-templates/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/json-to-ast/tsconfig.json b/types/json-to-ast/tsconfig.json index 29a7c57d9eed03..08c38ddeca7f3d 100644 --- a/types/json-to-ast/tsconfig.json +++ b/types/json-to-ast/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/json2md/json2md-tests.ts b/types/json2md/json2md-tests.ts index 83ba6401db1b16..1a1c7edf48bcf4 100644 --- a/types/json2md/json2md-tests.ts +++ b/types/json2md/json2md-tests.ts @@ -1,4 +1,4 @@ -import * as json2md from "json2md"; +import json2md from "json2md"; declare function describe(desc: string, f: () => void): void; declare function it(desc: string, f: () => void): void; diff --git a/types/json2md/tsconfig.json b/types/json2md/tsconfig.json index 669b4451d13926..85ecb535c80956 100644 --- a/types/json2md/tsconfig.json +++ b/types/json2md/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/json2mq/json2mq-tests.ts b/types/json2mq/json2mq-tests.ts index e845c634defb8f..f308be7dbe978d 100644 --- a/types/json2mq/json2mq-tests.ts +++ b/types/json2mq/json2mq-tests.ts @@ -1,4 +1,4 @@ -import * as json2mq from "json2mq"; +import json2mq from "json2mq"; json2mq({ screen: true }); // -> 'screen' diff --git a/types/json2mq/tsconfig.json b/types/json2mq/tsconfig.json index cf687f536fe32c..0b260918d805e9 100644 --- a/types/json2mq/tsconfig.json +++ b/types/json2mq/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/jsoneditor/jsoneditor-tests.ts b/types/jsoneditor/jsoneditor-tests.ts index 2c27b228a75343..7493be38ff7fb2 100644 --- a/types/jsoneditor/jsoneditor-tests.ts +++ b/types/jsoneditor/jsoneditor-tests.ts @@ -1,4 +1,4 @@ -import * as Ajv from "ajv"; +import Ajv from "ajv"; import JSONEditor, { AutoCompleteOptions, EditableNode, JSONEditorMode, JSONEditorOptions } from "jsoneditor"; const autocomplete: AutoCompleteOptions = {}; diff --git a/types/jsoneditor/tsconfig.json b/types/jsoneditor/tsconfig.json index aec387bfe71811..d5d871bb088368 100644 --- a/types/jsoneditor/tsconfig.json +++ b/types/jsoneditor/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/jsonpath-plus/test/jsonpath-plus-module-tests.ts b/types/jsonpath-plus/test/jsonpath-plus-module-tests.ts index 7512a98db7371f..b0b1e86c27c888 100644 --- a/types/jsonpath-plus/test/jsonpath-plus-module-tests.ts +++ b/types/jsonpath-plus/test/jsonpath-plus-module-tests.ts @@ -1,4 +1,4 @@ -import * as JSONPath from "jsonpath-plus"; +import JSONPath from "jsonpath-plus"; let path: JSONPath.pathType = "."; path = [".", "//"]; diff --git a/types/jsonpath-plus/tsconfig.json b/types/jsonpath-plus/tsconfig.json index 35e3f6e3abb60a..728f4a5e720bd3 100644 --- a/types/jsonpath-plus/tsconfig.json +++ b/types/jsonpath-plus/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/jsontoxml/tsconfig.json b/types/jsontoxml/tsconfig.json index 67a56268aee206..5aae9f8b0c350e 100644 --- a/types/jsontoxml/tsconfig.json +++ b/types/jsontoxml/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/jsx-pdf/tsconfig.json b/types/jsx-pdf/tsconfig.json index f3a44ff5a70664..5e0d14a5aff5e6 100644 --- a/types/jsx-pdf/tsconfig.json +++ b/types/jsx-pdf/tsconfig.json @@ -11,7 +11,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "jsx": "react", "jsxFactory": "JsxPdf.createElement" }, diff --git a/types/jws/index.d.ts b/types/jws/index.d.ts index c85b092b2e8203..707f6597983d27 100644 --- a/types/jws/index.d.ts +++ b/types/jws/index.d.ts @@ -1,7 +1,7 @@ /// -import * as events from "events"; -import * as stream from "stream"; +import events = require("events"); +import stream = require("stream"); /** * (Synchronous) Return a JSON Web Signature for a header diff --git a/types/kalmanjs/tsconfig.json b/types/kalmanjs/tsconfig.json index ebcf072d5f38f0..a787ab64ce8b00 100644 --- a/types/kalmanjs/tsconfig.json +++ b/types/kalmanjs/tsconfig.json @@ -13,7 +13,9 @@ "forceConsistentCasingInFileNames": true, "esModuleInterop": true, "paths": { - "kalmanjs": ["./index.d.ts"] + "kalmanjs": [ + "./index.d.ts" + ] } }, "files": [ diff --git a/types/kap-plugin/index.d.ts b/types/kap-plugin/index.d.ts index cd72d194af707f..2c8c01020d9e76 100644 --- a/types/kap-plugin/index.d.ts +++ b/types/kap-plugin/index.d.ts @@ -1,5 +1,5 @@ import ElectronStore = require("electron-store"); -import * as got from "got"; +import got = require("got"); import { JSONSchema7 } from "json-schema"; export interface KapContext> { diff --git a/types/kap-plugin/tsconfig.json b/types/kap-plugin/tsconfig.json index 32fc4a13a1139e..7ae8188a6fad6a 100644 --- a/types/kap-plugin/tsconfig.json +++ b/types/kap-plugin/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/karma-sinon-chai/tsconfig.json b/types/karma-sinon-chai/tsconfig.json index ef776a5a4b2f9e..ffe7445c8a0374 100644 --- a/types/karma-sinon-chai/tsconfig.json +++ b/types/karma-sinon-chai/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/karma-webpack/index.d.ts b/types/karma-webpack/index.d.ts index 4e023d839e3a38..fb5b988b608c2c 100644 --- a/types/karma-webpack/index.d.ts +++ b/types/karma-webpack/index.d.ts @@ -1,5 +1,5 @@ import "karma"; -import * as Webpack from "webpack"; +import Webpack = require("webpack"); import { Logger, Reporter } from "webpack-dev-middleware"; declare module "karma" { diff --git a/types/kcors/index.d.ts b/types/kcors/index.d.ts index d927c586c22057..5c1cd0526893ea 100644 --- a/types/kcors/index.d.ts +++ b/types/kcors/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); declare function cors(options?: cors.Options): Koa.Middleware; export = cors; diff --git a/types/kdbush/v1/kdbush-tests.ts b/types/kdbush/v1/kdbush-tests.ts index 5ee6165fcbfc98..447e7dcafebd6c 100644 --- a/types/kdbush/v1/kdbush-tests.ts +++ b/types/kdbush/v1/kdbush-tests.ts @@ -1,5 +1,4 @@ -import * as kdbush from "kdbush"; -import { KDBush } from "kdbush"; +import kdbush, { KDBush } from "kdbush"; // API const points = [[110, 60], [130, 40]]; diff --git a/types/kdbush/v1/tsconfig.json b/types/kdbush/v1/tsconfig.json index 42a4ddfcc19dc5..04985d38f6f058 100644 --- a/types/kdbush/v1/tsconfig.json +++ b/types/kdbush/v1/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/keep-network__tbtc.js/tsconfig.json b/types/keep-network__tbtc.js/tsconfig.json index fc91387cc78705..f7b2bb70e1dc48 100644 --- a/types/keep-network__tbtc.js/tsconfig.json +++ b/types/keep-network__tbtc.js/tsconfig.json @@ -10,7 +10,6 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "esModuleInterop": true, "forceConsistentCasingInFileNames": true }, "files": [ diff --git a/types/keygrip/keygrip-tests.ts b/types/keygrip/keygrip-tests.ts index a2e4a90c16d946..a422bdf1218e66 100644 --- a/types/keygrip/keygrip-tests.ts +++ b/types/keygrip/keygrip-tests.ts @@ -1,4 +1,4 @@ -import * as Keygrip from "keygrip"; +import Keygrip from "keygrip"; const keys = Keygrip(["123"]); diff --git a/types/keygrip/tsconfig.json b/types/keygrip/tsconfig.json index a222101208dec6..b32627f76f92b1 100644 --- a/types/keygrip/tsconfig.json +++ b/types/keygrip/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/keymaster/tsconfig.json b/types/keymaster/tsconfig.json index 2ea2d0c5a97796..dbfd6751d70b36 100644 --- a/types/keymaster/tsconfig.json +++ b/types/keymaster/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/keypress.js/tsconfig.json b/types/keypress.js/tsconfig.json index 8ec346e1868926..2a5bf7808aa60d 100644 --- a/types/keypress.js/tsconfig.json +++ b/types/keypress.js/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/kind-of/tsconfig.json b/types/kind-of/tsconfig.json index 40aea26b341a32..47aa39d8633fcb 100644 --- a/types/kind-of/tsconfig.json +++ b/types/kind-of/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/knex-db-manager/tsconfig.json b/types/knex-db-manager/tsconfig.json index 893feb62ecb654..d024da4a628fc9 100644 --- a/types/knex-db-manager/tsconfig.json +++ b/types/knex-db-manager/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/knockout.mapping/tsconfig.json b/types/knockout.mapping/tsconfig.json index 491dc6b5a70396..3e1019856a023b 100644 --- a/types/knockout.mapping/tsconfig.json +++ b/types/knockout.mapping/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/knockout/tsconfig.json b/types/knockout/tsconfig.json index 2f15bfaa9e8d6a..4cb22b043c1283 100644 --- a/types/knockout/tsconfig.json +++ b/types/knockout/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/koa-basic-auth/index.d.ts b/types/koa-basic-auth/index.d.ts index 9ec60672b4e60d..f3d9b2a7ea96c7 100644 --- a/types/koa-basic-auth/index.d.ts +++ b/types/koa-basic-auth/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); declare function auth(opts: { name: string; diff --git a/types/koa-bodyparser/index.d.ts b/types/koa-bodyparser/index.d.ts index d0e6879ba6f9a7..26062f1ec7c23c 100644 --- a/types/koa-bodyparser/index.d.ts +++ b/types/koa-bodyparser/index.d.ts @@ -8,7 +8,7 @@ =============================================== */ -import * as Koa from "koa"; +import Koa = require("koa"); declare module "koa" { interface Request { diff --git a/types/koa-cache-control/index.d.ts b/types/koa-cache-control/index.d.ts index 936240b06de8ea..b8057d1b91fe43 100644 --- a/types/koa-cache-control/index.d.ts +++ b/types/koa-cache-control/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); declare function cacheControl(options?: { private?: boolean; diff --git a/types/koa-cash/index.d.ts b/types/koa-cash/index.d.ts index 4039b3629b5673..f6b16b4f079588 100644 --- a/types/koa-cash/index.d.ts +++ b/types/koa-cash/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); declare module "koa" { interface BaseContext { /** diff --git a/types/koa-compose/index.d.ts b/types/koa-compose/index.d.ts index 8182195bc81634..7b55f64c2d1ba6 100644 --- a/types/koa-compose/index.d.ts +++ b/types/koa-compose/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); declare function compose( middleware: [Koa.Middleware, Koa.Middleware], diff --git a/types/koa-compose/koa-compose-tests.ts b/types/koa-compose/koa-compose-tests.ts index 35294693132a4e..b75e2d43ee9b35 100644 --- a/types/koa-compose/koa-compose-tests.ts +++ b/types/koa-compose/koa-compose-tests.ts @@ -1,5 +1,5 @@ import compose = require("koa-compose"); -import * as Koa from "koa"; +import Koa from "koa"; const fn1: compose.Middleware = (context: any, next: () => Promise): Promise => Promise diff --git a/types/koa-compose/tsconfig.json b/types/koa-compose/tsconfig.json index ee65bbb9cdebb3..3ea0a1ce551c78 100644 --- a/types/koa-compose/tsconfig.json +++ b/types/koa-compose/tsconfig.json @@ -4,7 +4,7 @@ "koa-compose-tests.ts" ], "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/koa-compress/index.d.ts b/types/koa-compress/index.d.ts index b3191268c945a6..e5b63ea8a09d7b 100644 --- a/types/koa-compress/index.d.ts +++ b/types/koa-compress/index.d.ts @@ -10,7 +10,7 @@ /// /// -import * as Koa from "koa"; +import Koa = require("koa"); import * as zlib from "zlib"; /** diff --git a/types/koa-conditional-get/index.d.ts b/types/koa-conditional-get/index.d.ts index f4f2a0bcc3a9c2..0b9482db3b4268 100644 --- a/types/koa-conditional-get/index.d.ts +++ b/types/koa-conditional-get/index.d.ts @@ -1,4 +1,4 @@ -import * as koa from "koa"; +import koa = require("koa"); declare function koaConditionalGet(): koa.Middleware; diff --git a/types/koa-dec-router/tsconfig.json b/types/koa-dec-router/tsconfig.json index 7af937fe0867be..14e30dac83970a 100644 --- a/types/koa-dec-router/tsconfig.json +++ b/types/koa-dec-router/tsconfig.json @@ -11,8 +11,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "experimentalDecorators": true, - "esModuleInterop": true + "experimentalDecorators": true }, "files": [ "index.d.ts", diff --git a/types/koa-docs/koa-docs-tests.ts b/types/koa-docs/koa-docs-tests.ts index 17606023abc4f4..22a1de3bfe2bf1 100644 --- a/types/koa-docs/koa-docs-tests.ts +++ b/types/koa-docs/koa-docs-tests.ts @@ -1,6 +1,6 @@ -import * as Koa from "koa"; +import Koa from "koa"; import * as docs from "koa-docs"; -import * as Router from "koa-joi-router"; +import Router from "koa-joi-router"; const Joi = Router.Joi; const app = new Koa(); diff --git a/types/koa-docs/tsconfig.json b/types/koa-docs/tsconfig.json index cc0a946a03921e..7b551127e2e063 100644 --- a/types/koa-docs/tsconfig.json +++ b/types/koa-docs/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/koa-etag/index.d.ts b/types/koa-etag/index.d.ts index 29805c4f793bc9..76d2687dec46b9 100644 --- a/types/koa-etag/index.d.ts +++ b/types/koa-etag/index.d.ts @@ -1,5 +1,5 @@ -import * as etag from "etag"; -import * as koa from "koa"; +import etag = require("etag"); +import koa = require("koa"); declare function koaEtag(options?: etag.Options): koa.Middleware; diff --git a/types/koa-favicon/index.d.ts b/types/koa-favicon/index.d.ts index 38f499440ced0a..c9a76509ad3aae 100644 --- a/types/koa-favicon/index.d.ts +++ b/types/koa-favicon/index.d.ts @@ -8,7 +8,7 @@ =============================================== */ -import * as Koa from "koa"; +import Koa = require("koa"); /** * Returns a middleware serving the favicon found on the given path. diff --git a/types/koa-generic-session/index.d.ts b/types/koa-generic-session/index.d.ts index 39205709c6a428..ac1b90bb264ef0 100644 --- a/types/koa-generic-session/index.d.ts +++ b/types/koa-generic-session/index.d.ts @@ -1,5 +1,5 @@ -import * as Cookies from "cookies"; -import * as Koa from "koa"; +import Cookies = require("cookies"); +import Koa = require("koa"); declare namespace koaSession { interface Session { diff --git a/types/koa-hbs/index.d.ts b/types/koa-hbs/index.d.ts index 761e9c9e2b74ab..2e379dd84e88cb 100644 --- a/types/koa-hbs/index.d.ts +++ b/types/koa-hbs/index.d.ts @@ -1,6 +1,6 @@ /* =================== USAGE =================== - import * as Koa from "koa"; + import Koa = require("koa"); ....import hbs = require("koa-hbs"); var app = new Koa(); diff --git a/types/koa-joi-router-docs/koa-joi-router-docs-tests.ts b/types/koa-joi-router-docs/koa-joi-router-docs-tests.ts index 8e7eac7d85be98..93ec28665cafe9 100644 --- a/types/koa-joi-router-docs/koa-joi-router-docs-tests.ts +++ b/types/koa-joi-router-docs/koa-joi-router-docs-tests.ts @@ -1,5 +1,5 @@ -import * as Koa from "koa"; -import * as Router from "koa-joi-router"; +import Koa from "koa"; +import Router from "koa-joi-router"; import { SwaggerAPI } from "koa-joi-router-docs"; const Joi = Router.Joi; diff --git a/types/koa-joi-router-docs/tsconfig.json b/types/koa-joi-router-docs/tsconfig.json index 7844f013486560..03116fc6ebb5d3 100644 --- a/types/koa-joi-router-docs/tsconfig.json +++ b/types/koa-joi-router-docs/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/koa-joi-router/index.d.ts b/types/koa-joi-router/index.d.ts index b1cc13ad0c3e21..a198d643d7c04f 100644 --- a/types/koa-joi-router/index.d.ts +++ b/types/koa-joi-router/index.d.ts @@ -1,11 +1,11 @@ /// import { BusboyConfig } from "busboy"; -import * as CoBody from "co-body"; +import CoBody = require("co-body"); import * as http from "http"; import * as Joi from "joi"; -import * as Koa from "koa"; -import * as KoaRouter from "koa-router"; +import Koa = require("koa"); +import KoaRouter = require("koa-router"); declare module "koa" { interface Request { diff --git a/types/koa-json-error/index.d.ts b/types/koa-json-error/index.d.ts index 7737f693600a62..e36ac7b80a55f5 100644 --- a/types/koa-json-error/index.d.ts +++ b/types/koa-json-error/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); type JSONError = Error & { status: number }; diff --git a/types/koa-json/index.d.ts b/types/koa-json/index.d.ts index d221befead9032..72896b65677bb5 100644 --- a/types/koa-json/index.d.ts +++ b/types/koa-json/index.d.ts @@ -8,7 +8,7 @@ =============================================== */ -import * as Koa from "koa"; +import Koa = require("koa"); declare function json(opts?: { /** diff --git a/types/koa-log/index.d.ts b/types/koa-log/index.d.ts index 8d93060c14c185..ad21617d1d0701 100644 --- a/types/koa-log/index.d.ts +++ b/types/koa-log/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); declare function koaLog(type: string): Koa.Middleware; diff --git a/types/koa-log4/index.d.ts b/types/koa-log4/index.d.ts index 8db4ec247a003a..96cace59eb991f 100644 --- a/types/koa-log4/index.d.ts +++ b/types/koa-log4/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); import * as Log4js from "log4js"; export function koaLogger(logger4js: Log4js.Logger, optionsOrFormat?: Options | string): Koa.Middleware; diff --git a/types/koa-morgan/index.d.ts b/types/koa-morgan/index.d.ts index 9513b9bf4321a4..c939c1ddac085a 100644 --- a/types/koa-morgan/index.d.ts +++ b/types/koa-morgan/index.d.ts @@ -1,6 +1,6 @@ import { IncomingMessage, ServerResponse } from "http"; -import * as Koa from "koa"; -import * as originalMorgan from "morgan"; +import Koa = require("koa"); +import originalMorgan = require("morgan"); declare namespace morgan { interface FormatFn { diff --git a/types/koa-multer/index.d.ts b/types/koa-multer/index.d.ts index f675e94e0b5367..23d0d21379f728 100644 --- a/types/koa-multer/index.d.ts +++ b/types/koa-multer/index.d.ts @@ -23,7 +23,7 @@ */ import { IncomingMessage } from "http"; -import * as Koa from "koa"; +import Koa = require("koa"); declare namespace multer { interface File { diff --git a/types/koa-proxy/index.d.ts b/types/koa-proxy/index.d.ts index c181cc6d514aa4..81ac556b7a635e 100644 --- a/types/koa-proxy/index.d.ts +++ b/types/koa-proxy/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); declare namespace proxy { type RequestOptionFunc = (request: Koa.Request, opts: any) => any; diff --git a/types/koa-qs/index.d.ts b/types/koa-qs/index.d.ts index 1f4152e7d36ba4..c04bf385b0b356 100644 --- a/types/koa-qs/index.d.ts +++ b/types/koa-qs/index.d.ts @@ -1,4 +1,4 @@ -import * as koa from "koa"; +import koa = require("koa"); declare namespace koaQs { type ParseMode = "extended" | "strict" | "first"; diff --git a/types/koa-range/index.d.ts b/types/koa-range/index.d.ts index b479bbd0458175..7ecb07cae67919 100644 --- a/types/koa-range/index.d.ts +++ b/types/koa-range/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); declare const KoaRange: Koa.Middleware; declare namespace KoaRange {} export = KoaRange; diff --git a/types/koa-ratelimit/koa-ratelimit-tests.ts b/types/koa-ratelimit/koa-ratelimit-tests.ts index e75a817af30027..e9d20fb4b53b31 100644 --- a/types/koa-ratelimit/koa-ratelimit-tests.ts +++ b/types/koa-ratelimit/koa-ratelimit-tests.ts @@ -1,4 +1,4 @@ -import * as Redis from "ioredis"; +import Redis from "ioredis"; import Koa = require("koa"); import rateLimit = require("koa-ratelimit"); diff --git a/types/koa-ratelimit/tsconfig.json b/types/koa-ratelimit/tsconfig.json index cea6c10f57a1ce..1bd39e577b164e 100644 --- a/types/koa-ratelimit/tsconfig.json +++ b/types/koa-ratelimit/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "strictFunctionTypes": true + "strictFunctionTypes": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/koa-redis-cache/index.d.ts b/types/koa-redis-cache/index.d.ts index 66b2c6fc039ace..8d440c06f9e9f3 100644 --- a/types/koa-redis-cache/index.d.ts +++ b/types/koa-redis-cache/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); import * as Redis from "redis"; type onErrorCallback = (error: Error) => void; diff --git a/types/koa-redis-cache/koa-redis-cache-tests.ts b/types/koa-redis-cache/koa-redis-cache-tests.ts index 85ea4762b25c65..6379acbacead23 100644 --- a/types/koa-redis-cache/koa-redis-cache-tests.ts +++ b/types/koa-redis-cache/koa-redis-cache-tests.ts @@ -1,5 +1,5 @@ -import * as Koa from "koa"; -import * as cache from "koa-redis-cache"; +import Koa from "koa"; +import cache from "koa-redis-cache"; const app = new Koa(); diff --git a/types/koa-redis-cache/tsconfig.json b/types/koa-redis-cache/tsconfig.json index fe686b3c95f0fc..8bb981b19ba8da 100644 --- a/types/koa-redis-cache/tsconfig.json +++ b/types/koa-redis-cache/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/koa-route/index.d.ts b/types/koa-route/index.d.ts index 8ce50ddfa4b471..9290474b281944 100644 --- a/types/koa-route/index.d.ts +++ b/types/koa-route/index.d.ts @@ -1,5 +1,5 @@ -import * as Koa from "koa"; -import * as pathToRegexp from "path-to-regexp"; +import Koa = require("koa"); +import pathToRegexp = require("path-to-regexp"); declare namespace KoaRoute { type Path = string | RegExp | Array; diff --git a/types/koa-router/index.d.ts b/types/koa-router/index.d.ts index aa5c5b18304664..6fa373c4f9696c 100644 --- a/types/koa-router/index.d.ts +++ b/types/koa-router/index.d.ts @@ -5,7 +5,7 @@ =============================================== */ -import * as Koa from "koa"; +import Koa = require("koa"); declare namespace Router { export interface IRouterOptions { diff --git a/types/koa-safe-jsonp/index.d.ts b/types/koa-safe-jsonp/index.d.ts index 7cac60b800d8ea..cbcf94e906478b 100644 --- a/types/koa-safe-jsonp/index.d.ts +++ b/types/koa-safe-jsonp/index.d.ts @@ -1,5 +1,5 @@ -import * as jsonpBody from "jsonp-body"; -import * as Koa from "koa"; +import jsonpBody = require("jsonp-body"); +import Koa = require("koa"); declare namespace jsonp { interface Options extends jsonpBody.Options { diff --git a/types/koa-session-minimal/index.d.ts b/types/koa-session-minimal/index.d.ts index 50d691576b8145..d34965fc3f1c1f 100644 --- a/types/koa-session-minimal/index.d.ts +++ b/types/koa-session-minimal/index.d.ts @@ -1,6 +1,6 @@ /* =================== USAGE =================== - import * as Koa from "koa"; + import Koa = require("koa"); import session = require("koa-session-minimal"); const app = new Koa(); @@ -8,7 +8,7 @@ =============================================== */ -import * as cookies from "cookies"; +import cookies = require("cookies"); import * as Koa from "koa"; declare module "koa" { diff --git a/types/koa-subdomain/koa-subdomain-tests.ts b/types/koa-subdomain/koa-subdomain-tests.ts index df00cf4c5c9078..609d264e83bd93 100644 --- a/types/koa-subdomain/koa-subdomain-tests.ts +++ b/types/koa-subdomain/koa-subdomain-tests.ts @@ -1,6 +1,6 @@ -import * as Koa from "koa"; -import * as Router from "koa-router"; -import * as Subdomain from "koa-subdomain"; +import Koa from "koa"; +import Router from "koa-router"; +import Subdomain from "koa-subdomain"; const app = new Koa(); const router = new Router(); diff --git a/types/koa-subdomain/tsconfig.json b/types/koa-subdomain/tsconfig.json index 64caea5195bb16..4f2a5b1b6f60a0 100644 --- a/types/koa-subdomain/tsconfig.json +++ b/types/koa-subdomain/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/koa-websocket/index.d.ts b/types/koa-websocket/index.d.ts index 276f98d765b793..a1304053a5e366 100644 --- a/types/koa-websocket/index.d.ts +++ b/types/koa-websocket/index.d.ts @@ -2,7 +2,7 @@ import Koa = require("koa"); import compose = require("koa-compose"); import * as http from "http"; import * as https from "https"; -import * as ws from "ws"; +import ws = require("ws"); declare module "koa" { interface Context { diff --git a/types/koa-xml-body/index.d.ts b/types/koa-xml-body/index.d.ts index c9d78924ab78f2..d49e320587439c 100644 --- a/types/koa-xml-body/index.d.ts +++ b/types/koa-xml-body/index.d.ts @@ -12,7 +12,7 @@ =============================================== */ -import * as Koa from "koa"; +import Koa = require("koa"); import { ParserOptions as Xml2jsOptions } from "xml2js"; diff --git a/types/koa/index.d.ts b/types/koa/index.d.ts index 9fadc9b4198f90..6dee5d822092a5 100644 --- a/types/koa/index.d.ts +++ b/types/koa/index.d.ts @@ -9,17 +9,17 @@ =============================================== */ /// -import * as accepts from "accepts"; +import accepts = require("accepts"); import { AsyncLocalStorage } from "async_hooks"; -import * as Cookies from "cookies"; +import Cookies = require("cookies"); import { EventEmitter } from "events"; import { IncomingHttpHeaders, IncomingMessage, OutgoingHttpHeaders, Server, ServerResponse } from "http"; import { Http2ServerRequest, Http2ServerResponse } from "http2"; import httpAssert = require("http-assert"); -import * as contentDisposition from "content-disposition"; -import * as HttpErrors from "http-errors"; -import * as Keygrip from "keygrip"; -import * as compose from "koa-compose"; +import contentDisposition = require("content-disposition"); +import HttpErrors = require("http-errors"); +import Keygrip = require("keygrip"); +import compose = require("koa-compose"); import { ListenOptions, Socket } from "net"; import { ParsedUrlQuery } from "querystring"; import * as url from "url"; diff --git a/types/koa/tsconfig.json b/types/koa/tsconfig.json index 9573db3806a863..aa8f83fee67449 100644 --- a/types/koa/tsconfig.json +++ b/types/koa/tsconfig.json @@ -18,7 +18,6 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true } } diff --git a/types/koa2-cors/index.d.ts b/types/koa2-cors/index.d.ts index c0581b8a22767e..eb2f296585a69b 100644 --- a/types/koa2-cors/index.d.ts +++ b/types/koa2-cors/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); declare namespace cors { interface Options { origin?: string | ((ctx: Koa.Context) => boolean | string) | undefined; diff --git a/types/koa2-session-redis/index.d.ts b/types/koa2-session-redis/index.d.ts index 5a147d3364f471..e4542b46b8d8c8 100644 --- a/types/koa2-session-redis/index.d.ts +++ b/types/koa2-session-redis/index.d.ts @@ -1,4 +1,4 @@ -import * as session from "koa-session"; +import session = require("koa-session"); import * as Redis from "redis"; export = RedisStore; diff --git a/types/koa2-session-redis/koa2-session-redis-tests.ts b/types/koa2-session-redis/koa2-session-redis-tests.ts index ddc1e73de1d865..04cd7f8863a4bf 100644 --- a/types/koa2-session-redis/koa2-session-redis-tests.ts +++ b/types/koa2-session-redis/koa2-session-redis-tests.ts @@ -1,5 +1,5 @@ -import * as Koa from "koa"; -import * as session from "koa-session"; +import Koa from "koa"; +import session from "koa-session"; import RedisStore = require("koa2-session-redis"); const app = new Koa(); diff --git a/types/koa2-session-redis/tsconfig.json b/types/koa2-session-redis/tsconfig.json index 4d9b53d711364d..5bb77473d8934a 100644 --- a/types/koa2-session-redis/tsconfig.json +++ b/types/koa2-session-redis/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/koa__cors/index.d.ts b/types/koa__cors/index.d.ts index f7f2ee0c426898..c6f8896e7376cb 100644 --- a/types/koa__cors/index.d.ts +++ b/types/koa__cors/index.d.ts @@ -1,4 +1,4 @@ -import * as Koa from "koa"; +import Koa = require("koa"); export = cors; diff --git a/types/koa__ejs/index.d.ts b/types/koa__ejs/index.d.ts index 49077ef8303f94..35b70e8a73728a 100644 --- a/types/koa__ejs/index.d.ts +++ b/types/koa__ejs/index.d.ts @@ -1,5 +1,5 @@ import * as Ejs from "ejs"; -import * as Koa from "koa"; +import Koa = require("koa"); declare module "koa" { interface ExtendableContext { diff --git a/types/koa__multer/index.d.ts b/types/koa__multer/index.d.ts index 540da75f994b12..da3b0fbd1ab7a8 100644 --- a/types/koa__multer/index.d.ts +++ b/types/koa__multer/index.d.ts @@ -28,7 +28,7 @@ */ import { IncomingMessage } from "http"; -import * as Koa from "koa"; +import Koa = require("koa"); declare module "koa" { interface DefaultContext { diff --git a/types/koa__router/index.d.ts b/types/koa__router/index.d.ts index 74037eced360e4..b26a6ada0085fa 100644 --- a/types/koa__router/index.d.ts +++ b/types/koa__router/index.d.ts @@ -5,7 +5,7 @@ =============================================== */ -import * as Koa from "koa"; +import Koa = require("koa"); declare namespace Router { interface RouterOptions { diff --git a/types/koozaki__romaji-conv/tsconfig.json b/types/koozaki__romaji-conv/tsconfig.json index e2767d12ee0833..dd7daa46c74e36 100644 --- a/types/koozaki__romaji-conv/tsconfig.json +++ b/types/koozaki__romaji-conv/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/kube-probe/tsconfig.json b/types/kube-probe/tsconfig.json index 628ec0854d8fbf..ec7a36376db046 100644 --- a/types/kube-probe/tsconfig.json +++ b/types/kube-probe/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/kue-ui-client/kue-ui-client-tests.ts b/types/kue-ui-client/kue-ui-client-tests.ts index 4bba39a3b34044..b91cc143d6a8b2 100644 --- a/types/kue-ui-client/kue-ui-client-tests.ts +++ b/types/kue-ui-client/kue-ui-client-tests.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express from "express"; import * as kueUiClient from "kue-ui-client"; const app = express(); diff --git a/types/kue-ui-client/tsconfig.json b/types/kue-ui-client/tsconfig.json index b08aef8802d7bd..351e8873adea94 100644 --- a/types/kue-ui-client/tsconfig.json +++ b/types/kue-ui-client/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/kurento-client/tsconfig.json b/types/kurento-client/tsconfig.json index ce565d701a8995..f22f08a652994a 100644 --- a/types/kurento-client/tsconfig.json +++ b/types/kurento-client/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/labeled-stream-splicer/index.d.ts b/types/labeled-stream-splicer/index.d.ts index 4555d1060ca9c5..f99d9ae0da05e9 100644 --- a/types/labeled-stream-splicer/index.d.ts +++ b/types/labeled-stream-splicer/index.d.ts @@ -1,5 +1,5 @@ /// -import * as stream from "stream"; +import stream = require("stream"); type Stream = NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream; type Index = number | string; diff --git a/types/ladjs__country-language/tsconfig.json b/types/ladjs__country-language/tsconfig.json index 382921e1c1fd2e..f2b7c53d09cd16 100644 --- a/types/ladjs__country-language/tsconfig.json +++ b/types/ladjs__country-language/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/lambda-log/lambda-log-tests.ts b/types/lambda-log/lambda-log-tests.ts index 4992f7f872adff..6ba42734b738ba 100644 --- a/types/lambda-log/lambda-log-tests.ts +++ b/types/lambda-log/lambda-log-tests.ts @@ -1,4 +1,4 @@ -import * as log from "lambda-log"; +import log from "lambda-log"; const logMessage: log.LogMessage = log.log("customLevel", "custom", { key: "value", diff --git a/types/lambda-tester/lambda-tester-tests.ts b/types/lambda-tester/lambda-tester-tests.ts index 9d695d6a1d8a1c..341bf333838227 100644 --- a/types/lambda-tester/lambda-tester-tests.ts +++ b/types/lambda-tester/lambda-tester-tests.ts @@ -8,7 +8,7 @@ import { Context, Handler, } from "aws-lambda"; -import * as lambdaTester from "lambda-tester"; +import lambdaTester from "lambda-tester"; interface TResult { data: string; diff --git a/types/lambda-tester/tsconfig.json b/types/lambda-tester/tsconfig.json index 21c01cfa981603..0fd1423543f6e8 100644 --- a/types/lambda-tester/tsconfig.json +++ b/types/lambda-tester/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/layui-layer/tsconfig.json b/types/layui-layer/tsconfig.json index 26a3d5abd2e30b..b695f02c4e4ace 100644 --- a/types/layui-layer/tsconfig.json +++ b/types/layui-layer/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/layzr.js/layzr.js-tests.ts b/types/layzr.js/layzr.js-tests.ts index 37ecaf2aaebd1c..6aac2305b8646f 100644 --- a/types/layzr.js/layzr.js-tests.ts +++ b/types/layzr.js/layzr.js-tests.ts @@ -1,4 +1,4 @@ -import * as Layzr from "layzr.js"; +import Layzr from "layzr.js"; const options: Layzr.LayzrOptions = { normal: "data-normal", diff --git a/types/layzr.js/tsconfig.json b/types/layzr.js/tsconfig.json index d9463adfce52d0..4607c4b24e93dc 100644 --- a/types/layzr.js/tsconfig.json +++ b/types/layzr.js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/leaflet.vectorgrid/index.d.ts b/types/leaflet.vectorgrid/index.d.ts index 7b65ab6e2a176b..7d9a3786761de5 100644 --- a/types/leaflet.vectorgrid/index.d.ts +++ b/types/leaflet.vectorgrid/index.d.ts @@ -1,5 +1,5 @@ import * as geojson from "geojson"; -import * as geojsonvt from "geojson-vt"; +import geojsonvt = require("geojson-vt"); import * as L from "leaflet"; declare module "leaflet" { diff --git a/types/lerna__child-process/index.d.ts b/types/lerna__child-process/index.d.ts index 7300909e01938f..a5999def6fb5ce 100644 --- a/types/lerna__child-process/index.d.ts +++ b/types/lerna__child-process/index.d.ts @@ -1,5 +1,5 @@ import { Package } from "@lerna/package"; -import * as execa from "execa"; +import execa = require("execa"); export type ExecutionError = execa.ExecaError & { exitCode: number; pkg?: Package }; export type ExecutionResult = execa.ExecaChildProcess & { pkg?: Package }; diff --git a/types/lesgo/tsconfig.json b/types/lesgo/tsconfig.json index a0d9139c36003b..4dd22557838e52 100644 --- a/types/lesgo/tsconfig.json +++ b/types/lesgo/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "target": "es2015", "lib": [ "es6" diff --git a/types/lesgo/v0.6/tsconfig.json b/types/lesgo/v0.6/tsconfig.json index a0d9139c36003b..4dd22557838e52 100644 --- a/types/lesgo/v0.6/tsconfig.json +++ b/types/lesgo/v0.6/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "target": "es2015", "lib": [ "es6" diff --git a/types/level-sublevel/index.d.ts b/types/level-sublevel/index.d.ts index e8f4847627d08f..695195bbc83d83 100644 --- a/types/level-sublevel/index.d.ts +++ b/types/level-sublevel/index.d.ts @@ -1,4 +1,4 @@ -import * as levelup from "levelup"; +import levelup = require("levelup"); export = sublevel; diff --git a/types/level-ttl/tsconfig.json b/types/level-ttl/tsconfig.json index 7dc91ef3af832a..f71551d531f251 100644 --- a/types/level-ttl/tsconfig.json +++ b/types/level-ttl/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/levelup/v1/index.d.ts b/types/levelup/v1/index.d.ts index ebcc6b64297c78..20dac78e536993 100644 --- a/types/levelup/v1/index.d.ts +++ b/types/levelup/v1/index.d.ts @@ -1,6 +1,6 @@ /// -import * as leveldown from "leveldown"; +import leveldown = require("leveldown"); export = levelup; diff --git a/types/levenshtein/levenshtein-tests.ts b/types/levenshtein/levenshtein-tests.ts index 538a5203a7b804..2ea3b52d1ab2b5 100644 --- a/types/levenshtein/levenshtein-tests.ts +++ b/types/levenshtein/levenshtein-tests.ts @@ -1,4 +1,4 @@ -import * as Levenshtein from "levenshtein"; +import Levenshtein from "levenshtein"; // Using standard methods let l1 = new Levenshtein("kitten", "sitting"); diff --git a/types/levenshtein/tsconfig.json b/types/levenshtein/tsconfig.json index 848e6e146282e9..f9288a0787bc4d 100644 --- a/types/levenshtein/tsconfig.json +++ b/types/levenshtein/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/lightpick/lightpick-tests.ts b/types/lightpick/lightpick-tests.ts index e97192d0435fa0..6a10263a4c47bd 100644 --- a/types/lightpick/lightpick-tests.ts +++ b/types/lightpick/lightpick-tests.ts @@ -1,5 +1,5 @@ -import * as Lightpick from "lightpick"; -import * as moment from "moment"; +import Lightpick from "lightpick"; +import moment from "moment"; const inputField = new HTMLInputElement(); const inputDate = moment(); diff --git a/types/lightpick/tsconfig.json b/types/lightpick/tsconfig.json index 193025b71cb0d6..64b9b881d44b96 100644 --- a/types/lightpick/tsconfig.json +++ b/types/lightpick/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es5", "dom" diff --git a/types/line-navigator/line-navigator-tests.ts b/types/line-navigator/line-navigator-tests.ts index c6ceacb3e80a9c..2936665559ddd4 100644 --- a/types/line-navigator/line-navigator-tests.ts +++ b/types/line-navigator/line-navigator-tests.ts @@ -1,4 +1,4 @@ -import * as LineNavigator from "line-navigator"; +import LineNavigator from "line-navigator"; const file = new File(["test"], "test.txt"); diff --git a/types/line-navigator/tsconfig.json b/types/line-navigator/tsconfig.json index e810882918789e..f34e87d50b01eb 100644 --- a/types/line-navigator/tsconfig.json +++ b/types/line-navigator/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/line-segments-intersect/tsconfig.json b/types/line-segments-intersect/tsconfig.json index e643e22a3b7395..c74e3e58c883b3 100644 --- a/types/line-segments-intersect/tsconfig.json +++ b/types/line-segments-intersect/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/linear-gradient/tsconfig.json b/types/linear-gradient/tsconfig.json index 8b07c93817758d..1f5499374854d4 100644 --- a/types/linear-gradient/tsconfig.json +++ b/types/linear-gradient/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/linesert/linesert-tests.ts b/types/linesert/linesert-tests.ts index 68b32f87af64d4..4d6748f9d509f3 100644 --- a/types/linesert/linesert-tests.ts +++ b/types/linesert/linesert-tests.ts @@ -1,4 +1,4 @@ -import * as linesert from "linesert"; +import linesert from "linesert"; // file.txt // => 1. diff --git a/types/linesert/tsconfig.json b/types/linesert/tsconfig.json index 7459709aa995a4..89dc77614bb1ec 100644 --- a/types/linesert/tsconfig.json +++ b/types/linesert/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/list-stream/tsconfig.json b/types/list-stream/tsconfig.json index 3dec227943d14f..6f5a95a556ace3 100644 --- a/types/list-stream/tsconfig.json +++ b/types/list-stream/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "test/import-tests.ts", diff --git a/types/list.js/tsconfig.json b/types/list.js/tsconfig.json index 40503bf7e68752..9b3817b7ab1c81 100644 --- a/types/list.js/tsconfig.json +++ b/types/list.js/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/listr/index.d.ts b/types/listr/index.d.ts index ba6cf92c616890..345c8549489eb1 100644 --- a/types/listr/index.d.ts +++ b/types/listr/index.d.ts @@ -1,7 +1,7 @@ /// import { Observable } from "rxjs"; -import * as stream from "stream"; +import stream = require("stream"); declare namespace Listr { type ListrContext = any; diff --git a/types/loadable__server/loadable__server-tests.tsx b/types/loadable__server/loadable__server-tests.tsx index 9b520822ab69d9..9462f5e0b93fbc 100644 --- a/types/loadable__server/loadable__server-tests.tsx +++ b/types/loadable__server/loadable__server-tests.tsx @@ -1,5 +1,5 @@ import { AttrFn, Chunk, ChunkExtractor } from "@loadable/server"; -import * as React from "react"; +import React from "react"; // Should be satisfied by `stats` or `statsFile` new ChunkExtractor({ stats: {} }); diff --git a/types/loadable__webpack-plugin/index.d.ts b/types/loadable__webpack-plugin/index.d.ts index dbb6eecec76cd4..9ddd2bd555d6f2 100644 --- a/types/loadable__webpack-plugin/index.d.ts +++ b/types/loadable__webpack-plugin/index.d.ts @@ -1,4 +1,4 @@ -import * as webpack from "webpack"; +import webpack = require("webpack"); declare namespace LoadablePlugin { interface PluginOptions { diff --git a/types/loadicons/tsconfig.json b/types/loadicons/tsconfig.json index 1e298f170cdbe7..a83fe5c9e04aab 100644 --- a/types/loadicons/tsconfig.json +++ b/types/loadicons/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/loadjs/tsconfig.json b/types/loadjs/tsconfig.json index 982b060b051d23..805f9fb2fb02b4 100644 --- a/types/loadjs/tsconfig.json +++ b/types/loadjs/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/lodash-deep/index.d.ts b/types/lodash-deep/index.d.ts index 50bc693c65e007..4fe8057976d08d 100644 --- a/types/lodash-deep/index.d.ts +++ b/types/lodash-deep/index.d.ts @@ -1,4 +1,4 @@ -import * as _ from "lodash"; +import _ = require("lodash"); declare module "lodash" { interface LoDashStatic { diff --git a/types/lodash-es/tsconfig.json b/types/lodash-es/tsconfig.json index a935788c8a48f7..81bf70a044bdac 100644 --- a/types/lodash-es/tsconfig.json +++ b/types/lodash-es/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/lodash-match-pattern/index.d.ts b/types/lodash-match-pattern/index.d.ts index 0dc929b426ac49..7b01c82bcbb3a4 100644 --- a/types/lodash-match-pattern/index.d.ts +++ b/types/lodash-match-pattern/index.d.ts @@ -1,4 +1,4 @@ -import * as _ from "lodash"; +import _ = require("lodash"); declare module "lodash" { interface LoDashStatic { diff --git a/types/lodash-match-pattern/lodash-match-pattern-tests.ts b/types/lodash-match-pattern/lodash-match-pattern-tests.ts index d141c6099fcf52..9d7807b0a22a36 100644 --- a/types/lodash-match-pattern/lodash-match-pattern-tests.ts +++ b/types/lodash-match-pattern/lodash-match-pattern-tests.ts @@ -1,4 +1,4 @@ -import * as matchPattern from "lodash-match-pattern"; +import matchPattern from "lodash-match-pattern"; const lodash = matchPattern.getLodashModule(); // Use our lodash extensions (recommended) const isString = lodash.isString; diff --git a/types/lodash-match-pattern/tsconfig.json b/types/lodash-match-pattern/tsconfig.json index ab982f55114c09..86db88a786086e 100644 --- a/types/lodash-match-pattern/tsconfig.json +++ b/types/lodash-match-pattern/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/lodash/v3/tsconfig.json b/types/lodash/v3/tsconfig.json index 3f7368db6be3e2..972e0e70238b8d 100644 --- a/types/lodash/v3/tsconfig.json +++ b/types/lodash/v3/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": false, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/logfmt/logfmt-tests.ts b/types/logfmt/logfmt-tests.ts index a489cd1d3dd630..8138259e8ee253 100644 --- a/types/logfmt/logfmt-tests.ts +++ b/types/logfmt/logfmt-tests.ts @@ -1,7 +1,7 @@ -import * as express from "express"; +import express from "express"; import * as http from "http"; -import * as logfmt from "logfmt"; -import * as through from "through"; +import logfmt from "logfmt"; +import through from "through"; // Examples taken from project README @@ -69,10 +69,6 @@ logfmt.log({ foo: "bar", a: 14, baz: "hello kitty" }); logfmt.log({ foo: "bar", a: 14, baz: "hello kitty" }); logfmt.log({ foo: "bar", a: 14, baz: "hello kitty" }, process.stderr); -// logfmt's trick of copying the prototype onto itself seems to trip up -// TypeScript on module-level member assignment, so this should work but doesn't -// -// @ts-expect-error logfmt.stream = process.stderr; logfmt.log({ foo: "bar", a: 14, baz: "hello kitty" }); diff --git a/types/logfmt/tsconfig.json b/types/logfmt/tsconfig.json index da96256ce18e85..679738bb873d27 100644 --- a/types/logfmt/tsconfig.json +++ b/types/logfmt/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "target": "es2017", "lib": [ "es6" @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/logrocket-react/tsconfig.json b/types/logrocket-react/tsconfig.json index 77b33a18777f49..c2a20b0387aeac 100644 --- a/types/logrocket-react/tsconfig.json +++ b/types/logrocket-react/tsconfig.json @@ -1,7 +1,6 @@ { "compilerOptions": { "module": "node16", - "esModuleInterop": true, "lib": [ "es6", "dom" diff --git a/types/lolcatjs/tsconfig.json b/types/lolcatjs/tsconfig.json index abf9c70a2fa6d1..20af4fcd1e750c 100644 --- a/types/lolcatjs/tsconfig.json +++ b/types/lolcatjs/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/loopback-boot/index.d.ts b/types/loopback-boot/index.d.ts index 31f4ae9cbb6044..2be8cc35096757 100644 --- a/types/loopback-boot/index.d.ts +++ b/types/loopback-boot/index.d.ts @@ -4,7 +4,7 @@ * * ************************************************/ -import * as loopback from "loopback"; +import loopback = require("loopback"); /** * Use this API in the app.js file of your server-side Node.js application. diff --git a/types/ltx/tsconfig.json b/types/ltx/tsconfig.json index 977872e3cf8da3..948b106ff6cbd2 100644 --- a/types/ltx/tsconfig.json +++ b/types/ltx/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/lua-json/tsconfig.json b/types/lua-json/tsconfig.json index bb57baaaa6284c..bf63f0f862fd3d 100644 --- a/types/lua-json/tsconfig.json +++ b/types/lua-json/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/luhn-generator/tsconfig.json b/types/luhn-generator/tsconfig.json index 0d7c5ac948643d..46ac1097b82dd2 100644 --- a/types/luhn-generator/tsconfig.json +++ b/types/luhn-generator/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/luminous-lightbox/tsconfig.json b/types/luminous-lightbox/tsconfig.json index f09f2734f919aa..28f8acb206dd7b 100644 --- a/types/luminous-lightbox/tsconfig.json +++ b/types/luminous-lightbox/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/lunr/lunr-tests.ts b/types/lunr/lunr-tests.ts index 96eb267228588b..bf3b8bde5629cb 100644 --- a/types/lunr/lunr-tests.ts +++ b/types/lunr/lunr-tests.ts @@ -1,4 +1,4 @@ -import * as lunr from "lunr"; +import lunr from "lunr"; function basic_test() { const index = lunr(function() { diff --git a/types/lunr/tsconfig.json b/types/lunr/tsconfig.json index cde937854d4ec1..789affeb8554b8 100644 --- a/types/lunr/tsconfig.json +++ b/types/lunr/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/lunr/v0/tsconfig.json b/types/lunr/v0/tsconfig.json index 47914ed41634c8..4ec9135c55ee54 100644 --- a/types/lunr/v0/tsconfig.json +++ b/types/lunr/v0/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/luxon/tsconfig.json b/types/luxon/tsconfig.json index 93fd2853d13497..cb4cb6939d9914 100644 --- a/types/luxon/tsconfig.json +++ b/types/luxon/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.mts", diff --git a/types/mailgen/mailgen-tests.ts b/types/mailgen/mailgen-tests.ts index 0e81e93846b2c3..0a6118bcaa263a 100644 --- a/types/mailgen/mailgen-tests.ts +++ b/types/mailgen/mailgen-tests.ts @@ -1,4 +1,4 @@ -import * as Mailgen from "mailgen"; +import Mailgen from "mailgen"; const generator: Mailgen = new Mailgen({ theme: "default", diff --git a/types/mailgen/tsconfig.json b/types/mailgen/tsconfig.json index 1eb38914bd7a08..77444ecd902a2b 100644 --- a/types/mailgen/tsconfig.json +++ b/types/mailgen/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/mailgun-js/index.d.ts b/types/mailgun-js/index.d.ts index 25fcf4ff8f1ef1..003aadaf158c1f 100644 --- a/types/mailgun-js/index.d.ts +++ b/types/mailgun-js/index.d.ts @@ -1,6 +1,6 @@ /// -import * as FormData from "form-data"; +import FormData = require("form-data"); declare const Mailgun: Mailgun.MailgunExport; export = Mailgun; diff --git a/types/mailgun-js/mailgun-js-tests.ts b/types/mailgun-js/mailgun-js-tests.ts index af2e1eb8760aa9..f01456ade8bfd5 100644 --- a/types/mailgun-js/mailgun-js-tests.ts +++ b/types/mailgun-js/mailgun-js-tests.ts @@ -1,4 +1,4 @@ -import * as mailgunFactory from "mailgun-js"; +import mailgunFactory from "mailgun-js"; import mailgunFactory2 = require("mailgun-js"); import * as FormData from "form-data"; diff --git a/types/mailgun-js/tsconfig.json b/types/mailgun-js/tsconfig.json index f27bb8074958a3..4584fb754f0a9f 100644 --- a/types/mailgun-js/tsconfig.json +++ b/types/mailgun-js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/mainloop.js/tsconfig.json b/types/mainloop.js/tsconfig.json index 81bcd0612b69af..8f5ed85dac7030 100644 --- a/types/mainloop.js/tsconfig.json +++ b/types/mainloop.js/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/map-to-obj/tsconfig.json b/types/map-to-obj/tsconfig.json index 70e9b5542f4c91..fe6ef14a3caa1b 100644 --- a/types/map-to-obj/tsconfig.json +++ b/types/map-to-obj/tsconfig.json @@ -11,8 +11,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "allowSyntheticDefaultImports": true, - "esModuleInterop": true + "allowSyntheticDefaultImports": true }, "files": [ "index.d.ts", diff --git a/types/mapbox-gl-leaflet/mapbox-gl-leaflet-tests.ts b/types/mapbox-gl-leaflet/mapbox-gl-leaflet-tests.ts index d82fe0bc918b52..bd86dd812ac08d 100644 --- a/types/mapbox-gl-leaflet/mapbox-gl-leaflet-tests.ts +++ b/types/mapbox-gl-leaflet/mapbox-gl-leaflet-tests.ts @@ -1,4 +1,4 @@ -import * as L from "leaflet"; +import L from "leaflet"; const token = "token"; diff --git a/types/mapbox__mapbox-gl-draw/tsconfig.json b/types/mapbox__mapbox-gl-draw/tsconfig.json index aefe45b01185be..667c908ba67c06 100644 --- a/types/mapbox__mapbox-gl-draw/tsconfig.json +++ b/types/mapbox__mapbox-gl-draw/tsconfig.json @@ -11,7 +11,6 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "esModuleInterop": true, "forceConsistentCasingInFileNames": true }, "files": [ diff --git a/types/mapbox__mapbox-gl-geocoder/tsconfig.json b/types/mapbox__mapbox-gl-geocoder/tsconfig.json index 5e56c9dad40a43..1043cf8bf53d69 100644 --- a/types/mapbox__mapbox-gl-geocoder/tsconfig.json +++ b/types/mapbox__mapbox-gl-geocoder/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/mapbox__mapbox-gl-traffic/test/mapbox__mapbox-gl-traffic-tests.ts b/types/mapbox__mapbox-gl-traffic/test/mapbox__mapbox-gl-traffic-tests.ts index 1ca65c755f7f79..e420f80c35bd0b 100644 --- a/types/mapbox__mapbox-gl-traffic/test/mapbox__mapbox-gl-traffic-tests.ts +++ b/types/mapbox__mapbox-gl-traffic/test/mapbox__mapbox-gl-traffic-tests.ts @@ -1,5 +1,5 @@ import * as Mapbox from "mapbox-gl"; -import * as MapboxTraffic from "mapbox__mapbox-gl-traffic"; +import MapboxTraffic from "mapbox__mapbox-gl-traffic"; const options: MapboxTraffic.Options = { showTraffic: true, diff --git a/types/mapbox__mapbox-gl-traffic/tsconfig.json b/types/mapbox__mapbox-gl-traffic/tsconfig.json index acedd1c3f6eb44..b358a7da9a12b7 100644 --- a/types/mapbox__mapbox-gl-traffic/tsconfig.json +++ b/types/mapbox__mapbox-gl-traffic/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/mapbox__polyline/tsconfig.json b/types/mapbox__polyline/tsconfig.json index f7a339dcbd903b..bbd55d52e0543a 100644 --- a/types/mapbox__polyline/tsconfig.json +++ b/types/mapbox__polyline/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/mapbox__rehype-prism/tsconfig.json b/types/mapbox__rehype-prism/tsconfig.json index 872602fb6b9fa3..9e11beed04b31e 100644 --- a/types/mapbox__rehype-prism/tsconfig.json +++ b/types/mapbox__rehype-prism/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/mapbox__shelf-pack/mapbox__shelf-pack-tests.ts b/types/mapbox__shelf-pack/mapbox__shelf-pack-tests.ts index 32d367320b94b6..a489831097cd73 100644 --- a/types/mapbox__shelf-pack/mapbox__shelf-pack-tests.ts +++ b/types/mapbox__shelf-pack/mapbox__shelf-pack-tests.ts @@ -1,4 +1,4 @@ -import * as ShelfPack from "@mapbox/shelf-pack"; +import ShelfPack from "@mapbox/shelf-pack"; let sprite = new ShelfPack(64, 64); diff --git a/types/mapbox__shelf-pack/tsconfig.json b/types/mapbox__shelf-pack/tsconfig.json index 2e44ef2e9fbaf6..48cb6a3d387cdf 100644 --- a/types/mapbox__shelf-pack/tsconfig.json +++ b/types/mapbox__shelf-pack/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/mark.js/mark.js-tests.ts b/types/mark.js/mark.js-tests.ts index 85c201f6b0e9a2..914e74cff12c69 100644 --- a/types/mark.js/mark.js-tests.ts +++ b/types/mark.js/mark.js-tests.ts @@ -1,4 +1,4 @@ -import * as Mark from "mark.js"; +import Mark from "mark.js"; /* test instance */ const mark = new Mark(document.querySelectorAll("div")); diff --git a/types/mark.js/tsconfig.json b/types/mark.js/tsconfig.json index b6ce5cbe649a15..6ce051fb3499a3 100644 --- a/types/mark.js/tsconfig.json +++ b/types/mark.js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/markdown-escape/markdown-escape-tests.ts b/types/markdown-escape/markdown-escape-tests.ts index 463c5f74e98004..9b359bc90c6a73 100644 --- a/types/markdown-escape/markdown-escape-tests.ts +++ b/types/markdown-escape/markdown-escape-tests.ts @@ -1,4 +1,4 @@ -import * as markdownEscape from "markdown-escape"; +import markdownEscape from "markdown-escape"; // $ExpectType string markdownEscape("#1! We're #1!"); diff --git a/types/markdown-escape/tsconfig.json b/types/markdown-escape/tsconfig.json index 23784feacab95a..d9ffcfd247bed3 100644 --- a/types/markdown-escape/tsconfig.json +++ b/types/markdown-escape/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/markdown-it-source-map/markdown-it-source-map-tests.ts b/types/markdown-it-source-map/markdown-it-source-map-tests.ts index 74cd19292751f0..c1744c7b73ff88 100644 --- a/types/markdown-it-source-map/markdown-it-source-map-tests.ts +++ b/types/markdown-it-source-map/markdown-it-source-map-tests.ts @@ -1,7 +1,7 @@ // From original package README // https://github.com/tylingsoft/markdown-it-source-map/blob/b5c374465ebd2a182b90720b99809f4c1b48b178/README.md -import * as markdownIt from "markdown-it"; +import markdownIt from "markdown-it"; import markdownItSourceMap from "markdown-it-source-map"; const mdi = markdownIt(); diff --git a/types/markdown-it-source-map/tsconfig.json b/types/markdown-it-source-map/tsconfig.json index 1854135e11168f..74811767f2048c 100644 --- a/types/markdown-it-source-map/tsconfig.json +++ b/types/markdown-it-source-map/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/markdown-navbar/markdown-navbar-tests.ts b/types/markdown-navbar/markdown-navbar-tests.ts index 33aaaaf638f5dc..15e372c0b9f541 100644 --- a/types/markdown-navbar/markdown-navbar-tests.ts +++ b/types/markdown-navbar/markdown-navbar-tests.ts @@ -1,4 +1,4 @@ -import * as MarkdownNavbar from "markdown-navbar"; +import MarkdownNavbar from "markdown-navbar"; const article = `# Hello World!`; diff --git a/types/markdown-navbar/tsconfig.json b/types/markdown-navbar/tsconfig.json index f44464da000186..3344adef71093d 100644 --- a/types/markdown-navbar/tsconfig.json +++ b/types/markdown-navbar/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/markdownlint-rule-helpers/index.d.ts b/types/markdownlint-rule-helpers/index.d.ts index cde4a4c9029cf1..f2f8fef0cee690 100644 --- a/types/markdownlint-rule-helpers/index.d.ts +++ b/types/markdownlint-rule-helpers/index.d.ts @@ -1,7 +1,7 @@ /// -import * as MarkdownIt from "markdown-it"; -import * as markdownlint from "markdownlint"; +import MarkdownIt = require("markdown-it"); +import markdownlint = require("markdownlint"); export const newLineRe: RegExp; diff --git a/types/marko/express.d.ts b/types/marko/express.d.ts index df2ca6b70737f0..5a80f3eb220afd 100644 --- a/types/marko/express.d.ts +++ b/types/marko/express.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); import Template from "./src/runtime/html/Template"; declare module "express-serve-static-core" { diff --git a/types/marko/marko-tests.ts b/types/marko/marko-tests.ts index 9f686af15fc5ec..3780403efd7b69 100644 --- a/types/marko/marko-tests.ts +++ b/types/marko/marko-tests.ts @@ -1,10 +1,10 @@ import * as asyncWriter from "async-writer"; -import * as express from "express"; +import express from "express"; import { createWriteStream } from "fs"; import { createServer } from "http"; import { load } from "marko"; -import * as markoExpress from "marko/express"; +import markoExpress from "marko/express"; import { buildTaglibLookup, taglibFinder } from "marko/src/compiler"; import { Component } from "marko/src/components"; import { AsyncStream, createWriter, RenderResult, Template } from "marko/src/runtime/html"; diff --git a/types/marko/src/runtime/html/Template.d.ts b/types/marko/src/runtime/html/Template.d.ts index db4af24321af63..75131957acc284 100644 --- a/types/marko/src/runtime/html/Template.d.ts +++ b/types/marko/src/runtime/html/Template.d.ts @@ -2,7 +2,7 @@ import { AsyncWriter } from "async-writer"; import { ServerResponse } from "http"; -import * as stream from "stream"; +import stream = require("stream"); import AsyncVDOMBuilder from "../vdom/AsyncVDOMBuilder"; import AsyncStream from "./AsyncStream"; import RenderResult from "./RenderResult"; diff --git a/types/marko/tsconfig.json b/types/marko/tsconfig.json index b6dc764457ba36..e91c16d45db1a3 100644 --- a/types/marko/tsconfig.json +++ b/types/marko/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/markup-js/tsconfig.json b/types/markup-js/tsconfig.json index e36ed250f53a9a..f69de2f37fcee3 100644 --- a/types/markup-js/tsconfig.json +++ b/types/markup-js/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/material-ui-pagination/material-ui-pagination-tests.tsx b/types/material-ui-pagination/material-ui-pagination-tests.tsx index 4c7a7e2f530aa1..f6cfe995dabfd2 100644 --- a/types/material-ui-pagination/material-ui-pagination-tests.tsx +++ b/types/material-ui-pagination/material-ui-pagination-tests.tsx @@ -1,4 +1,4 @@ -import * as ui from "material-ui"; +import ui from "material-ui"; import Pagination from "material-ui-pagination"; import { MuiThemeProvider } from "material-ui/styles"; import * as React from "react"; diff --git a/types/material-ui/material-ui-tests.tsx b/types/material-ui/material-ui-tests.tsx index 7cffd69448656a..074913a6565bdd 100644 --- a/types/material-ui/material-ui-tests.tsx +++ b/types/material-ui/material-ui-tests.tsx @@ -1,5 +1,4 @@ -import * as React from 'react'; -import { +import React, { Component, ComponentClass, CSSProperties, diff --git a/types/materialize-css/test/common.test.ts b/types/materialize-css/test/common.test.ts index 43a9b21b56e7a2..93e577d9d0e43b 100644 --- a/types/materialize-css/test/common.test.ts +++ b/types/materialize-css/test/common.test.ts @@ -1,5 +1,5 @@ import cash from "cash-dom"; -import * as jQuery from "jquery"; +import jQuery from "jquery"; import * as M from "materialize-css"; // Test Component Initialization diff --git a/types/materialize-css/tsconfig.json b/types/materialize-css/tsconfig.json index e9ce9705f035ae..dbc1a994aaed42 100644 --- a/types/materialize-css/tsconfig.json +++ b/types/materialize-css/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/maxmsp/tsconfig.json b/types/maxmsp/tsconfig.json index 4c46c7a43a85bc..ecd1a4d7812367 100644 --- a/types/maxmsp/tsconfig.json +++ b/types/maxmsp/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/mcustomscrollbar/mcustomscrollbar-tests.ts b/types/mcustomscrollbar/mcustomscrollbar-tests.ts index 827fb025590dd7..247f362e9fc09a 100644 --- a/types/mcustomscrollbar/mcustomscrollbar-tests.ts +++ b/types/mcustomscrollbar/mcustomscrollbar-tests.ts @@ -1,4 +1,4 @@ -import * as factory from "malihu-custom-scrollbar-plugin"; +import factory from "malihu-custom-scrollbar-plugin"; factory($); diff --git a/types/mcustomscrollbar/tsconfig.json b/types/mcustomscrollbar/tsconfig.json index 7ed7d806f91429..dede0ea7223228 100644 --- a/types/mcustomscrollbar/tsconfig.json +++ b/types/mcustomscrollbar/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/merge-img/tsconfig.json b/types/merge-img/tsconfig.json index edd2185a544d80..5bd5da07cea1fc 100644 --- a/types/merge-img/tsconfig.json +++ b/types/merge-img/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/mertasan__tailwindcss-variables/mertasan__tailwindcss-variables-tests.ts b/types/mertasan__tailwindcss-variables/mertasan__tailwindcss-variables-tests.ts index b12cb7e48488c3..31e787399f91b5 100644 --- a/types/mertasan__tailwindcss-variables/mertasan__tailwindcss-variables-tests.ts +++ b/types/mertasan__tailwindcss-variables/mertasan__tailwindcss-variables-tests.ts @@ -1,8 +1,8 @@ -import * as variablesPlugin from "@mertasan/tailwindcss-variables"; +import variablesPlugin from "@mertasan/tailwindcss-variables"; import * as variablesApi from "@mertasan/tailwindcss-variables/api"; import colorVariable = require("@mertasan/tailwindcss-variables/colorVariable"); import type { Config } from "tailwindcss"; -import * as plugin from "tailwindcss/plugin"; +import plugin from "tailwindcss/plugin"; const config: Config = { content: [], diff --git a/types/mertasan__tailwindcss-variables/tsconfig.json b/types/mertasan__tailwindcss-variables/tsconfig.json index ef99911891a075..5d6e4169d94d24 100644 --- a/types/mertasan__tailwindcss-variables/tsconfig.json +++ b/types/mertasan__tailwindcss-variables/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "ES2018.Promise" diff --git a/types/meteor/blaze.d.ts b/types/meteor/blaze.d.ts index f1dba68f5ed1e5..7d383c1040d8bb 100644 --- a/types/meteor/blaze.d.ts +++ b/types/meteor/blaze.d.ts @@ -1,4 +1,4 @@ -import * as $ from 'jquery'; +import $ = require("jquery"); import { Tracker } from 'meteor/tracker'; import { Meteor } from 'meteor/meteor'; diff --git a/types/meteor/globals/underscore.d.ts b/types/meteor/globals/underscore.d.ts index ffbb281e512719..e65128ef4979c1 100644 --- a/types/meteor/globals/underscore.d.ts +++ b/types/meteor/globals/underscore.d.ts @@ -1,2 +1,2 @@ -import * as _ from 'underscore'; +import _ = require("underscore"); export { _ }; diff --git a/types/meteor/globals/webapp.d.ts b/types/meteor/globals/webapp.d.ts index ef1d07dfadfd00..55e971dc311801 100644 --- a/types/meteor/globals/webapp.d.ts +++ b/types/meteor/globals/webapp.d.ts @@ -1,5 +1,5 @@ import * as http from 'http'; -import * as connect from 'connect'; +import connect = require("connect"); declare interface StaticFiles { [key: string]: { content?: string | undefined; diff --git a/types/meteor/tsconfig.json b/types/meteor/tsconfig.json index 44d0b1ee53a88d..41e235fbd314b7 100644 --- a/types/meteor/tsconfig.json +++ b/types/meteor/tsconfig.json @@ -13,7 +13,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "jsx": "preserve" + "jsx": "preserve", + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/metric-suffix/tsconfig.json b/types/metric-suffix/tsconfig.json index c74a21acf7180a..e6db85ed0201d2 100644 --- a/types/metric-suffix/tsconfig.json +++ b/types/metric-suffix/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/mg-api-js/tsconfig.json b/types/mg-api-js/tsconfig.json index 07b8e10c485a49..a35005d626f4fa 100644 --- a/types/mg-api-js/tsconfig.json +++ b/types/mg-api-js/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/micro-events/micro-events-tests.ts b/types/micro-events/micro-events-tests.ts index 020980e74b86ed..f5d744f3032065 100644 --- a/types/micro-events/micro-events-tests.ts +++ b/types/micro-events/micro-events-tests.ts @@ -1,4 +1,4 @@ -import * as EventEmitter from "micro-events"; +import EventEmitter from "micro-events"; const myEventEmitter = new EventEmitter(); diff --git a/types/micro-events/tsconfig.json b/types/micro-events/tsconfig.json index 79d219bf8c7b91..6a8f9b354e56e1 100644 --- a/types/micro-events/tsconfig.json +++ b/types/micro-events/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/microlight/tsconfig.json b/types/microlight/tsconfig.json index a2463c978a43ee..a74f588c2f6939 100644 --- a/types/microlight/tsconfig.json +++ b/types/microlight/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/micromatch/index.d.ts b/types/micromatch/index.d.ts index 595696c83abdf3..396a63abe36d16 100644 --- a/types/micromatch/index.d.ts +++ b/types/micromatch/index.d.ts @@ -1,6 +1,6 @@ // TypeScript Version: 2.2 -import * as braces from "braces"; +import braces = require("braces"); declare namespace micromatch { interface Item { glob: string; diff --git a/types/microsoft-ajax/tsconfig.json b/types/microsoft-ajax/tsconfig.json index f114b9c1fc13a8..7facbcb305015a 100644 --- a/types/microsoft-ajax/tsconfig.json +++ b/types/microsoft-ajax/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/microsoft-sdk-soap/index.d.ts b/types/microsoft-sdk-soap/index.d.ts index f1997361631795..6cf2cb4b329dd8 100644 --- a/types/microsoft-sdk-soap/index.d.ts +++ b/types/microsoft-sdk-soap/index.d.ts @@ -1,4 +1,4 @@ -import * as Q from "q"; +import Q = require("q"); declare global { namespace Sdk { diff --git a/types/midi/index.d.ts b/types/midi/index.d.ts index ee26a503e1cb7e..4225ab88432dec 100644 --- a/types/midi/index.d.ts +++ b/types/midi/index.d.ts @@ -1,7 +1,7 @@ /// -import * as EventEmitter from "events"; -import * as Stream from "stream"; +import EventEmitter = require("events"); +import Stream = require("stream"); /** * An array of numbers corresponding to the MIDI bytes: [status, data1, data2]. diff --git a/types/midi/tsconfig.json b/types/midi/tsconfig.json index efb89d763273bd..7ecf475e0d6435 100644 --- a/types/midi/tsconfig.json +++ b/types/midi/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/midtrans-client/tsconfig.json b/types/midtrans-client/tsconfig.json index 918fcceb87a6c2..9d0e2aa6de2768 100644 --- a/types/midtrans-client/tsconfig.json +++ b/types/midtrans-client/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/millisecond/millisecond-tests.ts b/types/millisecond/millisecond-tests.ts index fea9bc47e8ce9f..f41d6425a2a57d 100644 --- a/types/millisecond/millisecond-tests.ts +++ b/types/millisecond/millisecond-tests.ts @@ -1,4 +1,4 @@ -import * as millisecond from "millisecond"; +import millisecond from "millisecond"; millisecond(100); millisecond("1 years"); diff --git a/types/millisecond/tsconfig.json b/types/millisecond/tsconfig.json index c146ba42957b4c..f5c8b4fc50c175 100644 --- a/types/millisecond/tsconfig.json +++ b/types/millisecond/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es2015" ], diff --git a/types/minify/tsconfig.json b/types/minify/tsconfig.json index 880bb7d9f19fcb..a276f79f45b0b1 100644 --- a/types/minify/tsconfig.json +++ b/types/minify/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/minimal-bit-array/minimal-bit-array-tests.ts b/types/minimal-bit-array/minimal-bit-array-tests.ts index 099374411ba144..b164c1359d5398 100644 --- a/types/minimal-bit-array/minimal-bit-array-tests.ts +++ b/types/minimal-bit-array/minimal-bit-array-tests.ts @@ -1,4 +1,4 @@ -import * as BitArray from "minimal-bit-array"; +import BitArray from "minimal-bit-array"; // @ts-expect-error new BitArray("abc"); diff --git a/types/minimal-bit-array/tsconfig.json b/types/minimal-bit-array/tsconfig.json index 66184eba85a08e..03df5b5447b91f 100644 --- a/types/minimal-bit-array/tsconfig.json +++ b/types/minimal-bit-array/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/minimal-request-promise/minimal-request-promise-tests.ts b/types/minimal-request-promise/minimal-request-promise-tests.ts index b92f3f617fce76..f88791ff480361 100644 --- a/types/minimal-request-promise/minimal-request-promise-tests.ts +++ b/types/minimal-request-promise/minimal-request-promise-tests.ts @@ -1,4 +1,4 @@ -import * as minimalRequestPromise from "minimal-request-promise"; +import minimalRequestPromise from "minimal-request-promise"; // Default usage const options = { diff --git a/types/minimal-request-promise/tsconfig.json b/types/minimal-request-promise/tsconfig.json index 64d82b8f77b6a8..9ab8029b65d73d 100644 --- a/types/minimal-request-promise/tsconfig.json +++ b/types/minimal-request-promise/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/mithril-global/index.d.ts b/types/mithril-global/index.d.ts index 3b952afadfe93c..3b9471158d1d8c 100644 --- a/types/mithril-global/index.d.ts +++ b/types/mithril-global/index.d.ts @@ -2,8 +2,8 @@ /// -import * as mithril from "mithril"; -import * as stream from "mithril/stream"; +import mithril = require("mithril"); +import stream = require("mithril/stream"); declare namespace MithrilGlobal { export type CommonAttributes = mithril.CommonAttributes; diff --git a/types/mithril-global/tsconfig.json b/types/mithril-global/tsconfig.json index 4a943937243268..d74df7ef9a418c 100644 --- a/types/mithril-global/tsconfig.json +++ b/types/mithril-global/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "noEmit": true, "forceConsistentCasingInFileNames": true, - "types": [] + "types": [], + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/mithril/test/test-api.ts b/types/mithril/test/test-api.ts index 46308d11a369d8..714c134a5fc9c3 100644 --- a/types/mithril/test/test-api.ts +++ b/types/mithril/test/test-api.ts @@ -1,8 +1,8 @@ // Typescript adaptation of mithril's test suite. // Not intended to be run; only to compile & check types. -import * as m from "mithril"; -import * as Stream from "mithril/stream"; +import m from "mithril"; +import Stream from "mithril/stream"; const FRAME_BUDGET = 100; diff --git a/types/mithril/test/test-class-component.ts b/types/mithril/test/test-class-component.ts index 2e64bd398fe419..6d994de8a633a4 100644 --- a/types/mithril/test/test-class-component.ts +++ b/types/mithril/test/test-class-component.ts @@ -1,4 +1,4 @@ -import * as m from "mithril"; +import m from "mithril"; /////////////////////////////////////////////////////////// // 0. diff --git a/types/mithril/test/test-component.ts b/types/mithril/test/test-component.ts index 61c7c2677d83ba..360e113df67287 100644 --- a/types/mithril/test/test-component.ts +++ b/types/mithril/test/test-component.ts @@ -1,6 +1,4 @@ -import * as m from "mithril"; - -import { Comp, Component } from "mithril"; +import m, { Comp, Component } from "mithril"; /////////////////////////////////////////////////////////// // 0. diff --git a/types/mithril/test/test-factory-component.ts b/types/mithril/test/test-factory-component.ts index 00f1b29b107d3f..9b42122a5561c7 100644 --- a/types/mithril/test/test-factory-component.ts +++ b/types/mithril/test/test-factory-component.ts @@ -1,5 +1,4 @@ -import * as m from "mithril"; -import { ClosureComponent, Component, FactoryComponent } from "mithril"; +import m, { ClosureComponent, Component, FactoryComponent } from "mithril"; /////////////////////////////////////////////////////////// // 0. diff --git a/types/mithril/test/test-misc.ts b/types/mithril/test/test-misc.ts index 573400091a2b5d..63fb0bae124862 100644 --- a/types/mithril/test/test-misc.ts +++ b/types/mithril/test/test-misc.ts @@ -1,5 +1,5 @@ import { buildQueryString, censor, parseQueryString, trust } from "mithril"; -import * as h from "mithril/hyperscript"; +import h from "mithril/hyperscript"; import { redraw } from "mithril/redraw"; import { render } from "mithril/render"; diff --git a/types/mithril/test/test-route.ts b/types/mithril/test/test-route.ts index 20e3a7612b4611..c00dd315036968 100644 --- a/types/mithril/test/test-route.ts +++ b/types/mithril/test/test-route.ts @@ -1,4 +1,4 @@ -import * as m from "mithril"; +import m from "mithril"; const component1 = { view() { diff --git a/types/mithril/test/test-stream.ts b/types/mithril/test/test-stream.ts index 7e73e9182dd8d5..9b82e1aae541a5 100644 --- a/types/mithril/test/test-stream.ts +++ b/types/mithril/test/test-stream.ts @@ -1,4 +1,4 @@ -import * as Stream from "mithril/stream"; +import Stream from "mithril/stream"; { const s = Stream(1); diff --git a/types/mithril/tsconfig.json b/types/mithril/tsconfig.json index a7a59db34a8d86..5a4ac0d7cef5d2 100644 --- a/types/mithril/tsconfig.json +++ b/types/mithril/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es2015", "dom" diff --git a/types/mochawesome/addContext.d.ts b/types/mochawesome/addContext.d.ts index cf6c5a23232366..a153d109f6e917 100644 --- a/types/mochawesome/addContext.d.ts +++ b/types/mochawesome/addContext.d.ts @@ -1,4 +1,4 @@ -import * as Mocha from "mocha"; +import Mocha = require("mocha"); declare namespace addContext { interface TestContextObject { diff --git a/types/mock-express-request/tsconfig.json b/types/mock-express-request/tsconfig.json index 3a1fe16dfd490a..1e77ef65fec24a 100644 --- a/types/mock-express-request/tsconfig.json +++ b/types/mock-express-request/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/moment-business-time/index.d.ts b/types/moment-business-time/index.d.ts index cdaad86ffaf5c8..58120dc89254ec 100644 --- a/types/moment-business-time/index.d.ts +++ b/types/moment-business-time/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); declare module "moment" { interface Moment { diff --git a/types/moment-business/index.d.ts b/types/moment-business/index.d.ts index 6645bf2554c715..e0c960cb2d8e0c 100644 --- a/types/moment-business/index.d.ts +++ b/types/moment-business/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); /** * Calculate the number of week days between `startMoment` and `endMoment`. Week days are Monday through Friday. diff --git a/types/moment-duration-format/index.d.ts b/types/moment-duration-format/index.d.ts index 79cc6a086b54f0..83ab3ea4b56083 100644 --- a/types/moment-duration-format/index.d.ts +++ b/types/moment-duration-format/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); declare module "moment" { namespace duration { diff --git a/types/moment-duration-format/tsconfig.json b/types/moment-duration-format/tsconfig.json index bcb325fef81332..3f79cb21a8041a 100644 --- a/types/moment-duration-format/tsconfig.json +++ b/types/moment-duration-format/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/moment-holiday/index.d.ts b/types/moment-holiday/index.d.ts index 40dd5d5a56a328..ea0aed7e7982b5 100644 --- a/types/moment-holiday/index.d.ts +++ b/types/moment-holiday/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); declare module "moment" { interface Moment extends Object { diff --git a/types/moment-round/index.d.ts b/types/moment-round/index.d.ts index 991f1aa225eaba..cff42416a14b05 100644 --- a/types/moment-round/index.d.ts +++ b/types/moment-round/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); export = moment; diff --git a/types/moment-strftime2/index.d.ts b/types/moment-strftime2/index.d.ts index 1ad4d004d949ff..457aefdb221f7d 100644 --- a/types/moment-strftime2/index.d.ts +++ b/types/moment-strftime2/index.d.ts @@ -1,4 +1,4 @@ -import * as _moment from "moment"; +import _moment = require("moment"); declare module "moment" { interface Moment { diff --git a/types/mongo-sanitize/tsconfig.json b/types/mongo-sanitize/tsconfig.json index 7026ec3f26cda7..850c30c99541c7 100644 --- a/types/mongo-sanitize/tsconfig.json +++ b/types/mongo-sanitize/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/mongodb-queue/mongodb-queue-tests.ts b/types/mongodb-queue/mongodb-queue-tests.ts index 26a27f00d40e29..0070c7a8304711 100644 --- a/types/mongodb-queue/mongodb-queue-tests.ts +++ b/types/mongodb-queue/mongodb-queue-tests.ts @@ -1,5 +1,5 @@ import { MongoClient } from "mongodb"; -import * as queue from "mongodb-queue"; +import queue from "mongodb-queue"; const mongoClient = new MongoClient("mongodb://localhost:27017"); mongoClient.connect().then(() => { diff --git a/types/mongodb-queue/tsconfig.json b/types/mongodb-queue/tsconfig.json index d800f1ad501ec1..d6fce65e2e3491 100644 --- a/types/mongodb-queue/tsconfig.json +++ b/types/mongodb-queue/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/mongoose-seeder/index.d.ts b/types/mongoose-seeder/index.d.ts index c6e104c604b24b..ecab89f088a843 100644 --- a/types/mongoose-seeder/index.d.ts +++ b/types/mongoose-seeder/index.d.ts @@ -1,4 +1,4 @@ -import * as Q from "q"; +import Q = require("q"); export interface IOptions { dropDatabase?: boolean | undefined; diff --git a/types/mongoosejs__async-hooks/mongoosejs__async-hooks-tests.ts b/types/mongoosejs__async-hooks/mongoosejs__async-hooks-tests.ts index 6eb91d52238ad0..c11576faab656d 100644 --- a/types/mongoosejs__async-hooks/mongoosejs__async-hooks-tests.ts +++ b/types/mongoosejs__async-hooks/mongoosejs__async-hooks-tests.ts @@ -1,4 +1,4 @@ -import * as hooks from "@mongoosejs/async-hooks"; +import hooks from "@mongoosejs/async-hooks"; import { Schema } from "mongoose"; function func(schema: Schema) { diff --git a/types/mongoosejs__async-hooks/tsconfig.json b/types/mongoosejs__async-hooks/tsconfig.json index 1bfc08e34c0a8e..238b3462722fd4 100644 --- a/types/mongoosejs__async-hooks/tsconfig.json +++ b/types/mongoosejs__async-hooks/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/mousetrap/tsconfig.json b/types/mousetrap/tsconfig.json index 4332dab0bad7aa..3d328dd26c6bf4 100644 --- a/types/mousetrap/tsconfig.json +++ b/types/mousetrap/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/moveto/tsconfig.json b/types/moveto/tsconfig.json index 345842addde6e2..377f5d66730ed2 100644 --- a/types/moveto/tsconfig.json +++ b/types/moveto/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/msgpack-lite/index.d.ts b/types/msgpack-lite/index.d.ts index 52a53ebd9680ee..c2ee69ef6174d0 100644 --- a/types/msgpack-lite/index.d.ts +++ b/types/msgpack-lite/index.d.ts @@ -1,6 +1,6 @@ /// import { EventEmitter } from "events"; -import * as stream from "stream"; +import stream = require("stream"); /** * encode from JS Object to MessagePack diff --git a/types/msgpack/tsconfig.json b/types/msgpack/tsconfig.json index 938384dad6fadc..f770943ba7e90e 100644 --- a/types/msgpack/tsconfig.json +++ b/types/msgpack/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/mssql/mssql-tests.ts b/types/mssql/mssql-tests.ts index 6e053173f09595..47593af36ef9fa 100644 --- a/types/mssql/mssql-tests.ts +++ b/types/mssql/mssql-tests.ts @@ -1,5 +1,5 @@ import * as sql from "mssql"; -import * as msnodesqlv8 from "mssql/msnodesqlv8"; +import msnodesqlv8 from "mssql/msnodesqlv8"; import { Readable } from "stream"; interface Entity { diff --git a/types/mudder/mudder-tests.ts b/types/mudder/mudder-tests.ts index df96ac5a35a645..eec675db74a780 100644 --- a/types/mudder/mudder-tests.ts +++ b/types/mudder/mudder-tests.ts @@ -1,4 +1,4 @@ -import * as mudder from "mudder"; +import mudder from "mudder"; const abc = new mudder.SymbolTable("abc"); diff --git a/types/mui-datatables/mui-datatables-tests.tsx b/types/mui-datatables/mui-datatables-tests.tsx index b5dea449ad33fd..bbcf87806482b3 100644 --- a/types/mui-datatables/mui-datatables-tests.tsx +++ b/types/mui-datatables/mui-datatables-tests.tsx @@ -9,7 +9,7 @@ import MUIDataTable, { MUIDataTableState, Popover, } from "mui-datatables"; -import * as React from "react"; +import React from "react"; interface Props extends Omit { columns?: MUIDataTableColumn[] | undefined; diff --git a/types/mui-datatables/tsconfig.json b/types/mui-datatables/tsconfig.json index 9ff5d8ccffd195..773430189d7b7a 100644 --- a/types/mui-datatables/tsconfig.json +++ b/types/mui-datatables/tsconfig.json @@ -13,8 +13,7 @@ "jsx": "react", "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/muicss/tsconfig.json b/types/muicss/tsconfig.json index 941c2119c008fc..33b0f73209d862 100644 --- a/types/muicss/tsconfig.json +++ b/types/muicss/tsconfig.json @@ -17,7 +17,6 @@ "experimentalDecorators": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true } } diff --git a/types/multi-progress/multi-progress-tests.ts b/types/multi-progress/multi-progress-tests.ts index 89668bf96b6ffd..940c000dd8ac33 100644 --- a/types/multi-progress/multi-progress-tests.ts +++ b/types/multi-progress/multi-progress-tests.ts @@ -3,7 +3,7 @@ */ // require the library -import * as MultiProgress from "multi-progress"; +import MultiProgress from "multi-progress"; // spawn an instance with the optional stream to write to // use of `new` is optional diff --git a/types/multi-progress/tsconfig.json b/types/multi-progress/tsconfig.json index 78d2d7474eaecd..e81e54ec0c6a32 100644 --- a/types/multi-progress/tsconfig.json +++ b/types/multi-progress/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/multiavatar__multiavatar/tsconfig.json b/types/multiavatar__multiavatar/tsconfig.json index 4a32d1b879c1a1..8e47751c625081 100644 --- a/types/multiavatar__multiavatar/tsconfig.json +++ b/types/multiavatar__multiavatar/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/multicoin-address-validator/tsconfig.json b/types/multicoin-address-validator/tsconfig.json index 42db856d268698..4dd8c4d630106d 100644 --- a/types/multicoin-address-validator/tsconfig.json +++ b/types/multicoin-address-validator/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/multy/index.d.ts b/types/multy/index.d.ts index 61041608c23628..cf6d428ad8eb03 100644 --- a/types/multy/index.d.ts +++ b/types/multy/index.d.ts @@ -1,5 +1,5 @@ import { BusboyConfig } from "busboy"; -import * as Koa from "koa"; +import Koa = require("koa"); declare module "koa" { interface Request { diff --git a/types/mustache/tsconfig.json b/types/mustache/tsconfig.json index 9890dbce621659..848aa682e31dbd 100644 --- a/types/mustache/tsconfig.json +++ b/types/mustache/tsconfig.json @@ -15,6 +15,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/mysql-import/tsconfig.json b/types/mysql-import/tsconfig.json index 9f89b36f34d964..e792f5f41eab85 100644 --- a/types/mysql-import/tsconfig.json +++ b/types/mysql-import/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/n3/index.d.ts b/types/n3/index.d.ts index e4d6c9706e5673..b3e38f368499c7 100644 --- a/types/n3/index.d.ts +++ b/types/n3/index.d.ts @@ -2,7 +2,7 @@ import * as RDF from "@rdfjs/types"; import { EventEmitter } from "events"; -import * as stream from "stream"; +import stream = require("stream"); export interface Prefixes { [key: string]: I; diff --git a/types/n3/n3-tests.ts b/types/n3/n3-tests.ts index 511389061228a8..c4ccec659a5804 100644 --- a/types/n3/n3-tests.ts +++ b/types/n3/n3-tests.ts @@ -1,7 +1,7 @@ import * as RDF from "@rdfjs/types"; import * as fs from "fs"; import * as N3 from "n3"; -import * as stream from "stream"; +import stream from "stream"; function test_add_prefix() { const writer: N3.Writer = new N3.Writer(); diff --git a/types/named-routes/index.d.ts b/types/named-routes/index.d.ts index e71bbf4ec08853..2e0aa424566d93 100644 --- a/types/named-routes/index.d.ts +++ b/types/named-routes/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); declare module "express-serve-static-core" { interface Application { diff --git a/types/named-routes/named-routes-tests.ts b/types/named-routes/named-routes-tests.ts index edd1f839fea210..83576d0abcb247 100644 --- a/types/named-routes/named-routes-tests.ts +++ b/types/named-routes/named-routes-tests.ts @@ -1,5 +1,5 @@ import NamedRouter = require("named-routes"); -import * as express from "express"; +import express from "express"; const app = express(); // constructor and `RouterOptions` diff --git a/types/named-routes/tsconfig.json b/types/named-routes/tsconfig.json index 44cea9d92d24e3..9c81d2a6a8a467 100644 --- a/types/named-routes/tsconfig.json +++ b/types/named-routes/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/namespace-js/namespace-js-tests.ts b/types/namespace-js/namespace-js-tests.ts index a7426d22044ea6..b160f2e3f7b18b 100644 --- a/types/namespace-js/namespace-js-tests.ts +++ b/types/namespace-js/namespace-js-tests.ts @@ -1,4 +1,4 @@ -import * as Namespace from "namespace-js"; +import Namespace from "namespace-js"; interface UserObject1 { foo: () => string; diff --git a/types/namespace-js/tsconfig.json b/types/namespace-js/tsconfig.json index 3dd19cee2004b5..27c103f485d94a 100644 --- a/types/namespace-js/tsconfig.json +++ b/types/namespace-js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/nano-cache/tsconfig.json b/types/nano-cache/tsconfig.json index a90ecb746a9637..fe8c58b52f1168 100644 --- a/types/nano-cache/tsconfig.json +++ b/types/nano-cache/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/nearest-color/test/nearest-color-module-tests.ts b/types/nearest-color/test/nearest-color-module-tests.ts index 17dc30231da4f4..ed6b76d4006b57 100644 --- a/types/nearest-color/test/nearest-color-module-tests.ts +++ b/types/nearest-color/test/nearest-color-module-tests.ts @@ -1,4 +1,4 @@ -import * as nearestColor from "nearest-color"; +import nearestColor from "nearest-color"; nearestColor("#800"); diff --git a/types/nearest-color/tsconfig.json b/types/nearest-color/tsconfig.json index a9da01cbfa4971..ed1d70aa6624c5 100644 --- a/types/nearest-color/tsconfig.json +++ b/types/nearest-color/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/newline-remove/tsconfig.json b/types/newline-remove/tsconfig.json index a4e9f699a52a3d..24c04fbfb7190e 100644 --- a/types/newline-remove/tsconfig.json +++ b/types/newline-remove/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/next-redux-saga/tsconfig.json b/types/next-redux-saga/tsconfig.json index 4d3af93a5b24d2..0894e297567ba5 100644 --- a/types/next-redux-saga/tsconfig.json +++ b/types/next-redux-saga/tsconfig.json @@ -12,8 +12,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/nextgen-events/nextgen-events-tests.ts b/types/nextgen-events/nextgen-events-tests.ts index 3407674bcdf724..2f5a9daa921b39 100644 --- a/types/nextgen-events/nextgen-events-tests.ts +++ b/types/nextgen-events/nextgen-events-tests.ts @@ -1,5 +1,5 @@ -import * as NgEmitter from "nextgen-events"; -import * as WebSocket from "ws"; +import NgEmitter from "nextgen-events"; +import WebSocket from "ws"; const emitter = new NgEmitter(); // Normal listener diff --git a/types/nextgen-events/tsconfig.json b/types/nextgen-events/tsconfig.json index 2a9ecea98fe284..abc161767ed9d9 100644 --- a/types/nextgen-events/tsconfig.json +++ b/types/nextgen-events/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/ng-command/tsconfig.json b/types/ng-command/tsconfig.json index e39ce61147bc03..60391b05d37f70 100644 --- a/types/ng-command/tsconfig.json +++ b/types/ng-command/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/ng-stomp/tsconfig.json b/types/ng-stomp/tsconfig.json index f8d2e870921a28..7ba4ec5d03aa5b 100644 --- a/types/ng-stomp/tsconfig.json +++ b/types/ng-stomp/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/ngbootbox/tsconfig.json b/types/ngbootbox/tsconfig.json index fec94a42ca85b9..82612ef2be02a4 100644 --- a/types/ngbootbox/tsconfig.json +++ b/types/ngbootbox/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/nginstack__datasource/nginstack__datasource-tests.ts b/types/nginstack__datasource/nginstack__datasource-tests.ts index 9778348c3cc324..51f480ee00900e 100644 --- a/types/nginstack__datasource/nginstack__datasource-tests.ts +++ b/types/nginstack__datasource/nginstack__datasource-tests.ts @@ -1,7 +1,7 @@ -import * as DataSource from "@nginstack/datasource/lib/DataSource"; -import * as DataSourceColumnDef from "@nginstack/datasource/lib/DataSourceColumnDef"; -import * as DataSourceColumns from "@nginstack/datasource/lib/DataSourceColumns"; -import * as DataSourceFilters from "@nginstack/datasource/lib/DataSourceFilters"; +import DataSource from "@nginstack/datasource/lib/DataSource"; +import DataSourceColumnDef from "@nginstack/datasource/lib/DataSourceColumnDef"; +import DataSourceColumns from "@nginstack/datasource/lib/DataSourceColumns"; +import DataSourceFilters from "@nginstack/datasource/lib/DataSourceFilters"; const datasource = new DataSource(1); // $ExpectType DataSource const filters = new DataSourceFilters(datasource); // $ExpectType DataSourceFilters diff --git a/types/nginstack__datasource/tsconfig.json b/types/nginstack__datasource/tsconfig.json index f86f353d800a6c..02441af3f3e3b0 100644 --- a/types/nginstack__datasource/tsconfig.json +++ b/types/nginstack__datasource/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/nginstack__devops/tsconfig.json b/types/nginstack__devops/tsconfig.json index fe5ef555426a42..d822fc71c9a3e1 100644 --- a/types/nginstack__devops/tsconfig.json +++ b/types/nginstack__devops/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/nginstack__engine/nginstack__engine-tests.ts b/types/nginstack__engine/nginstack__engine-tests.ts index ebddb1338385f0..e344e11c2bac46 100644 --- a/types/nginstack__engine/nginstack__engine-tests.ts +++ b/types/nginstack__engine/nginstack__engine-tests.ts @@ -1,5 +1,5 @@ -import * as DataSet from '@nginstack/engine/lib/dataset/DataSet'; -import * as Database from '@nginstack/engine/lib/database/Database'; +import DataSet from "@nginstack/engine/lib/dataset/DataSet"; +import Database from "@nginstack/engine/lib/database/Database"; const values = ['test1', 'test_memo1', 1, true, new Date()]; diff --git a/types/nginstack__engine/tsconfig.json b/types/nginstack__engine/tsconfig.json index ae208e8bd98cbf..22b8d3d6970905 100644 --- a/types/nginstack__engine/tsconfig.json +++ b/types/nginstack__engine/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/nginstack__iquery/nginstack__iquery-tests.ts b/types/nginstack__iquery/nginstack__iquery-tests.ts index 6feab725f74667..89e92b048d35f2 100644 --- a/types/nginstack__iquery/nginstack__iquery-tests.ts +++ b/types/nginstack__iquery/nginstack__iquery-tests.ts @@ -1,5 +1,5 @@ -import * as IClauseSelect from "@nginstack/iquery/lib/IClauseSelect"; -import * as IQuery from "@nginstack/iquery/lib/IQuery"; +import IClauseSelect from "@nginstack/iquery/lib/IClauseSelect"; +import IQuery from "@nginstack/iquery/lib/IQuery"; const iquery = new IQuery(); const clauseSelect = new IClauseSelect(iquery); diff --git a/types/nginstack__iquery/tsconfig.json b/types/nginstack__iquery/tsconfig.json index 3c46079407c1ea..9c8caa566a6a9b 100644 --- a/types/nginstack__iquery/tsconfig.json +++ b/types/nginstack__iquery/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/nginstack__orm/nginstack__orm-tests.ts b/types/nginstack__orm/nginstack__orm-tests.ts index 75f6e0b7776327..dd395fe3d6133b 100644 --- a/types/nginstack__orm/nginstack__orm-tests.ts +++ b/types/nginstack__orm/nginstack__orm-tests.ts @@ -1,5 +1,5 @@ -import * as DataSet from "@nginstack/engine/lib/dataset/DataSet"; -import * as Entity from "@nginstack/orm/lib/Entity"; +import DataSet from "@nginstack/engine/lib/dataset/DataSet"; +import Entity from "@nginstack/orm/lib/Entity"; const entity = new Entity(1, new DataSet()); // $ExpectType Entity diff --git a/types/nginstack__orm/tsconfig.json b/types/nginstack__orm/tsconfig.json index 0d26e54ae34007..e22b97c58f328c 100644 --- a/types/nginstack__orm/tsconfig.json +++ b/types/nginstack__orm/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/nginstack__web-framework/nginstack__web-framework-tests.ts b/types/nginstack__web-framework/nginstack__web-framework-tests.ts index 0efe9536356235..1cff0144d4fe02 100644 --- a/types/nginstack__web-framework/nginstack__web-framework-tests.ts +++ b/types/nginstack__web-framework/nginstack__web-framework-tests.ts @@ -1,5 +1,5 @@ -import * as Grid from "@nginstack/web-framework/lib/grid/Grid"; -import * as GridField from "@nginstack/web-framework/lib/grid/GridField"; +import Grid from "@nginstack/web-framework/lib/grid/Grid"; +import GridField from "@nginstack/web-framework/lib/grid/GridField"; const grid = new Grid("*", "name"); // $ExpectType Grid const gridField = new GridField("name", "type", null); // $ExpectType GridField diff --git a/types/nginstack__web-framework/tsconfig.json b/types/nginstack__web-framework/tsconfig.json index 671517dc483e7c..aafc74937fc87c 100644 --- a/types/nginstack__web-framework/tsconfig.json +++ b/types/nginstack__web-framework/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/ngprogress-lite/tsconfig.json b/types/ngprogress-lite/tsconfig.json index 77e84a9ef7729a..f3440dd5f6de7e 100644 --- a/types/ngprogress-lite/tsconfig.json +++ b/types/ngprogress-lite/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/nightwind/tsconfig.json b/types/nightwind/tsconfig.json index 75401a9011c5ae..4e7b69f2bb3f5a 100644 --- a/types/nightwind/tsconfig.json +++ b/types/nightwind/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/nivo-slider/tsconfig.json b/types/nivo-slider/tsconfig.json index bd9ebd39e14f23..eaae2f197dc47c 100644 --- a/types/nivo-slider/tsconfig.json +++ b/types/nivo-slider/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/node-7z/index.d.ts b/types/node-7z/index.d.ts index 05d00c369d5002..610689d8353373 100644 --- a/types/node-7z/index.d.ts +++ b/types/node-7z/index.d.ts @@ -1,7 +1,7 @@ /// import { ChildProcess } from "child_process"; -import * as StreamNS from "stream"; +import StreamNS = require("stream"); interface Data { file: string; diff --git a/types/node-dijkstra/tsconfig.json b/types/node-dijkstra/tsconfig.json index d0272b1ff1bf1b..cb6b7645a6f978 100644 --- a/types/node-dijkstra/tsconfig.json +++ b/types/node-dijkstra/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/node-gettext/tsconfig.json b/types/node-gettext/tsconfig.json index 02d019bb2a1d00..77eead45f2f453 100644 --- a/types/node-gettext/tsconfig.json +++ b/types/node-gettext/tsconfig.json @@ -10,7 +10,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "allowSyntheticDefaultImports": true, "strictFunctionTypes": true }, diff --git a/types/node-json-logger/node-json-logger-tests.ts b/types/node-json-logger/node-json-logger-tests.ts index 133490d6f8784c..31ef533e6f2520 100644 --- a/types/node-json-logger/node-json-logger-tests.ts +++ b/types/node-json-logger/node-json-logger-tests.ts @@ -1,4 +1,4 @@ -import * as Logger from "node-json-logger"; +import Logger from "node-json-logger"; // $ExpectType TLogger const logger = new Logger(); diff --git a/types/node-json-logger/tsconfig.json b/types/node-json-logger/tsconfig.json index 842e83724548b0..440ea9bc129f80 100644 --- a/types/node-json-logger/tsconfig.json +++ b/types/node-json-logger/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/node-mysql-wrapper/index.d.ts b/types/node-mysql-wrapper/index.d.ts index a485c51c43fe7c..4216906fde3997 100644 --- a/types/node-mysql-wrapper/index.d.ts +++ b/types/node-mysql-wrapper/index.d.ts @@ -1,6 +1,6 @@ /// -import * as Promise from "bluebird"; +import Promise = require("bluebird"); import { EventEmitter } from "events"; import * as Mysql from "mysql"; diff --git a/types/node-notifier/v5/node-notifier-tests.ts b/types/node-notifier/v5/node-notifier-tests.ts index 2a69d1f63c8ab9..6816697130b907 100644 --- a/types/node-notifier/v5/node-notifier-tests.ts +++ b/types/node-notifier/v5/node-notifier-tests.ts @@ -1,7 +1,7 @@ "use strict"; import notifier = require("node-notifier"); -import * as path from "path"; +import path from "path"; notifier.notify(); notifier.notify("Hello there"); diff --git a/types/node-red-node-test-helper/index.d.ts b/types/node-red-node-test-helper/index.d.ts index 641e53fb980b67..2cd37f156a10e3 100644 --- a/types/node-red-node-test-helper/index.d.ts +++ b/types/node-red-node-test-helper/index.d.ts @@ -2,7 +2,7 @@ import { LocalSettings } from "@node-red/runtime"; import { EventEmitter } from "events"; import { Node, NodeCredentials, NodeDef, NodeInitializer } from "node-red"; import { SinonSpy } from "sinon"; -import * as supertest from "supertest"; +import supertest = require("supertest"); declare class NodeTestHelper extends EventEmitter { init(nodeRedRuntime: string, userSettings?: LocalSettings): void; diff --git a/types/node-sass-middleware/index.d.ts b/types/node-sass-middleware/index.d.ts index 02b47607496c70..dcdedc3c105c47 100644 --- a/types/node-sass-middleware/index.d.ts +++ b/types/node-sass-middleware/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); import * as sass from "node-sass"; interface Options extends sass.Options { diff --git a/types/node-sprite-generator/index.d.ts b/types/node-sprite-generator/index.d.ts index 23637c6c97b8a0..10605ac97ecd2f 100644 --- a/types/node-sprite-generator/index.d.ts +++ b/types/node-sprite-generator/index.d.ts @@ -1,4 +1,4 @@ -import * as e from "express"; +import e = require("express"); export as namespace NodeSpriteGenerator; export = NodeSpriteGenerator; diff --git a/types/node-ssdp/index.d.ts b/types/node-ssdp/index.d.ts index b1fdd7f19e26b8..157b130ba843e8 100644 --- a/types/node-ssdp/index.d.ts +++ b/types/node-ssdp/index.d.ts @@ -1,7 +1,7 @@ /// import * as dgram from "dgram"; -import * as events from "events"; +import events = require("events"); export interface SsdpHeaders { /** diff --git a/types/node-static/index.d.ts b/types/node-static/index.d.ts index eccdcbc2d0a1c5..007292024ef313 100644 --- a/types/node-static/index.d.ts +++ b/types/node-static/index.d.ts @@ -1,6 +1,6 @@ /// -import * as events from "events"; +import events = require("events"); import * as fs from "fs"; import * as http from "http"; import * as mime from "mime"; diff --git a/types/node-zopfli-es/node-zopfli-es-tests.ts b/types/node-zopfli-es/node-zopfli-es-tests.ts index fc0aa9d62f9918..1f51269a18055a 100644 --- a/types/node-zopfli-es/node-zopfli-es-tests.ts +++ b/types/node-zopfli-es/node-zopfli-es-tests.ts @@ -1,5 +1,5 @@ import * as fs from "fs"; -import * as Zopfli from "node-zopfli-es"; +import Zopfli from "node-zopfli-es"; const opts: Zopfli.Options = { verbose: true, diff --git a/types/node-zopfli-es/tsconfig.json b/types/node-zopfli-es/tsconfig.json index 6c7da58c621960..48c0b0bcdb4cd7 100644 --- a/types/node-zopfli-es/tsconfig.json +++ b/types/node-zopfli-es/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/node-zopfli/node-zopfli-tests.ts b/types/node-zopfli/node-zopfli-tests.ts index aef1e2c4792589..c00462b9b613bf 100644 --- a/types/node-zopfli/node-zopfli-tests.ts +++ b/types/node-zopfli/node-zopfli-tests.ts @@ -1,5 +1,5 @@ import * as fs from "fs"; -import * as Zopfli from "node-zopfli"; +import Zopfli from "node-zopfli"; const opts: Zopfli.Options = { verbose: true, diff --git a/types/node-zopfli/tsconfig.json b/types/node-zopfli/tsconfig.json index 119277e3ed667b..225dc66adbdf6f 100644 --- a/types/node-zopfli/tsconfig.json +++ b/types/node-zopfli/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/node/.vscode/settings.json b/types/node/.vscode/settings.json new file mode 100644 index 00000000000000..2afc0087d72fd2 --- /dev/null +++ b/types/node/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "typescript.tsdk": "../../node_modules/typescript/lib" +} diff --git a/types/node/test/events.ts b/types/node/test/events.ts index 5ff88c63a06af5..00afd3e1a5fe3d 100644 --- a/types/node/test/events.ts +++ b/types/node/test/events.ts @@ -1,4 +1,4 @@ -import * as events from "node:events"; +import events from "node:events"; const emitter: events = new events.EventEmitter(); declare const listener: (...args: any[]) => void; diff --git a/types/node/test/events_generic.ts b/types/node/test/events_generic.ts index ebc342451c75bc..a40882f0bea35a 100644 --- a/types/node/test/events_generic.ts +++ b/types/node/test/events_generic.ts @@ -1,4 +1,4 @@ -import * as events from "node:events"; +import events = require("node:events"); interface T { event1: [string, number]; diff --git a/types/node/test/v8.ts b/types/node/test/v8.ts index 4eb7651eafc883..a135f0727a0893 100644 --- a/types/node/test/v8.ts +++ b/types/node/test/v8.ts @@ -1,4 +1,4 @@ -import * as assert from "node:assert"; +import assert from "node:assert"; import { Readable } from "node:stream"; import * as v8 from "node:v8"; import * as zlib from "node:zlib"; diff --git a/types/node/tsconfig.dom.json b/types/node/tsconfig.dom.json index 8b80caf26e3c48..2dc8ca5e70f2f0 100644 --- a/types/node/tsconfig.dom.json +++ b/types/node/tsconfig.dom.json @@ -18,6 +18,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/node/tsconfig.json b/types/node/tsconfig.json index 36847fe4b52ac9..6e4e16c38e3223 100644 --- a/types/node/tsconfig.json +++ b/types/node/tsconfig.json @@ -20,6 +20,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/node/tsconfig.non-dom.json b/types/node/tsconfig.non-dom.json index 178da97a7aa80b..13f6e77c0150bf 100644 --- a/types/node/tsconfig.non-dom.json +++ b/types/node/tsconfig.non-dom.json @@ -17,6 +17,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/node/tsconfig.webworker.json b/types/node/tsconfig.webworker.json index 5a62e6ab37b518..0936fc3d3bd2a1 100644 --- a/types/node/tsconfig.webworker.json +++ b/types/node/tsconfig.webworker.json @@ -18,6 +18,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/node/v20/test/events.ts b/types/node/v20/test/events.ts index 5ff88c63a06af5..00afd3e1a5fe3d 100644 --- a/types/node/v20/test/events.ts +++ b/types/node/v20/test/events.ts @@ -1,4 +1,4 @@ -import * as events from "node:events"; +import events from "node:events"; const emitter: events = new events.EventEmitter(); declare const listener: (...args: any[]) => void; diff --git a/types/node/v20/test/events_generic.ts b/types/node/v20/test/events_generic.ts index ebc342451c75bc..a40882f0bea35a 100644 --- a/types/node/v20/test/events_generic.ts +++ b/types/node/v20/test/events_generic.ts @@ -1,4 +1,4 @@ -import * as events from "node:events"; +import events = require("node:events"); interface T { event1: [string, number]; diff --git a/types/node/v20/test/util_types.ts b/types/node/v20/test/util_types.ts index 3acbf51fdbbc9a..97bd075cf576b0 100644 --- a/types/node/v20/test/util_types.ts +++ b/types/node/v20/test/util_types.ts @@ -1,4 +1,4 @@ -import * as types from "node:util/types"; +import types from "node:util/types"; import { createPublicKey, KeyObject, webcrypto } from "node:crypto"; diff --git a/types/node/v20/test/v8.ts b/types/node/v20/test/v8.ts index 622443e92601d4..f566c9e843fabd 100644 --- a/types/node/v20/test/v8.ts +++ b/types/node/v20/test/v8.ts @@ -1,4 +1,4 @@ -import * as assert from "node:assert"; +import assert from "node:assert"; import { Readable } from "node:stream"; import * as v8 from "node:v8"; import * as zlib from "node:zlib"; diff --git a/types/node/v20/tsconfig.dom.json b/types/node/v20/tsconfig.dom.json index 8b80caf26e3c48..2dc8ca5e70f2f0 100644 --- a/types/node/v20/tsconfig.dom.json +++ b/types/node/v20/tsconfig.dom.json @@ -18,6 +18,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/node/v20/tsconfig.json b/types/node/v20/tsconfig.json index d9573dca2b2753..116deb037fa50b 100644 --- a/types/node/v20/tsconfig.json +++ b/types/node/v20/tsconfig.json @@ -19,6 +19,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/node/v20/tsconfig.non-dom.json b/types/node/v20/tsconfig.non-dom.json index 178da97a7aa80b..13f6e77c0150bf 100644 --- a/types/node/v20/tsconfig.non-dom.json +++ b/types/node/v20/tsconfig.non-dom.json @@ -17,6 +17,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/node/v22/test/events.ts b/types/node/v22/test/events.ts index 5ff88c63a06af5..00afd3e1a5fe3d 100644 --- a/types/node/v22/test/events.ts +++ b/types/node/v22/test/events.ts @@ -1,4 +1,4 @@ -import * as events from "node:events"; +import events from "node:events"; const emitter: events = new events.EventEmitter(); declare const listener: (...args: any[]) => void; diff --git a/types/node/v22/test/events_generic.ts b/types/node/v22/test/events_generic.ts index ebc342451c75bc..a40882f0bea35a 100644 --- a/types/node/v22/test/events_generic.ts +++ b/types/node/v22/test/events_generic.ts @@ -1,4 +1,4 @@ -import * as events from "node:events"; +import events = require("node:events"); interface T { event1: [string, number]; diff --git a/types/node/v22/test/util_types.ts b/types/node/v22/test/util_types.ts index 24be04f046e43e..0e3751e87c74f0 100644 --- a/types/node/v22/test/util_types.ts +++ b/types/node/v22/test/util_types.ts @@ -1,4 +1,4 @@ -import * as types from "node:util/types"; +import types from "node:util/types"; import { createPublicKey, KeyObject, webcrypto } from "node:crypto"; diff --git a/types/node/v22/test/v8.ts b/types/node/v22/test/v8.ts index 4eb7651eafc883..a135f0727a0893 100644 --- a/types/node/v22/test/v8.ts +++ b/types/node/v22/test/v8.ts @@ -1,4 +1,4 @@ -import * as assert from "node:assert"; +import assert from "node:assert"; import { Readable } from "node:stream"; import * as v8 from "node:v8"; import * as zlib from "node:zlib"; diff --git a/types/node/v22/tsconfig.dom.json b/types/node/v22/tsconfig.dom.json index 8b80caf26e3c48..2dc8ca5e70f2f0 100644 --- a/types/node/v22/tsconfig.dom.json +++ b/types/node/v22/tsconfig.dom.json @@ -18,6 +18,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/node/v22/tsconfig.json b/types/node/v22/tsconfig.json index 36847fe4b52ac9..6e4e16c38e3223 100644 --- a/types/node/v22/tsconfig.json +++ b/types/node/v22/tsconfig.json @@ -20,6 +20,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/node/v22/tsconfig.non-dom.json b/types/node/v22/tsconfig.non-dom.json index 178da97a7aa80b..13f6e77c0150bf 100644 --- a/types/node/v22/tsconfig.non-dom.json +++ b/types/node/v22/tsconfig.non-dom.json @@ -17,6 +17,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/node/v22/tsconfig.webworker.json b/types/node/v22/tsconfig.webworker.json index 5a62e6ab37b518..0936fc3d3bd2a1 100644 --- a/types/node/v22/tsconfig.webworker.json +++ b/types/node/v22/tsconfig.webworker.json @@ -18,6 +18,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/nodemailer-express-handlebars/index.d.ts b/types/nodemailer-express-handlebars/index.d.ts index 768756f9011232..a67af8a7f1335f 100644 --- a/types/nodemailer-express-handlebars/index.d.ts +++ b/types/nodemailer-express-handlebars/index.d.ts @@ -1,6 +1,6 @@ import { create } from "express-handlebars"; import { SentMessageInfo, Transporter } from "nodemailer"; -import * as Mail from "nodemailer/lib/mailer"; +import Mail = require("nodemailer/lib/mailer"); declare function hbs(options: hbs.NodemailerExpressHandlebarsOptions): Mail.PluginFunction; diff --git a/types/nodemailer/lib/shared/index.d.ts b/types/nodemailer/lib/shared/index.d.ts index 247c9118a2eb75..20ca440e067a2e 100644 --- a/types/nodemailer/lib/shared/index.d.ts +++ b/types/nodemailer/lib/shared/index.d.ts @@ -2,7 +2,7 @@ import SMTPConnection = require("../smtp-connection"); -import * as stream from "stream"; +import stream = require("stream"); export type LoggerLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal"; diff --git a/types/nodemailer/lib/smtp-transport/index.d.ts b/types/nodemailer/lib/smtp-transport/index.d.ts index 6a741dc084f6fe..f9966aedd84e81 100644 --- a/types/nodemailer/lib/smtp-transport/index.d.ts +++ b/types/nodemailer/lib/smtp-transport/index.d.ts @@ -1,7 +1,7 @@ /// import { EventEmitter } from "events"; -import * as stream from "stream"; +import stream = require("stream"); import { Transport, TransportOptions } from "../.."; import * as shared from "../shared"; diff --git a/types/nodemailer/nodemailer-tests.ts b/types/nodemailer/nodemailer-tests.ts index 52f408a7f98086..c474ae42fedd08 100644 --- a/types/nodemailer/nodemailer-tests.ts +++ b/types/nodemailer/nodemailer-tests.ts @@ -28,7 +28,7 @@ import LeWindows = require("nodemailer/lib/sendmail-transport/le-windows"); import LeUnix = require("nodemailer/lib/sendmail-transport/le-unix"); import * as fs from "fs"; -import * as stream from "stream"; +import stream from "stream"; // mock aws-sdk const aws = { diff --git a/types/nodemailer/v6/lib/shared/index.d.ts b/types/nodemailer/v6/lib/shared/index.d.ts index 247c9118a2eb75..20ca440e067a2e 100644 --- a/types/nodemailer/v6/lib/shared/index.d.ts +++ b/types/nodemailer/v6/lib/shared/index.d.ts @@ -2,7 +2,7 @@ import SMTPConnection = require("../smtp-connection"); -import * as stream from "stream"; +import stream = require("stream"); export type LoggerLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal"; diff --git a/types/nodemailer/v6/lib/smtp-transport/index.d.ts b/types/nodemailer/v6/lib/smtp-transport/index.d.ts index 6a741dc084f6fe..f9966aedd84e81 100644 --- a/types/nodemailer/v6/lib/smtp-transport/index.d.ts +++ b/types/nodemailer/v6/lib/smtp-transport/index.d.ts @@ -1,7 +1,7 @@ /// import { EventEmitter } from "events"; -import * as stream from "stream"; +import stream = require("stream"); import { Transport, TransportOptions } from "../.."; import * as shared from "../shared"; diff --git a/types/nodemailer/v6/nodemailer-tests.ts b/types/nodemailer/v6/nodemailer-tests.ts index 186126c22efd83..0c676b54267597 100644 --- a/types/nodemailer/v6/nodemailer-tests.ts +++ b/types/nodemailer/v6/nodemailer-tests.ts @@ -27,7 +27,7 @@ import LeWindows = require("nodemailer/lib/sendmail-transport/le-windows"); import LeUnix = require("nodemailer/lib/sendmail-transport/le-unix"); import * as fs from "fs"; -import * as stream from "stream"; +import stream from "stream"; // 1. Nodemailer diff --git a/types/normalize-jss/tsconfig.json b/types/normalize-jss/tsconfig.json index a1695741ab4cf2..a1d870fbf34147 100644 --- a/types/normalize-jss/tsconfig.json +++ b/types/normalize-jss/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/npm-registry-fetch/index.d.ts b/types/npm-registry-fetch/index.d.ts index 8eac4b71669974..80e457756b31a7 100644 --- a/types/npm-registry-fetch/index.d.ts +++ b/types/npm-registry-fetch/index.d.ts @@ -2,7 +2,7 @@ import { Agent } from "http"; import { Response } from "node-fetch"; -import * as npa from "npm-package-arg"; +import npa = require("npm-package-arg"); import { Logger } from "npmlog"; import { Integrity } from "ssri"; import { Readable, Stream } from "stream"; diff --git a/types/npm-registry-fetch/v4/index.d.ts b/types/npm-registry-fetch/v4/index.d.ts index d6d0e7bb676caf..a8a925bfc100fe 100644 --- a/types/npm-registry-fetch/v4/index.d.ts +++ b/types/npm-registry-fetch/v4/index.d.ts @@ -2,7 +2,7 @@ import { Agent } from "http"; import { Response } from "node-fetch"; -import * as npa from "npm-package-arg"; +import npa = require("npm-package-arg"); import { Logger } from "npmlog"; import { Integrity } from "ssri"; import { Readable, Stream } from "stream"; diff --git a/types/npmlog/npmlog-tests.ts b/types/npmlog/npmlog-tests.ts index b7274f331e7d18..50e4eaf5e0bced 100644 --- a/types/npmlog/npmlog-tests.ts +++ b/types/npmlog/npmlog-tests.ts @@ -1,4 +1,4 @@ -import * as npmlog from "npmlog"; +import npmlog from "npmlog"; const prefix = "str"; const message = "otherStr"; diff --git a/types/npmlog/tsconfig.json b/types/npmlog/tsconfig.json index e3b4e469ce248b..a8a3b530838182 100644 --- a/types/npmlog/tsconfig.json +++ b/types/npmlog/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/nspell/tsconfig.json b/types/nspell/tsconfig.json index ad8563390e8533..4d24cba14bff5c 100644 --- a/types/nspell/tsconfig.json +++ b/types/nspell/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "module": "node16", "lib": [ "es6" diff --git a/types/nsqjs/index.d.ts b/types/nsqjs/index.d.ts index 2c78b3142d46c5..61eaaeef45ff5a 100644 --- a/types/nsqjs/index.d.ts +++ b/types/nsqjs/index.d.ts @@ -1,6 +1,6 @@ /// -import * as events from "events"; +import events = require("events"); export class Message extends events.EventEmitter { static BACKOFF: string; diff --git a/types/ntqdm/ntqdm-tests.ts b/types/ntqdm/ntqdm-tests.ts index cf57845c9d672a..da50302494e6fd 100644 --- a/types/ntqdm/ntqdm-tests.ts +++ b/types/ntqdm/ntqdm-tests.ts @@ -1,4 +1,4 @@ -import * as tqdm from "ntqdm"; +import tqdm from "ntqdm"; const array = [1, 2, 3]; diff --git a/types/ntqdm/tsconfig.json b/types/ntqdm/tsconfig.json index bd283a1b961c67..01a2fbe1419bd2 100644 --- a/types/ntqdm/tsconfig.json +++ b/types/ntqdm/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/nuclear-js/tsconfig.json b/types/nuclear-js/tsconfig.json index fd213d3dd7e3af..19a2ca38946903 100644 --- a/types/nuclear-js/tsconfig.json +++ b/types/nuclear-js/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/numeral/tsconfig.json b/types/numeral/tsconfig.json index e92f56ecafcba9..d8f5f48a359de6 100644 --- a/types/numeral/tsconfig.json +++ b/types/numeral/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/nvd3/tsconfig.json b/types/nvd3/tsconfig.json index efe5a12ed6a8a0..150c79324dedfd 100644 --- a/types/nvd3/tsconfig.json +++ b/types/nvd3/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": false, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/nwsapi/tsconfig.json b/types/nwsapi/tsconfig.json index 77ea5c71fab148..674d61e0b2c788 100644 --- a/types/nwsapi/tsconfig.json +++ b/types/nwsapi/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "test/nwsapi.cjs.test.ts", diff --git a/types/oauth-shim/index.d.ts b/types/oauth-shim/index.d.ts index 13bcc31be536a1..31ff81ae624edd 100644 --- a/types/oauth-shim/index.d.ts +++ b/types/oauth-shim/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); export = oauthShim; diff --git a/types/obj-file-parser/tsconfig.json b/types/obj-file-parser/tsconfig.json index cb0877f75c55ec..6b61d404aea8d5 100644 --- a/types/obj-file-parser/tsconfig.json +++ b/types/obj-file-parser/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/object-fit-images/tsconfig.json b/types/object-fit-images/tsconfig.json index 7718305fffcea7..76cc9a3484aaab 100644 --- a/types/object-fit-images/tsconfig.json +++ b/types/object-fit-images/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/object-merge/tsconfig.json b/types/object-merge/tsconfig.json index 4c2c45c8c4542a..e8785200f82f70 100644 --- a/types/object-merge/tsconfig.json +++ b/types/object-merge/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/obsolete-web/tsconfig.json b/types/obsolete-web/tsconfig.json index 10afe77044fb4c..57002007a27cd0 100644 --- a/types/obsolete-web/tsconfig.json +++ b/types/obsolete-web/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/omelette/tsconfig.json b/types/omelette/tsconfig.json index 6a8332b8104352..43f0e3bfbccdca 100644 --- a/types/omelette/tsconfig.json +++ b/types/omelette/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/openfin/_v2/transport/websocket.d.ts b/types/openfin/_v2/transport/websocket.d.ts index ea1926e2f16152..a1099f030530ff 100644 --- a/types/openfin/_v2/transport/websocket.d.ts +++ b/types/openfin/_v2/transport/websocket.d.ts @@ -1,6 +1,6 @@ /// import { EventEmitter } from "events"; -import * as WebSocket from "ws"; +import WebSocket = require("ws"); import { READY_STATE, Wire } from "./wire"; export default class WebSocketTransport extends EventEmitter implements Wire { protected wire: WebSocket; diff --git a/types/openfin/v50/_v2/transport/websocket.d.ts b/types/openfin/v50/_v2/transport/websocket.d.ts index ea1926e2f16152..a1099f030530ff 100644 --- a/types/openfin/v50/_v2/transport/websocket.d.ts +++ b/types/openfin/v50/_v2/transport/websocket.d.ts @@ -1,6 +1,6 @@ /// import { EventEmitter } from "events"; -import * as WebSocket from "ws"; +import WebSocket = require("ws"); import { READY_STATE, Wire } from "./wire"; export default class WebSocketTransport extends EventEmitter implements Wire { protected wire: WebSocket; diff --git a/types/openjscad/tsconfig.json b/types/openjscad/tsconfig.json index 924165eda941cb..959d8f487244f8 100644 --- a/types/openjscad/tsconfig.json +++ b/types/openjscad/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/openseadragon/tsconfig.json b/types/openseadragon/tsconfig.json index 1d69f7b95775b4..d7b47718912428 100644 --- a/types/openseadragon/tsconfig.json +++ b/types/openseadragon/tsconfig.json @@ -12,7 +12,6 @@ "strictFunctionTypes": true, "noImplicitThis": true, "types": [], - "esModuleInterop": true, "forceConsistentCasingInFileNames": true }, "files": [ diff --git a/types/opossum-prometheus/index.d.ts b/types/opossum-prometheus/index.d.ts index 91042d0d1b7f7d..b2b600c6464b14 100644 --- a/types/opossum-prometheus/index.d.ts +++ b/types/opossum-prometheus/index.d.ts @@ -1,4 +1,4 @@ -import type * as CircuitBreaker from "opossum"; +import CircuitBreaker = require("opossum"); import type { Registry } from "prom-client"; /** diff --git a/types/opossum/opossum-tests.ts b/types/opossum/opossum-tests.ts index b296be0c87eee6..5cb4c28a948a60 100644 --- a/types/opossum/opossum-tests.ts +++ b/types/opossum/opossum-tests.ts @@ -3,7 +3,7 @@ import { EventEmitter } from "node:events"; import * as fs from "node:fs"; import { promisify } from "node:util"; -import * as CircuitBreaker from "opossum"; +import CircuitBreaker from "opossum"; let breaker: CircuitBreaker; const callbackNoArgs = async () => console.log("foo"); diff --git a/types/opossum/tsconfig.json b/types/opossum/tsconfig.json index 301c887bc9acb1..0bd2c81fc32dc8 100644 --- a/types/opossum/tsconfig.json +++ b/types/opossum/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/oracledb/tsconfig.json b/types/oracledb/tsconfig.json index a4fce8e983acbf..0d5374decf12b9 100644 --- a/types/oracledb/tsconfig.json +++ b/types/oracledb/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/oracledb/v3/oracledb-tests.ts b/types/oracledb/v3/oracledb-tests.ts index 203845c70d4834..cb858c45c15b0e 100644 --- a/types/oracledb/v3/oracledb-tests.ts +++ b/types/oracledb/v3/oracledb-tests.ts @@ -1,4 +1,4 @@ -import * as assert from "assert"; +import assert from "assert"; import * as oracledb from "oracledb"; /* diff --git a/types/oracledb/v3/tsconfig.json b/types/oracledb/v3/tsconfig.json index 9fe42652f31b6f..0d5374decf12b9 100644 --- a/types/oracledb/v3/tsconfig.json +++ b/types/oracledb/v3/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/orchestrator/index.d.ts b/types/orchestrator/index.d.ts index 19dada2aaf5814..403728c77b4476 100644 --- a/types/orchestrator/index.d.ts +++ b/types/orchestrator/index.d.ts @@ -1,8 +1,8 @@ /// -import * as events from "events"; -import * as Q from "q"; -import * as stream from "stream"; +import events = require("events"); +import Q = require("q"); +import stream = require("stream"); /** A module for sequencing and executing tasks and dependencies in maximum concurrency */ diff --git a/types/ottomated__passport-streamlabs/index.d.ts b/types/ottomated__passport-streamlabs/index.d.ts index eb756b9285a338..17100018172ace 100644 --- a/types/ottomated__passport-streamlabs/index.d.ts +++ b/types/ottomated__passport-streamlabs/index.d.ts @@ -1,7 +1,7 @@ -import * as express from "express"; +import express = require("express"); import { OutgoingHttpHeaders } from "http"; import * as passport from "passport"; -import * as oauth2 from "passport-oauth2"; +import oauth2 = require("passport-oauth2"); import streamlabs = Strategy; diff --git a/types/ottomated__passport-twitch/index.d.ts b/types/ottomated__passport-twitch/index.d.ts index bcddc31c0050ad..f093c938815b1e 100644 --- a/types/ottomated__passport-twitch/index.d.ts +++ b/types/ottomated__passport-twitch/index.d.ts @@ -1,7 +1,7 @@ -import * as express from "express"; +import express = require("express"); import { OutgoingHttpHeaders } from "http"; import * as passport from "passport"; -import * as oauth2 from "passport-oauth2"; +import oauth2 = require("passport-oauth2"); import twitch = Strategy; diff --git a/types/p5/constants.d.ts b/types/p5/constants.d.ts index 57475f305a2f13..ff7a23737f23e5 100644 --- a/types/p5/constants.d.ts +++ b/types/p5/constants.d.ts @@ -1,4 +1,4 @@ -import * as p5 from './index'; +import p5 = require("./index"); declare module './index' { type ANGLE_MODE = RADIANS | DEGREES; diff --git a/types/p5/global.d.ts b/types/p5/global.d.ts index 1f7eae8cbf9c87..69eb1a0c5f8693 100644 --- a/types/p5/global.d.ts +++ b/types/p5/global.d.ts @@ -3,7 +3,7 @@ // This file was auto-generated. Please do not edit it. /// -import * as p5 from './index'; +import p5 = require("./index"); declare global { /** * Creates a screen reader accessible description for diff --git a/types/p5/lib/addons/p5.sound.d.ts b/types/p5/lib/addons/p5.sound.d.ts index ca6d948db9baa8..4f4f3152567aa2 100644 --- a/types/p5/lib/addons/p5.sound.d.ts +++ b/types/p5/lib/addons/p5.sound.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class SoundFile { diff --git a/types/p5/literals.d.ts b/types/p5/literals.d.ts index c416cfb6d4a010..e87f74058fa926 100644 --- a/types/p5/literals.d.ts +++ b/types/p5/literals.d.ts @@ -1,4 +1,4 @@ -import * as p5 from './index'; +import p5 = require("./index"); declare module './index' { type ADD = 'lighter'; diff --git a/types/p5/src/accessibility/describe.d.ts b/types/p5/src/accessibility/describe.d.ts index f39e3f84d96191..6a4635c5c64a1a 100644 --- a/types/p5/src/accessibility/describe.d.ts +++ b/types/p5/src/accessibility/describe.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/accessibility/outputs.d.ts b/types/p5/src/accessibility/outputs.d.ts index 1b0a5512ceab89..d815e81337ebfa 100644 --- a/types/p5/src/accessibility/outputs.d.ts +++ b/types/p5/src/accessibility/outputs.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/color/creating_reading.d.ts b/types/p5/src/color/creating_reading.d.ts index 5893e76d0e02c7..7bff693c393da4 100644 --- a/types/p5/src/color/creating_reading.d.ts +++ b/types/p5/src/color/creating_reading.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/color/p5.Color.d.ts b/types/p5/src/color/p5.Color.d.ts index 3f2df93ae0a018..b24bd7b0295122 100644 --- a/types/p5/src/color/p5.Color.d.ts +++ b/types/p5/src/color/p5.Color.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class Color { diff --git a/types/p5/src/color/setting.d.ts b/types/p5/src/color/setting.d.ts index cbeabb9aa7789a..d738c84215a8d5 100644 --- a/types/p5/src/color/setting.d.ts +++ b/types/p5/src/color/setting.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/core/constants.d.ts b/types/p5/src/core/constants.d.ts index ddb5823205b4ae..dcbd71184115c1 100644 --- a/types/p5/src/core/constants.d.ts +++ b/types/p5/src/core/constants.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/core/environment.d.ts b/types/p5/src/core/environment.d.ts index 0688db32375949..e4061f6240e82a 100644 --- a/types/p5/src/core/environment.d.ts +++ b/types/p5/src/core/environment.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/core/p5.Element.d.ts b/types/p5/src/core/p5.Element.d.ts index 1676f662321ea8..62c83d3d3e04ab 100644 --- a/types/p5/src/core/p5.Element.d.ts +++ b/types/p5/src/core/p5.Element.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class Element { diff --git a/types/p5/src/core/p5.Graphics.d.ts b/types/p5/src/core/p5.Graphics.d.ts index 14ef0823eb4ca4..c2d0a0c54bae70 100644 --- a/types/p5/src/core/p5.Graphics.d.ts +++ b/types/p5/src/core/p5.Graphics.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { // Work-around for p5.Graphics inheriting from both p5 and p5.Element diff --git a/types/p5/src/core/p5.Renderer.d.ts b/types/p5/src/core/p5.Renderer.d.ts index b4bc3d6b15286e..05a8012f46824d 100644 --- a/types/p5/src/core/p5.Renderer.d.ts +++ b/types/p5/src/core/p5.Renderer.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class Renderer extends Element { diff --git a/types/p5/src/core/rendering.d.ts b/types/p5/src/core/rendering.d.ts index 03400c9a154af9..e5538c934d1ab2 100644 --- a/types/p5/src/core/rendering.d.ts +++ b/types/p5/src/core/rendering.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/core/shape/2d_primitives.d.ts b/types/p5/src/core/shape/2d_primitives.d.ts index d1f14c80ea93a9..d320657ad272d2 100644 --- a/types/p5/src/core/shape/2d_primitives.d.ts +++ b/types/p5/src/core/shape/2d_primitives.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../../index'; +import p5 = require("../../../index"); declare module '../../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/core/shape/attributes.d.ts b/types/p5/src/core/shape/attributes.d.ts index cf6439d5d737ad..69bd404cde2404 100644 --- a/types/p5/src/core/shape/attributes.d.ts +++ b/types/p5/src/core/shape/attributes.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../../index'; +import p5 = require("../../../index"); declare module '../../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/core/shape/curves.d.ts b/types/p5/src/core/shape/curves.d.ts index 7dedf62b1eedd5..1ea24ff1daeeda 100644 --- a/types/p5/src/core/shape/curves.d.ts +++ b/types/p5/src/core/shape/curves.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../../index'; +import p5 = require("../../../index"); declare module '../../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/core/shape/vertex.d.ts b/types/p5/src/core/shape/vertex.d.ts index 77d9af6c4b8f22..7315667604520c 100644 --- a/types/p5/src/core/shape/vertex.d.ts +++ b/types/p5/src/core/shape/vertex.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../../index'; +import p5 = require("../../../index"); declare module '../../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/core/structure.d.ts b/types/p5/src/core/structure.d.ts index fb2bf421debf97..994c1760dc4fc3 100644 --- a/types/p5/src/core/structure.d.ts +++ b/types/p5/src/core/structure.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/core/transform.d.ts b/types/p5/src/core/transform.d.ts index 0e55b4483bd731..b1788fbcc457ed 100644 --- a/types/p5/src/core/transform.d.ts +++ b/types/p5/src/core/transform.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/data/local_storage.d.ts b/types/p5/src/data/local_storage.d.ts index 67153fd31a7904..ea952152e20deb 100644 --- a/types/p5/src/data/local_storage.d.ts +++ b/types/p5/src/data/local_storage.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/data/p5.TypedDict.d.ts b/types/p5/src/data/p5.TypedDict.d.ts index 1a6a5928623989..669b4d446f6d2c 100644 --- a/types/p5/src/data/p5.TypedDict.d.ts +++ b/types/p5/src/data/p5.TypedDict.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class TypedDict { diff --git a/types/p5/src/dom/dom.d.ts b/types/p5/src/dom/dom.d.ts index c3dae071a133db..7c1a307a050cf0 100644 --- a/types/p5/src/dom/dom.d.ts +++ b/types/p5/src/dom/dom.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class MediaElement extends Element { diff --git a/types/p5/src/events/acceleration.d.ts b/types/p5/src/events/acceleration.d.ts index 34d6dd08713a44..702de31bdc85fb 100644 --- a/types/p5/src/events/acceleration.d.ts +++ b/types/p5/src/events/acceleration.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/events/keyboard.d.ts b/types/p5/src/events/keyboard.d.ts index be836bc29d912b..fb638f82963bb9 100644 --- a/types/p5/src/events/keyboard.d.ts +++ b/types/p5/src/events/keyboard.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/events/mouse.d.ts b/types/p5/src/events/mouse.d.ts index 8d5530b697166e..5eef558a3865fe 100644 --- a/types/p5/src/events/mouse.d.ts +++ b/types/p5/src/events/mouse.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/events/touch.d.ts b/types/p5/src/events/touch.d.ts index 8c3a80756aa941..d1633b9fa1ab23 100644 --- a/types/p5/src/events/touch.d.ts +++ b/types/p5/src/events/touch.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/image/image.d.ts b/types/p5/src/image/image.d.ts index 264a92fa7c5d06..12c3828074c5c0 100644 --- a/types/p5/src/image/image.d.ts +++ b/types/p5/src/image/image.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/image/loading_displaying.d.ts b/types/p5/src/image/loading_displaying.d.ts index 197fa92b4dd649..aeb7b6f64f0132 100644 --- a/types/p5/src/image/loading_displaying.d.ts +++ b/types/p5/src/image/loading_displaying.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/image/p5.Image.d.ts b/types/p5/src/image/p5.Image.d.ts index 39cf23b45fb924..9697bf9d210944 100644 --- a/types/p5/src/image/p5.Image.d.ts +++ b/types/p5/src/image/p5.Image.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class Image { diff --git a/types/p5/src/image/pixels.d.ts b/types/p5/src/image/pixels.d.ts index 5fef91247514d6..ae6fb703f2bf27 100644 --- a/types/p5/src/image/pixels.d.ts +++ b/types/p5/src/image/pixels.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/io/files.d.ts b/types/p5/src/io/files.d.ts index 569103b689aa2d..28cbba6875ebc4 100644 --- a/types/p5/src/io/files.d.ts +++ b/types/p5/src/io/files.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class PrintWriter { diff --git a/types/p5/src/io/p5.Table.d.ts b/types/p5/src/io/p5.Table.d.ts index 840aea31709d23..5bd8f9c84a64ac 100644 --- a/types/p5/src/io/p5.Table.d.ts +++ b/types/p5/src/io/p5.Table.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class Table { diff --git a/types/p5/src/io/p5.TableRow.d.ts b/types/p5/src/io/p5.TableRow.d.ts index 2b7e982a799493..2cc06af11c7a48 100644 --- a/types/p5/src/io/p5.TableRow.d.ts +++ b/types/p5/src/io/p5.TableRow.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class TableRow { diff --git a/types/p5/src/io/p5.XML.d.ts b/types/p5/src/io/p5.XML.d.ts index 18262344c3226e..cd170a299fcab7 100644 --- a/types/p5/src/io/p5.XML.d.ts +++ b/types/p5/src/io/p5.XML.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class XML { diff --git a/types/p5/src/math/calculation.d.ts b/types/p5/src/math/calculation.d.ts index 653c59ee1e97ac..ce3ef9443fb67a 100644 --- a/types/p5/src/math/calculation.d.ts +++ b/types/p5/src/math/calculation.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/math/math.d.ts b/types/p5/src/math/math.d.ts index 099a2ad91269b9..c55bb2a960d95d 100644 --- a/types/p5/src/math/math.d.ts +++ b/types/p5/src/math/math.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/math/noise.d.ts b/types/p5/src/math/noise.d.ts index 7e6dd0876b3473..1e237b02a13fd2 100644 --- a/types/p5/src/math/noise.d.ts +++ b/types/p5/src/math/noise.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/math/p5.Vector.d.ts b/types/p5/src/math/p5.Vector.d.ts index ea1ab9e7c0356d..6a7a5c0eededf6 100644 --- a/types/p5/src/math/p5.Vector.d.ts +++ b/types/p5/src/math/p5.Vector.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class Vector { diff --git a/types/p5/src/math/random.d.ts b/types/p5/src/math/random.d.ts index e818bbde0fe59e..f8f3d26b4d5821 100644 --- a/types/p5/src/math/random.d.ts +++ b/types/p5/src/math/random.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/math/trigonometry.d.ts b/types/p5/src/math/trigonometry.d.ts index 713996b63b26e3..d61419c4e88236 100644 --- a/types/p5/src/math/trigonometry.d.ts +++ b/types/p5/src/math/trigonometry.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/typography/attributes.d.ts b/types/p5/src/typography/attributes.d.ts index 8c532e596358b4..de6727013cf634 100644 --- a/types/p5/src/typography/attributes.d.ts +++ b/types/p5/src/typography/attributes.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/typography/loading_displaying.d.ts b/types/p5/src/typography/loading_displaying.d.ts index 4a2108ffe92d1e..1a9990ce5b074b 100644 --- a/types/p5/src/typography/loading_displaying.d.ts +++ b/types/p5/src/typography/loading_displaying.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/typography/p5.Font.d.ts b/types/p5/src/typography/p5.Font.d.ts index f7a69f1d66f238..b399a3bb2ac892 100644 --- a/types/p5/src/typography/p5.Font.d.ts +++ b/types/p5/src/typography/p5.Font.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class Font { diff --git a/types/p5/src/utilities/array_functions.d.ts b/types/p5/src/utilities/array_functions.d.ts index 770c31f2548523..52bd5198d1da88 100644 --- a/types/p5/src/utilities/array_functions.d.ts +++ b/types/p5/src/utilities/array_functions.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/utilities/conversion.d.ts b/types/p5/src/utilities/conversion.d.ts index 96944683cba2a8..8b9573077473a2 100644 --- a/types/p5/src/utilities/conversion.d.ts +++ b/types/p5/src/utilities/conversion.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/utilities/string_functions.d.ts b/types/p5/src/utilities/string_functions.d.ts index 1bb519e45633b5..fa803201704c1b 100644 --- a/types/p5/src/utilities/string_functions.d.ts +++ b/types/p5/src/utilities/string_functions.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/utilities/time_date.d.ts b/types/p5/src/utilities/time_date.d.ts index b410591797b809..5f9f7674645f79 100644 --- a/types/p5/src/utilities/time_date.d.ts +++ b/types/p5/src/utilities/time_date.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/webgl/3d_primitives.d.ts b/types/p5/src/webgl/3d_primitives.d.ts index f01a58b426cf22..c326ec4f7e67e1 100644 --- a/types/p5/src/webgl/3d_primitives.d.ts +++ b/types/p5/src/webgl/3d_primitives.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/webgl/interaction.d.ts b/types/p5/src/webgl/interaction.d.ts index 4b6cadb479597e..a47c9a4bf22975 100644 --- a/types/p5/src/webgl/interaction.d.ts +++ b/types/p5/src/webgl/interaction.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/webgl/light.d.ts b/types/p5/src/webgl/light.d.ts index 3ec8cf557da051..95964326add2ae 100644 --- a/types/p5/src/webgl/light.d.ts +++ b/types/p5/src/webgl/light.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/webgl/loading.d.ts b/types/p5/src/webgl/loading.d.ts index 63fc037c81512b..11669c6c3a3004 100644 --- a/types/p5/src/webgl/loading.d.ts +++ b/types/p5/src/webgl/loading.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/webgl/material.d.ts b/types/p5/src/webgl/material.d.ts index 1711572e7e6202..7301c8d67b0be4 100644 --- a/types/p5/src/webgl/material.d.ts +++ b/types/p5/src/webgl/material.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/webgl/p5.Camera.d.ts b/types/p5/src/webgl/p5.Camera.d.ts index c66d9aeebb2467..36012b8fcdb22b 100644 --- a/types/p5/src/webgl/p5.Camera.d.ts +++ b/types/p5/src/webgl/p5.Camera.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class Camera { diff --git a/types/p5/src/webgl/p5.Framebuffer.d.ts b/types/p5/src/webgl/p5.Framebuffer.d.ts index 074353620e1931..269e42f882c090 100644 --- a/types/p5/src/webgl/p5.Framebuffer.d.ts +++ b/types/p5/src/webgl/p5.Framebuffer.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class Framebuffer { diff --git a/types/p5/src/webgl/p5.Geometry.d.ts b/types/p5/src/webgl/p5.Geometry.d.ts index 66fdbd36cb79ee..45467ca1d49e5d 100644 --- a/types/p5/src/webgl/p5.Geometry.d.ts +++ b/types/p5/src/webgl/p5.Geometry.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class Geometry { diff --git a/types/p5/src/webgl/p5.RendererGL.Immediate.d.ts b/types/p5/src/webgl/p5.RendererGL.Immediate.d.ts index 186323e649de13..ced98f45f16c4b 100644 --- a/types/p5/src/webgl/p5.RendererGL.Immediate.d.ts +++ b/types/p5/src/webgl/p5.RendererGL.Immediate.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/webgl/p5.RendererGL.d.ts b/types/p5/src/webgl/p5.RendererGL.d.ts index 54171d7be496b4..18539ce5879b50 100644 --- a/types/p5/src/webgl/p5.RendererGL.d.ts +++ b/types/p5/src/webgl/p5.RendererGL.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { interface p5InstanceExtensions { diff --git a/types/p5/src/webgl/p5.Shader.d.ts b/types/p5/src/webgl/p5.Shader.d.ts index d08a6e47753d5b..580f433623c83c 100644 --- a/types/p5/src/webgl/p5.Shader.d.ts +++ b/types/p5/src/webgl/p5.Shader.d.ts @@ -1,6 +1,6 @@ // This file was auto-generated. Please do not edit it. -import * as p5 from '../../index'; +import p5 = require("../../index"); declare module '../../index' { class Shader { diff --git a/types/p5/test/index.ts b/types/p5/test/index.ts index 440e178c683da5..d7e0ba2483abd9 100644 --- a/types/p5/test/index.ts +++ b/types/p5/test/index.ts @@ -1,4 +1,4 @@ -import * as p5 from "p5"; +import p5 from "p5"; function s( sketch: p5 diff --git a/types/p5/tsconfig.json b/types/p5/tsconfig.json index 1f0679c6862fd0..168842e3011781 100644 --- a/types/p5/tsconfig.json +++ b/types/p5/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "dom", "es5" diff --git a/types/paralleljs/tsconfig.json b/types/paralleljs/tsconfig.json index 5f6e74809e703f..84f995add59e55 100644 --- a/types/paralleljs/tsconfig.json +++ b/types/paralleljs/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/parse-author/parse-author-tests.ts b/types/parse-author/parse-author-tests.ts index 4be659451e3f05..97de850d62b804 100644 --- a/types/parse-author/parse-author-tests.ts +++ b/types/parse-author/parse-author-tests.ts @@ -1,4 +1,4 @@ -import * as parse from "parse-author"; +import parse from "parse-author"; const author = parse("Jon Schlinkert (https://github.com/jonschlinkert)"); author.name === "Jon Schlinkert"; diff --git a/types/parse-author/tsconfig.json b/types/parse-author/tsconfig.json index 2d77ee0c725dd1..056d95b19d26fa 100644 --- a/types/parse-author/tsconfig.json +++ b/types/parse-author/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/parse-color/parse-color-tests.ts b/types/parse-color/parse-color-tests.ts index 69f488502fe734..95492bd6493f0f 100644 --- a/types/parse-color/parse-color-tests.ts +++ b/types/parse-color/parse-color-tests.ts @@ -1,4 +1,4 @@ -import * as parseColor from "parse-color"; +import parseColor from "parse-color"; const color = parseColor("lime"); diff --git a/types/parse-color/tsconfig.json b/types/parse-color/tsconfig.json index 50133c07b0280c..ef67fdf245a449 100644 --- a/types/parse-color/tsconfig.json +++ b/types/parse-color/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/parse-torrent/index.d.ts b/types/parse-torrent/index.d.ts index 12bd2d7f107869..568cc7cbc75462 100644 --- a/types/parse-torrent/index.d.ts +++ b/types/parse-torrent/index.d.ts @@ -1,7 +1,7 @@ /// import MagnetUri = require("magnet-uri"); -import * as ParseTorrentFile from "parse-torrent-file"; +import ParseTorrentFile = require("parse-torrent-file"); declare const ParseTorrent: ParseTorrent.ParseTorrent; diff --git a/types/parse5-serializer-stream/index.d.ts b/types/parse5-serializer-stream/index.d.ts index 8307da663e5713..66ec846a10c693 100644 --- a/types/parse5-serializer-stream/index.d.ts +++ b/types/parse5-serializer-stream/index.d.ts @@ -1,7 +1,7 @@ /// import * as parse5 from "parse5"; -import * as stream from "stream"; +import stream = require("stream"); /** * Streaming AST node to an HTML serializer. diff --git a/types/parse5-serializer-stream/parse5-serializer-stream-tests.ts b/types/parse5-serializer-stream/parse5-serializer-stream-tests.ts index b6dc90ebe17534..79f2bff8c8ddf3 100644 --- a/types/parse5-serializer-stream/parse5-serializer-stream-tests.ts +++ b/types/parse5-serializer-stream/parse5-serializer-stream-tests.ts @@ -1,7 +1,7 @@ import { parse } from "parse5"; import defaultAdapter = require("parse5/lib/tree-adapters/default"); import { createReadStream, createWriteStream } from "fs"; -import * as SerializerStream from "parse5-serializer-stream"; +import SerializerStream from "parse5-serializer-stream"; const document = parse(""); let serializer = new SerializerStream(document); diff --git a/types/parse5-serializer-stream/tsconfig.json b/types/parse5-serializer-stream/tsconfig.json index 88cb4331fef0aa..2191bddd0cdc1f 100644 --- a/types/parse5-serializer-stream/tsconfig.json +++ b/types/parse5-serializer-stream/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/pascalcase/tsconfig.json b/types/pascalcase/tsconfig.json index a756b1c9a1e7ec..d28ec2e23a28e0 100644 --- a/types/pascalcase/tsconfig.json +++ b/types/pascalcase/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "module": "node16", "lib": [ "es6" diff --git a/types/passport-42/index.d.ts b/types/passport-42/index.d.ts index 5d5bf41b702c02..b894345b12917e 100644 --- a/types/passport-42/index.d.ts +++ b/types/passport-42/index.d.ts @@ -1,6 +1,6 @@ -import * as express from "express"; +import express = require("express"); import * as passport from "passport"; -import * as oauth2 from "passport-oauth2"; +import oauth2 = require("passport-oauth2"); interface Profile extends passport.Profile { id: string; diff --git a/types/passport-apple/tsconfig.json b/types/passport-apple/tsconfig.json index 1fae14ebd4df60..b1c94284387df1 100644 --- a/types/passport-apple/tsconfig.json +++ b/types/passport-apple/tsconfig.json @@ -6,7 +6,6 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "esModuleInterop": true, "strictFunctionTypes": true, "strictNullChecks": true, "types": [], diff --git a/types/passport-beam/index.d.ts b/types/passport-beam/index.d.ts index f7feb135a001d0..bcdb997ee123e2 100644 --- a/types/passport-beam/index.d.ts +++ b/types/passport-beam/index.d.ts @@ -1,7 +1,7 @@ /// /// -import * as express from "express"; +import express = require("express"); import * as passport from "passport"; export class Strategy extends passport.Strategy { diff --git a/types/passport-discord/index.d.ts b/types/passport-discord/index.d.ts index 600bddfb59d4fa..5e3a01fe273b1a 100644 --- a/types/passport-discord/index.d.ts +++ b/types/passport-discord/index.d.ts @@ -1,7 +1,7 @@ -import * as express from "express"; +import express = require("express"); import { OutgoingHttpHeaders } from "http"; import * as passport from "passport"; -import * as oauth2 from "passport-oauth2"; +import oauth2 = require("passport-oauth2"); import discord = Strategy; diff --git a/types/passport-facebook-token/index.d.ts b/types/passport-facebook-token/index.d.ts index d93d8d29323a77..ad9a68ab68d401 100644 --- a/types/passport-facebook-token/index.d.ts +++ b/types/passport-facebook-token/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); import * as passport from "passport"; declare namespace PassportFacebookToken { diff --git a/types/passport-facebook/index.d.ts b/types/passport-facebook/index.d.ts index dea6d0ed2714b2..25ab9a36074f74 100644 --- a/types/passport-facebook/index.d.ts +++ b/types/passport-facebook/index.d.ts @@ -1,7 +1,7 @@ -import * as express from "express"; +import express = require("express"); import { OutgoingHttpHeaders } from "http"; import * as passport from "passport"; -import * as oauth2 from "passport-oauth2"; +import oauth2 = require("passport-oauth2"); export interface Profile extends passport.Profile { id: string; diff --git a/types/passport-github/index.d.ts b/types/passport-github/index.d.ts index 39db4195901ee6..36a96117021fb3 100644 --- a/types/passport-github/index.d.ts +++ b/types/passport-github/index.d.ts @@ -1,7 +1,7 @@ -import * as express from "express"; +import express = require("express"); import { OutgoingHttpHeaders } from "http"; import * as passport from "passport"; -import * as oauth2 from "passport-oauth2"; +import oauth2 = require("passport-oauth2"); import github = Strategy; diff --git a/types/passport-google-oauth20/index.d.ts b/types/passport-google-oauth20/index.d.ts index e01fd84069b247..74a539b3c7976d 100644 --- a/types/passport-google-oauth20/index.d.ts +++ b/types/passport-google-oauth20/index.d.ts @@ -1,6 +1,6 @@ -import * as express from "express"; +import express = require("express"); import * as passport from "passport"; -import * as oauth2 from "passport-oauth2"; +import oauth2 = require("passport-oauth2"); export type OAuth2StrategyOptionsWithoutRequiredURLs = Pick< oauth2._StrategyOptionsBase, diff --git a/types/passport-jwt/tsconfig.json b/types/passport-jwt/tsconfig.json index fe93af85b7dabc..16c72bbd38d624 100644 --- a/types/passport-jwt/tsconfig.json +++ b/types/passport-jwt/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/passport-line/index.d.ts b/types/passport-line/index.d.ts index eb7efd47d3af16..fbec798cbccd1e 100644 --- a/types/passport-line/index.d.ts +++ b/types/passport-line/index.d.ts @@ -1,6 +1,6 @@ -import * as express from "express"; +import express = require("express"); import * as passport from "passport"; -import * as oauth2 from "passport-oauth2"; +import oauth2 = require("passport-oauth2"); export type OAuth2StrategyOptionsWithoutRequiredURLs = Pick< oauth2._StrategyOptionsBase, diff --git a/types/passport-microsoft/index.d.ts b/types/passport-microsoft/index.d.ts index 6fbfeccbb7bf5f..9f306320a0c91a 100644 --- a/types/passport-microsoft/index.d.ts +++ b/types/passport-microsoft/index.d.ts @@ -1,4 +1,4 @@ -import * as oauth2 from "passport-oauth2"; +import oauth2 = require("passport-oauth2"); // Disable automatic exporting export {}; diff --git a/types/passport-oauth2-client-password/index.d.ts b/types/passport-oauth2-client-password/index.d.ts index f7304037dff257..aafb71f1f03226 100644 --- a/types/passport-oauth2-client-password/index.d.ts +++ b/types/passport-oauth2-client-password/index.d.ts @@ -1,7 +1,7 @@ /// /// -import * as express from "express"; +import express = require("express"); import * as passport from "passport"; interface StrategyOptionsWithRequestInterface { diff --git a/types/passport-twitch-latest/index.d.ts b/types/passport-twitch-latest/index.d.ts index c9ef8311ac0acb..0b0806c5a97a1b 100644 --- a/types/passport-twitch-latest/index.d.ts +++ b/types/passport-twitch-latest/index.d.ts @@ -1,6 +1,6 @@ -import * as e from "express"; -import * as passport from "passport"; -import * as PassportOauth2 from "passport-oauth2"; +import e = require("express"); +import passport = require("passport"); +import PassportOauth2 = require("passport-oauth2"); export class Strategy extends PassportOauth2 { // Disabling this tslint rule as unifying the signatures makes the callback function default to inferring the diff --git a/types/passport-twitch-latest/tsconfig.json b/types/passport-twitch-latest/tsconfig.json index 2ca77f05b2f953..9793d30a7784dd 100644 --- a/types/passport-twitch-latest/tsconfig.json +++ b/types/passport-twitch-latest/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/passport-twitter-token/index.d.ts b/types/passport-twitter-token/index.d.ts index 38d835b5bf46ca..bf6ff6408c2b49 100644 --- a/types/passport-twitter-token/index.d.ts +++ b/types/passport-twitter-token/index.d.ts @@ -2,7 +2,7 @@ *~ loaded outside a module loader environment, declare that global here. *~ Otherwise, delete this declaration. */ -import * as express from "express"; +import express = require("express"); import * as passport from "passport"; /*~ If there are types, properties, or methods inside dotted names diff --git a/types/passport-twitter-token/passport-twitter-token-tests.ts b/types/passport-twitter-token/passport-twitter-token-tests.ts index 035f1f4185191e..51258114f9a1a3 100644 --- a/types/passport-twitter-token/passport-twitter-token-tests.ts +++ b/types/passport-twitter-token/passport-twitter-token-tests.ts @@ -1,6 +1,6 @@ import * as express from "express"; import * as passport from "passport"; -import * as PassportTwitterToken from "passport-twitter-token"; +import PassportTwitterToken from "passport-twitter-token"; const User = { findOrCreate(id: string, provider: string, callback: (err: any, user: any) => void): void { diff --git a/types/passport-twitter-token/tsconfig.json b/types/passport-twitter-token/tsconfig.json index 0aad0cc45db5c5..f6a2599e069b75 100644 --- a/types/passport-twitter-token/tsconfig.json +++ b/types/passport-twitter-token/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/passport-vkontakte/index.d.ts b/types/passport-vkontakte/index.d.ts index e585fe232c5513..a4e9fc2380f7a5 100644 --- a/types/passport-vkontakte/index.d.ts +++ b/types/passport-vkontakte/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); import * as passport from "passport"; export interface Profile extends passport.Profile { diff --git a/types/passport-windowsauth/index.d.ts b/types/passport-windowsauth/index.d.ts index 728283cab42485..d50389aa966a07 100644 --- a/types/passport-windowsauth/index.d.ts +++ b/types/passport-windowsauth/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); import * as ldapjs from "ldapjs"; import * as passport from "passport"; import { TlsOptions } from "tls"; diff --git a/types/passport-windowsauth/passport-windowsauth-tests.ts b/types/passport-windowsauth/passport-windowsauth-tests.ts index cae35f211e10b6..5ad9d660ca4d95 100644 --- a/types/passport-windowsauth/passport-windowsauth-tests.ts +++ b/types/passport-windowsauth/passport-windowsauth-tests.ts @@ -1,5 +1,5 @@ import * as passport from "passport"; -import * as WindowsStrategy from "passport-windowsauth"; +import WindowsStrategy from "passport-windowsauth"; const auth = new passport.Authenticator(); auth.use( diff --git a/types/passport-windowsauth/tsconfig.json b/types/passport-windowsauth/tsconfig.json index 2f2ac4dbd628cd..96764389222ef5 100644 --- a/types/passport-windowsauth/tsconfig.json +++ b/types/passport-windowsauth/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/pause/index.d.ts b/types/pause/index.d.ts index 1d98bd4dfd9d9d..30f6e735e6124f 100644 --- a/types/pause/index.d.ts +++ b/types/pause/index.d.ts @@ -1,5 +1,5 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export = pause; diff --git a/types/paypal-checkout-components/tsconfig.json b/types/paypal-checkout-components/tsconfig.json index 41400607e837cb..73045fe4cdb332 100644 --- a/types/paypal-checkout-components/tsconfig.json +++ b/types/paypal-checkout-components/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/paytmchecksum/tsconfig.json b/types/paytmchecksum/tsconfig.json index 98023b726fccce..967c991719f9ef 100644 --- a/types/paytmchecksum/tsconfig.json +++ b/types/paytmchecksum/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/pbkdf2/pbkdf2-tests.ts b/types/pbkdf2/pbkdf2-tests.ts index b7e8e84a8dacda..8dc75e6d11b696 100644 --- a/types/pbkdf2/pbkdf2-tests.ts +++ b/types/pbkdf2/pbkdf2-tests.ts @@ -1,4 +1,4 @@ -import * as pbkdf2 from "pbkdf2"; +import pbkdf2 from "pbkdf2"; const passwordString = "password"; const saltString = "salt"; diff --git a/types/pcx-js/tsconfig.json b/types/pcx-js/tsconfig.json index ded78a38cbcd6b..be5e00f766b700 100644 --- a/types/pcx-js/tsconfig.json +++ b/types/pcx-js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "Node16", + "module": "node16", "lib": [ "ES6" ], diff --git a/types/pdf2docx/tsconfig.json b/types/pdf2docx/tsconfig.json index f1d791ffe9908c..c980188a651abc 100644 --- a/types/pdf2docx/tsconfig.json +++ b/types/pdf2docx/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/pdf2html/tsconfig.json b/types/pdf2html/tsconfig.json index 1ecf1418e95fab..af19a055958996 100644 --- a/types/pdf2html/tsconfig.json +++ b/types/pdf2html/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/peer-dial/index.d.ts b/types/peer-dial/index.d.ts index f01e328571da6a..580b3f4b865d9f 100644 --- a/types/peer-dial/index.d.ts +++ b/types/peer-dial/index.d.ts @@ -1,7 +1,7 @@ /// -import * as events from "events"; -import * as express from "express"; +import events = require("events"); +import express = require("express"); import * as uuid from "node-uuid"; export class Server extends events.EventEmitter { diff --git a/types/pg-pool/pg-pool-tests.ts b/types/pg-pool/pg-pool-tests.ts index 84f56b6eef0344..0dcaf12d26f116 100644 --- a/types/pg-pool/pg-pool-tests.ts +++ b/types/pg-pool/pg-pool-tests.ts @@ -1,5 +1,5 @@ import * as pg from "pg"; -import * as Pool from "pg-pool"; +import Pool from "pg-pool"; class CustomClient extends pg.Client { sayHi(): string { diff --git a/types/pg-pool/tsconfig.json b/types/pg-pool/tsconfig.json index b407a672fb4b5a..a711b18cf3ba61 100644 --- a/types/pg-pool/tsconfig.json +++ b/types/pg-pool/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "target": "es6", "lib": [ "es6" diff --git a/types/pi-pir-sensor/pi-pir-sensor-tests.ts b/types/pi-pir-sensor/pi-pir-sensor-tests.ts index 3d2a6e939143ef..1b0434e0c47e5c 100644 --- a/types/pi-pir-sensor/pi-pir-sensor-tests.ts +++ b/types/pi-pir-sensor/pi-pir-sensor-tests.ts @@ -1,4 +1,4 @@ -import * as Sensor from "pi-pir-sensor"; +import Sensor from "pi-pir-sensor"; // With default loop of 1500 const sensor: Sensor = new Sensor({ pin: 12 }); diff --git a/types/pi-pir-sensor/tsconfig.json b/types/pi-pir-sensor/tsconfig.json index 836566e9a545dd..5e6ca06363c2b3 100644 --- a/types/pi-pir-sensor/tsconfig.json +++ b/types/pi-pir-sensor/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/pica/tsconfig.json b/types/pica/tsconfig.json index 184aeba6e7e640..64aa567ca7c434 100644 --- a/types/pica/tsconfig.json +++ b/types/pica/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/picturefill/tsconfig.json b/types/picturefill/tsconfig.json index 379194e205227b..3e8df26d0af44c 100644 --- a/types/picturefill/tsconfig.json +++ b/types/picturefill/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/pigpio-dht/pigpio-dht-tests.ts b/types/pigpio-dht/pigpio-dht-tests.ts index 1f757678d84816..e0fb077ddc6b00 100644 --- a/types/pigpio-dht/pigpio-dht-tests.ts +++ b/types/pigpio-dht/pigpio-dht-tests.ts @@ -1,4 +1,4 @@ -import * as dht from "pigpio-dht"; +import dht from "pigpio-dht"; const dhtReadPin = 2; const sensor: dht.Dht = dht(dhtReadPin, 11); diff --git a/types/pigpio-dht/tsconfig.json b/types/pigpio-dht/tsconfig.json index bdea8f6142784d..0497e31d18e56f 100644 --- a/types/pigpio-dht/tsconfig.json +++ b/types/pigpio-dht/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/pikaday-time/index.d.ts b/types/pikaday-time/index.d.ts index 783e3cfb756911..bd7632c4fe445a 100644 --- a/types/pikaday-time/index.d.ts +++ b/types/pikaday-time/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); export as namespace Pikaday; diff --git a/types/pikaday/index.d.ts b/types/pikaday/index.d.ts index b62b4e3f9702a8..37c57b96cea323 100644 --- a/types/pikaday/index.d.ts +++ b/types/pikaday/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); export as namespace Pikaday; diff --git a/types/pizzicato/tsconfig.json b/types/pizzicato/tsconfig.json index e4696d5ed26565..73538333ae1c56 100644 --- a/types/pizzicato/tsconfig.json +++ b/types/pizzicato/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/places/places-tests.ts b/types/places/places-tests.ts index 361b35f3d4b26d..1f28222895774e 100644 --- a/types/places/places-tests.ts +++ b/types/places/places-tests.ts @@ -1,5 +1,5 @@ import { EventEmitter } from "events"; -import * as places from "places"; +import places from "places"; const options: places.PlacesOptions = { appId: "your app Id", diff --git a/types/places/tsconfig.json b/types/places/tsconfig.json index 0c3faa2e88c20c..36b5ba38fba19e 100644 --- a/types/places/tsconfig.json +++ b/types/places/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es2016", "dom" diff --git a/types/poi/index.d.ts b/types/poi/index.d.ts index 81628b5f3a249b..9155dc8a85f588 100644 --- a/types/poi/index.d.ts +++ b/types/poi/index.d.ts @@ -1,7 +1,7 @@ import CAC from "cac/types/CAC"; import { Options as HtmlWebpackPluginOptions } from "html-webpack-plugin"; import { Configuration as WebpackConfig, ICompiler } from "webpack"; -import * as WebpackChainConfig from "webpack-chain"; +import WebpackChainConfig = require("webpack-chain"); import { Configuration as WebpackDevServerConfig } from "webpack-dev-server"; /** diff --git a/types/poi/poi-tests.ts b/types/poi/poi-tests.ts index 82be4a2d49bb28..6392caa8745f1c 100644 --- a/types/poi/poi-tests.ts +++ b/types/poi/poi-tests.ts @@ -1,3 +1,3 @@ -import * as PoiCore from "poi"; +import PoiCore from "poi"; const poi = new PoiCore(); diff --git a/types/poi/tsconfig.json b/types/poi/tsconfig.json index 724a11b77805b0..7119cc5279fd24 100644 --- a/types/poi/tsconfig.json +++ b/types/poi/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/polka/index.d.ts b/types/polka/index.d.ts index 568582b164c9c5..a1efdd639a1345 100644 --- a/types/polka/index.d.ts +++ b/types/polka/index.d.ts @@ -3,7 +3,7 @@ import { RequestHandler } from "express"; import { Params, ParamsDictionary, Query } from "express-serve-static-core"; import { IncomingMessage, Server, ServerResponse } from "http"; -import * as Trouter from "trouter"; +import Trouter = require("trouter"); import { Url } from "url"; declare namespace polka { diff --git a/types/polka/polka-tests.ts b/types/polka/polka-tests.ts index 1df1127b546249..1bd4b33948ba91 100644 --- a/types/polka/polka-tests.ts +++ b/types/polka/polka-tests.ts @@ -1,5 +1,5 @@ -import * as compression from "compression"; -import * as Polka from "polka"; +import compression from "compression"; +import Polka from "polka"; interface MyResponse { foo: string; diff --git a/types/polka/tsconfig.json b/types/polka/tsconfig.json index 81319f8c968bf7..a3da1aad0ac068 100644 --- a/types/polka/tsconfig.json +++ b/types/polka/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/popup-window/tsconfig.json b/types/popup-window/tsconfig.json index da511dd9ff2f77..b60237ddccd274 100644 --- a/types/popup-window/tsconfig.json +++ b/types/popup-window/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/posix/posix-tests.ts b/types/posix/posix-tests.ts index 95732e3af893af..2f41eb28a30f17 100644 --- a/types/posix/posix-tests.ts +++ b/types/posix/posix-tests.ts @@ -1,4 +1,4 @@ -import * as posix from "posix"; +import posix from "posix"; /* test-chroot */ diff --git a/types/postcss-less/index.d.ts b/types/postcss-less/index.d.ts index 0aa848247e458f..0f8dbb661af44b 100644 --- a/types/postcss-less/index.d.ts +++ b/types/postcss-less/index.d.ts @@ -1,4 +1,4 @@ -import * as postcss from "postcss"; +import postcss = require("postcss"); export = postcssLess; diff --git a/types/postcss-mixins/tsconfig.json b/types/postcss-mixins/tsconfig.json index dcedab8c75e820..505225fb3e6ed8 100644 --- a/types/postcss-mixins/tsconfig.json +++ b/types/postcss-mixins/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "ES2018.Promise" diff --git a/types/postcss-rtl/tsconfig.json b/types/postcss-rtl/tsconfig.json index b829bf513ae282..9e3f8b7b619cbd 100644 --- a/types/postcss-rtl/tsconfig.json +++ b/types/postcss-rtl/tsconfig.json @@ -1,7 +1,10 @@ { "compilerOptions": { - "module": "commonjs", - "lib": ["es6", "ES2018.Promise"], + "module": "node16", + "lib": [ + "es6", + "ES2018.Promise" + ], "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, @@ -10,5 +13,8 @@ "noEmit": true, "forceConsistentCasingInFileNames": true }, - "files": ["index.d.ts", "postcss-rtl-tests.ts"] + "files": [ + "index.d.ts", + "postcss-rtl-tests.ts" + ] } diff --git a/types/postcss-url/postcss-url-tests.ts b/types/postcss-url/postcss-url-tests.ts index b0efb0710ef50b..68c5c517bff3a9 100644 --- a/types/postcss-url/postcss-url-tests.ts +++ b/types/postcss-url/postcss-url-tests.ts @@ -1,5 +1,5 @@ import postcss from "postcss"; -import * as url from "postcss-url"; +import url from "postcss-url"; postcss().use(url()); diff --git a/types/postcss-url/tsconfig.json b/types/postcss-url/tsconfig.json index 7066edb0c67d1c..bc620c0bfabe5f 100644 --- a/types/postcss-url/tsconfig.json +++ b/types/postcss-url/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/pouch-redux-middleware/index.d.ts b/types/pouch-redux-middleware/index.d.ts index 17c13b3ac81a0f..cace9ddbe2954b 100644 --- a/types/pouch-redux-middleware/index.d.ts +++ b/types/pouch-redux-middleware/index.d.ts @@ -1,4 +1,4 @@ -import * as PouchDB from "pouchdb"; +import PouchDB = require("pouchdb"); import { AnyAction, Dispatch, Middleware } from "redux"; export type Document = PouchDB.Core.IdMeta & T; diff --git a/types/power-assert-formatter/tsconfig.json b/types/power-assert-formatter/tsconfig.json index d0c87fd193e84f..dae20cbda7d6b1 100644 --- a/types/power-assert-formatter/tsconfig.json +++ b/types/power-assert-formatter/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/preact-virtual-list/tsconfig.json b/types/preact-virtual-list/tsconfig.json index 09b05dfa5e80c0..885ddb6fae864b 100644 --- a/types/preact-virtual-list/tsconfig.json +++ b/types/preact-virtual-list/tsconfig.json @@ -13,8 +13,7 @@ "noEmit": true, "forceConsistentCasingInFileNames": true, "jsx": "react", - "jsxFactory": "h", - "esModuleInterop": true + "jsxFactory": "h" }, "files": [ "index.d.ts", diff --git a/types/procurios.resizesensor/tsconfig.json b/types/procurios.resizesensor/tsconfig.json index 5a69deeb793018..ec512549ea9e8b 100644 --- a/types/procurios.resizesensor/tsconfig.json +++ b/types/procurios.resizesensor/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/progress-bar-webpack-plugin/index.d.ts b/types/progress-bar-webpack-plugin/index.d.ts index de05ecbeea8550..87d31991a9eab4 100644 --- a/types/progress-bar-webpack-plugin/index.d.ts +++ b/types/progress-bar-webpack-plugin/index.d.ts @@ -1,4 +1,4 @@ -import * as ProgressBar from "progress"; +import ProgressBar = require("progress"); import { Plugin } from "webpack"; export = ProgressBarPlugin; diff --git a/types/progress/progress-tests.ts b/types/progress/progress-tests.ts index 6539a68e0a13d4..97f058d20020fb 100644 --- a/types/progress/progress-tests.ts +++ b/types/progress/progress-tests.ts @@ -1,4 +1,4 @@ -import * as ProgressBar from "progress"; +import ProgressBar from "progress"; /** * Usage example from https://github.com/visionmedia/node-progress diff --git a/types/progress/tsconfig.json b/types/progress/tsconfig.json index fc1ab9123344f6..8f939800a6a559 100644 --- a/types/progress/tsconfig.json +++ b/types/progress/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/promise-ftp/index.d.ts b/types/promise-ftp/index.d.ts index b819e8cc41576f..a997151ed2e1d9 100644 --- a/types/promise-ftp/index.d.ts +++ b/types/promise-ftp/index.d.ts @@ -1,7 +1,7 @@ /// -import * as Promise from "bluebird"; -import * as FtpClient from "ftp"; +import Promise = require("bluebird"); +import FtpClient = require("ftp"); import * as PromiseFtpCommon from "promise-ftp-common"; declare namespace PromiseFtp { diff --git a/types/promise-nodeify/promise-nodeify-tests.ts b/types/promise-nodeify/promise-nodeify-tests.ts index 74c66e1bf71a37..b903b6db37ed07 100644 --- a/types/promise-nodeify/promise-nodeify-tests.ts +++ b/types/promise-nodeify/promise-nodeify-tests.ts @@ -1,4 +1,4 @@ -import * as promiseNodeify from "promise-nodeify"; +import promiseNodeify from "promise-nodeify"; const promise = new Promise((resolve, reject) => {}); const callback = () => {}; diff --git a/types/promise-nodeify/tsconfig.json b/types/promise-nodeify/tsconfig.json index ae8cbe954ac787..bc6bb079dd9b27 100644 --- a/types/promise-nodeify/tsconfig.json +++ b/types/promise-nodeify/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/promise-pg/index.d.ts b/types/promise-pg/index.d.ts index ef0eda715a9d04..60225e1ce996e4 100644 --- a/types/promise-pg/index.d.ts +++ b/types/promise-pg/index.d.ts @@ -1,8 +1,8 @@ /// import * as pg from "pg"; -import * as Q from "q"; -import * as stream from "stream"; +import Q = require("q"); +import stream = require("stream"); export { pg as raw }; diff --git a/types/promise-pool/index.d.ts b/types/promise-pool/index.d.ts index 93b128f936c8e8..ce475978638195 100644 --- a/types/promise-pool/index.d.ts +++ b/types/promise-pool/index.d.ts @@ -1,6 +1,6 @@ /// -import * as Q from "q"; +import Q = require("q"); /** * interface for the final result. */ diff --git a/types/promise-sftp/index.d.ts b/types/promise-sftp/index.d.ts index ea17212986b07e..1a1e673e9711e4 100644 --- a/types/promise-sftp/index.d.ts +++ b/types/promise-sftp/index.d.ts @@ -1,6 +1,6 @@ /// -import * as Promise from "bluebird"; +import Promise = require("bluebird"); import * as fs from "fs"; import * as PromiseFtpCommon from "promise-ftp-common"; import * as ssh2 from "ssh2"; diff --git a/types/promise-state-machine-es6/index.d.ts b/types/promise-state-machine-es6/index.d.ts index 993358eb1fcd80..151fac60d85136 100644 --- a/types/promise-state-machine-es6/index.d.ts +++ b/types/promise-state-machine-es6/index.d.ts @@ -1,6 +1,6 @@ /// -import * as events from "events"; +import events = require("events"); interface DotNode { from: State; diff --git a/types/promisify-supertest/index.d.ts b/types/promisify-supertest/index.d.ts index d61bb801b23af8..1d75031322ad3d 100644 --- a/types/promisify-supertest/index.d.ts +++ b/types/promisify-supertest/index.d.ts @@ -1,7 +1,7 @@ // Mostly copy-pasted from supertest.d.ts -import * as express from "express"; -import * as superagent from "superagent"; +import express = require("express"); +import superagent = require("superagent"); type CallbackHandler = (err: any, res: supertest.Response) => void; diff --git a/types/prop-types/prop-types-tests.ts b/types/prop-types/prop-types-tests.ts index 5ed351548885b1..b115ddd235c34d 100644 --- a/types/prop-types/prop-types-tests.ts +++ b/types/prop-types/prop-types-tests.ts @@ -1,4 +1,4 @@ -import * as PropTypes from "prop-types"; +import PropTypes from "prop-types"; import { ReactElement, ReactNode } from "react"; declare const uniqueType: unique symbol; diff --git a/types/protoc-plugin/index.d.ts b/types/protoc-plugin/index.d.ts index 5a1004c0848f09..ef133a67ab22a9 100644 --- a/types/protoc-plugin/index.d.ts +++ b/types/protoc-plugin/index.d.ts @@ -5,7 +5,7 @@ import { CodeGeneratorResponse as pb_CodeGeneratorResponse, } from "google-protobuf/google/protobuf/compiler/plugin_pb"; import { FileDescriptorProto, SourceCodeInfo } from "google-protobuf/google/protobuf/descriptor_pb"; -import * as stream from "stream"; +import stream = require("stream"); import Location = SourceCodeInfo.Location; type OutputFiles = pb_CodeGeneratorResponse.File.AsObject[]; diff --git a/types/protocol-buffers-schema/tsconfig.json b/types/protocol-buffers-schema/tsconfig.json index 1a845eb43c7d65..99fc8ea0feadd4 100644 --- a/types/protocol-buffers-schema/tsconfig.json +++ b/types/protocol-buffers-schema/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/ps-tree/tsconfig.json b/types/ps-tree/tsconfig.json index a5534466584f29..c3ac72da2f020f 100644 --- a/types/ps-tree/tsconfig.json +++ b/types/ps-tree/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "module": "node16", "lib": [ "es6" diff --git a/types/pumpify/index.d.ts b/types/pumpify/index.d.ts index be277adb277df8..c3e8e815cc8df3 100644 --- a/types/pumpify/index.d.ts +++ b/types/pumpify/index.d.ts @@ -1,6 +1,6 @@ /// -import * as duplexify from "duplexify"; +import duplexify = require("duplexify"); import { Duplex, Readable, Stream, Writable } from "stream"; declare class Pumpify extends Duplex implements duplexify.Duplexify { diff --git a/types/pumpify/pumpify-tests.ts b/types/pumpify/pumpify-tests.ts index 55297a067df5e1..bf70475d9b68a5 100644 --- a/types/pumpify/pumpify-tests.ts +++ b/types/pumpify/pumpify-tests.ts @@ -1,4 +1,4 @@ -import * as Pumpify from "pumpify"; +import Pumpify from "pumpify"; import { Duplex, PassThrough, Transform, Writable } from "stream"; new Pumpify(); diff --git a/types/pumpify/tsconfig.json b/types/pumpify/tsconfig.json index 5fc80e552705dd..4eece6e1ed042a 100644 --- a/types/pumpify/tsconfig.json +++ b/types/pumpify/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/purifycss-webpack/index.d.ts b/types/purifycss-webpack/index.d.ts index 671a9b07bd96f9..3899f27501639f 100644 --- a/types/purifycss-webpack/index.d.ts +++ b/types/purifycss-webpack/index.d.ts @@ -1,4 +1,4 @@ -import * as webpack from "webpack"; +import webpack = require("webpack"); declare class PurifyPlugin extends webpack.Plugin { constructor(options?: PurifyOptions); diff --git a/types/purifycss-webpack/tsconfig.json b/types/purifycss-webpack/tsconfig.json index b5256c683b1b04..d529ba3882ee3c 100644 --- a/types/purifycss-webpack/tsconfig.json +++ b/types/purifycss-webpack/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/pwd-strength/tsconfig.json b/types/pwd-strength/tsconfig.json index 8d239204964ba3..fcb79feb2be01c 100644 --- a/types/pwd-strength/tsconfig.json +++ b/types/pwd-strength/tsconfig.json @@ -5,7 +5,6 @@ "es5" ], "allowSyntheticDefaultImports": true, - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/python-struct/index.d.ts b/types/python-struct/index.d.ts index 954b0965dcaf02..5cf78044cdc00f 100644 --- a/types/python-struct/index.d.ts +++ b/types/python-struct/index.d.ts @@ -1,6 +1,6 @@ /// -import * as Long from "long"; +import Long = require("long"); export type DataType = number | Long | string | boolean; diff --git a/types/q-retry/index.d.ts b/types/q-retry/index.d.ts index 7f71e2e6cb952d..f8c86e722ce333 100644 --- a/types/q-retry/index.d.ts +++ b/types/q-retry/index.d.ts @@ -1,4 +1,4 @@ -import * as Q from "q"; +import Q = require("q"); export = Q; diff --git a/types/qrcode/index.d.ts b/types/qrcode/index.d.ts index 945fa3cde2faf9..8618119a97056a 100644 --- a/types/qrcode/index.d.ts +++ b/types/qrcode/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export type QRCodeErrorCorrectionLevel = "low" | "medium" | "quartile" | "high" | "L" | "M" | "Q" | "H"; export type QRCodeMaskPattern = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7; diff --git a/types/qrcodejs/tsconfig.json b/types/qrcodejs/tsconfig.json index 2e1fdb2fa96f09..6db3c04be859b8 100644 --- a/types/qrcodejs/tsconfig.json +++ b/types/qrcodejs/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/quick-store/quick-store-tests.ts b/types/quick-store/quick-store-tests.ts index cc341fcdd571d1..fc10dada608a64 100644 --- a/types/quick-store/quick-store-tests.ts +++ b/types/quick-store/quick-store-tests.ts @@ -1,4 +1,4 @@ -import * as database from "quick-store"; +import database from "quick-store"; // valid database creations database(); // $ExpectType Database diff --git a/types/quick-store/tsconfig.json b/types/quick-store/tsconfig.json index 19da20b30d63c0..40d8a489a4a0c8 100644 --- a/types/quick-store/tsconfig.json +++ b/types/quick-store/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/quill/tsconfig.json b/types/quill/tsconfig.json index 6500858660896d..9aa0901b65c300 100644 --- a/types/quill/tsconfig.json +++ b/types/quill/tsconfig.json @@ -11,7 +11,6 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "esModuleInterop": true, "forceConsistentCasingInFileNames": true }, "files": [ diff --git a/types/raf/raf-tests.ts b/types/raf/raf-tests.ts index 5f033a972d3cb0..996286d2634aa2 100644 --- a/types/raf/raf-tests.ts +++ b/types/raf/raf-tests.ts @@ -1,4 +1,4 @@ -import * as raf from "raf"; +import raf from "raf"; const handle = raf((timestamp) => { timestamp; // $ExpectType number diff --git a/types/raf/tsconfig.json b/types/raf/tsconfig.json index 50438475155c57..7a3121feb25e07 100644 --- a/types/raf/tsconfig.json +++ b/types/raf/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/ramda/tsconfig.json b/types/ramda/tsconfig.json index d604dba01e321c..353a26a3ee34c0 100644 --- a/types/ramda/tsconfig.json +++ b/types/ramda/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/random-gradient/test/random-gradient-import-tests.ts b/types/random-gradient/test/random-gradient-import-tests.ts index c3fe77aac04bf1..4e5b7641c98193 100644 --- a/types/random-gradient/test/random-gradient-import-tests.ts +++ b/types/random-gradient/test/random-gradient-import-tests.ts @@ -1,4 +1,4 @@ -import * as randomGradient from "random-gradient"; +import randomGradient from "random-gradient"; const direction: randomGradient.GradientDirection = "horizontal"; diff --git a/types/random-gradient/tsconfig.json b/types/random-gradient/tsconfig.json index 1281f78184a2eb..83913853004537 100644 --- a/types/random-gradient/tsconfig.json +++ b/types/random-gradient/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/random-number/tsconfig.json b/types/random-number/tsconfig.json index 3f509aa4ab4626..1d4120b042f066 100644 --- a/types/random-number/tsconfig.json +++ b/types/random-number/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/randomcolor/tsconfig.json b/types/randomcolor/tsconfig.json index eade1a01b94b49..773f5394776489 100644 --- a/types/randomcolor/tsconfig.json +++ b/types/randomcolor/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rc-easyui/rc-easyui-tests.tsx b/types/rc-easyui/rc-easyui-tests.tsx index 9875c81c831fba..44ef5e68a6b2ab 100644 --- a/types/rc-easyui/rc-easyui-tests.tsx +++ b/types/rc-easyui/rc-easyui-tests.tsx @@ -1,4 +1,4 @@ -import * as rcui from "rc-easyui"; +import rcui from "rc-easyui"; import * as React from "react"; type Element = React.ReactElement; diff --git a/types/rdf-ext/tsconfig.json b/types/rdf-ext/tsconfig.json index 70ee65427212e6..9c728d03b9d139 100644 --- a/types/rdf-ext/tsconfig.json +++ b/types/rdf-ext/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rdf-store-fs/tsconfig.json b/types/rdf-store-fs/tsconfig.json index 19ffb165e34966..35d7dd662c34ee 100644 --- a/types/rdf-store-fs/tsconfig.json +++ b/types/rdf-store-fs/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rdf-utils-dataset/tsconfig.json b/types/rdf-utils-dataset/tsconfig.json index 2c2615a33e845b..2125fe9d1af587 100644 --- a/types/rdf-utils-dataset/tsconfig.json +++ b/types/rdf-utils-dataset/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rdfjs__fetch-lite/tsconfig.json b/types/rdfjs__fetch-lite/tsconfig.json index 2add03cac3159f..b8beb1432658e3 100644 --- a/types/rdfjs__fetch-lite/tsconfig.json +++ b/types/rdfjs__fetch-lite/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rdfjs__namespace/tsconfig.json b/types/rdfjs__namespace/tsconfig.json index 7d6425cd4edb3f..b4aea01f40304e 100644 --- a/types/rdfjs__namespace/tsconfig.json +++ b/types/rdfjs__namespace/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rdfjs__parser-jsonld/tsconfig.json b/types/rdfjs__parser-jsonld/tsconfig.json index d5983e98662e7d..1f7ced345d4d4c 100644 --- a/types/rdfjs__parser-jsonld/tsconfig.json +++ b/types/rdfjs__parser-jsonld/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rdfjs__prefix-map/tsconfig.json b/types/rdfjs__prefix-map/tsconfig.json index c0c60f290387b4..feeca32029bdfc 100644 --- a/types/rdfjs__prefix-map/tsconfig.json +++ b/types/rdfjs__prefix-map/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rdfjs__score/tsconfig.json b/types/rdfjs__score/tsconfig.json index 17edd7f01a9b31..3a3e9a5588ba81 100644 --- a/types/rdfjs__score/tsconfig.json +++ b/types/rdfjs__score/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rdfjs__serializer-jsonld-ext/tsconfig.json b/types/rdfjs__serializer-jsonld-ext/tsconfig.json index acc75374bf3d52..8386a31a772dd3 100644 --- a/types/rdfjs__serializer-jsonld-ext/tsconfig.json +++ b/types/rdfjs__serializer-jsonld-ext/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rdfjs__term-map/tsconfig.json b/types/rdfjs__term-map/tsconfig.json index 2228890253559c..a20961c8017eaa 100644 --- a/types/rdfjs__term-map/tsconfig.json +++ b/types/rdfjs__term-map/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rdfjs__term-set/tsconfig.json b/types/rdfjs__term-set/tsconfig.json index ba940b64b08d9a..beef7115fd4d8d 100644 --- a/types/rdfjs__term-set/tsconfig.json +++ b/types/rdfjs__term-set/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rdfjs__traverser/tsconfig.json b/types/rdfjs__traverser/tsconfig.json index e0f2963f69db74..f8c7c0310cf703 100644 --- a/types/rdfjs__traverser/tsconfig.json +++ b/types/rdfjs__traverser/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/react-add-to-calendar/tsconfig.json b/types/react-add-to-calendar/tsconfig.json index 83c367396123bb..5888d084404af8 100644 --- a/types/react-add-to-calendar/tsconfig.json +++ b/types/react-add-to-calendar/tsconfig.json @@ -12,8 +12,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "jsx": "react", - "esModuleInterop": true + "jsx": "react" }, "files": [ "index.d.ts", diff --git a/types/react-autocomplete/react-autocomplete-tests.tsx b/types/react-autocomplete/react-autocomplete-tests.tsx index 976bd08bf5d6d4..c752eeb524c3fa 100644 --- a/types/react-autocomplete/react-autocomplete-tests.tsx +++ b/types/react-autocomplete/react-autocomplete-tests.tsx @@ -1,4 +1,4 @@ -import * as Autocomplete from "react-autocomplete"; +import Autocomplete from "react-autocomplete"; import * as React from "react"; diff --git a/types/react-autocomplete/tsconfig.json b/types/react-autocomplete/tsconfig.json index 332a4ceec09e03..3de6de424c60f9 100644 --- a/types/react-autocomplete/tsconfig.json +++ b/types/react-autocomplete/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/react-big-scheduler/index.d.ts b/types/react-big-scheduler/index.d.ts index a3556e530d116c..d1e73200d33ba4 100644 --- a/types/react-big-scheduler/index.d.ts +++ b/types/react-big-scheduler/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); import * as React from "react"; export default class Scheduler extends React.Component {} diff --git a/types/react-calendar-timeline/react-calendar-timeline-tests.tsx b/types/react-calendar-timeline/react-calendar-timeline-tests.tsx index 66a4e1e8e43608..52477665eb0a8a 100644 --- a/types/react-calendar-timeline/react-calendar-timeline-tests.tsx +++ b/types/react-calendar-timeline/react-calendar-timeline-tests.tsx @@ -1,7 +1,5 @@ -import * as moment from "moment"; -import { Moment } from "moment"; -import * as React from "react"; -import { useState } from "react"; +import moment, { Moment } from "moment"; +import React, { useState } from "react"; import Timeline, { CustomHeader, DateHeader, diff --git a/types/react-calendar-timeline/tsconfig.json b/types/react-calendar-timeline/tsconfig.json index 5e463a8b070ce4..69ec7245f39787 100644 --- a/types/react-calendar-timeline/tsconfig.json +++ b/types/react-calendar-timeline/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/react-combine-reducers/tsconfig.json b/types/react-combine-reducers/tsconfig.json index 82534d4ccd28b2..bb3af366bf4390 100644 --- a/types/react-combine-reducers/tsconfig.json +++ b/types/react-combine-reducers/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/react-count-to/react-count-to-tests.tsx b/types/react-count-to/react-count-to-tests.tsx index 14526e20e7b378..16c9709a0b31a1 100644 --- a/types/react-count-to/react-count-to-tests.tsx +++ b/types/react-count-to/react-count-to-tests.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import * as CountTo from "react-count-to"; +import CountTo from "react-count-to"; export class Test extends React.Component { render() { diff --git a/types/react-count-to/tsconfig.json b/types/react-count-to/tsconfig.json index 03931963914c44..13483a94379848 100644 --- a/types/react-count-to/tsconfig.json +++ b/types/react-count-to/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/react-currency-formatter/react-currency-formatter-tests.tsx b/types/react-currency-formatter/react-currency-formatter-tests.tsx index d3ae993faa3418..9667249b7d208a 100644 --- a/types/react-currency-formatter/react-currency-formatter-tests.tsx +++ b/types/react-currency-formatter/react-currency-formatter-tests.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import * as CurrencyFormatter from "react-currency-formatter"; +import CurrencyFormatter from "react-currency-formatter"; interface Props { price: number; diff --git a/types/react-currency-formatter/tsconfig.json b/types/react-currency-formatter/tsconfig.json index 3d6e77c51c8b01..efdce94357a265 100644 --- a/types/react-currency-formatter/tsconfig.json +++ b/types/react-currency-formatter/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/react-data-grid/react-data-grid-tests.tsx b/types/react-data-grid/react-data-grid-tests.tsx index 2ea9ccafd7d5d3..49af5ec19d8168 100644 --- a/types/react-data-grid/react-data-grid-tests.tsx +++ b/types/react-data-grid/react-data-grid-tests.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import ReactDataGrid = require("react-data-grid"); -import * as ReactDataGridPlugins from "react-data-grid-addons"; +import ReactDataGridPlugins from "react-data-grid-addons"; import faker = require("faker"); var Editors = ReactDataGridPlugins.Editors; diff --git a/types/react-data-grid/v1/react-data-grid-tests.tsx b/types/react-data-grid/v1/react-data-grid-tests.tsx index 13f1e05c07fcbf..65ddf77e92c69a 100644 --- a/types/react-data-grid/v1/react-data-grid-tests.tsx +++ b/types/react-data-grid/v1/react-data-grid-tests.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import ReactDataGrid = require("react-data-grid"); -import * as ReactDataGridPlugins from "react-data-grid/addons"; +import ReactDataGridPlugins from "react-data-grid/addons"; import faker = require("faker"); var Editors = ReactDataGridPlugins.Editors; diff --git a/types/react-data-grid/v2/react-data-grid-tests.tsx b/types/react-data-grid/v2/react-data-grid-tests.tsx index 86455d6bda7e8f..b0e1e90d144066 100644 --- a/types/react-data-grid/v2/react-data-grid-tests.tsx +++ b/types/react-data-grid/v2/react-data-grid-tests.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import ReactDataGrid = require("react-data-grid"); -import * as ReactDataGridPlugins from "react-data-grid-addons"; +import ReactDataGridPlugins from "react-data-grid-addons"; import faker = require("faker"); var Editors = ReactDataGridPlugins.Editors; diff --git a/types/react-date-range/v0/index.d.ts b/types/react-date-range/v0/index.d.ts index c261ef04ee4505..85565a250725b1 100644 --- a/types/react-date-range/v0/index.d.ts +++ b/types/react-date-range/v0/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); import * as React from "react"; export type AnyDate = string | moment.Moment; diff --git a/types/react-dates/index.d.ts b/types/react-dates/index.d.ts index 2e238e436ae14f..75f789e0ae1966 100644 --- a/types/react-dates/index.d.ts +++ b/types/react-dates/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); import * as React from "react"; import { Props as ReactOutsideClickHandlerProps } from "react-outside-click-handler"; import * as constants from "./constants"; diff --git a/types/react-dates/react-dates-tests.tsx b/types/react-dates/react-dates-tests.tsx index 9998eced4eea66..fccaebb4706cf8 100644 --- a/types/react-dates/react-dates-tests.tsx +++ b/types/react-dates/react-dates-tests.tsx @@ -1,5 +1,5 @@ -import * as moment from "moment"; -import * as React from "react"; +import moment from "moment"; +import React from "react"; import { CalendarDay, diff --git a/types/react-dates/tsconfig.json b/types/react-dates/tsconfig.json index 9df7c5d829c17a..2bdf46c20d52d1 100644 --- a/types/react-dates/tsconfig.json +++ b/types/react-dates/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/react-dom/test/react-dom-tests.tsx b/types/react-dom/test/react-dom-tests.tsx index 296d25128ed5e4..70dbdaff7e9500 100644 --- a/types/react-dom/test/react-dom-tests.tsx +++ b/types/react-dom/test/react-dom-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import * as ReactDOM from "react-dom"; import * as ReactDOMClient from "react-dom/client"; import * as ReactDOMServer from "react-dom/server"; diff --git a/types/react-file-reader-input/tsconfig.json b/types/react-file-reader-input/tsconfig.json index 3ef5c901ffbd8d..1e397985b4a0ac 100644 --- a/types/react-file-reader-input/tsconfig.json +++ b/types/react-file-reader-input/tsconfig.json @@ -5,7 +5,6 @@ "es6", "dom" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/react-final-form-listeners/tsconfig.json b/types/react-final-form-listeners/tsconfig.json index 5c2b13c787b759..6d41ab18734a40 100644 --- a/types/react-final-form-listeners/tsconfig.json +++ b/types/react-final-form-listeners/tsconfig.json @@ -11,7 +11,6 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "jsx": "preserve" }, diff --git a/types/react-form/v1/react-form-tests.tsx b/types/react-form/v1/react-form-tests.tsx index e2a8f1d2b97de2..0b563f2c2afa78 100644 --- a/types/react-form/v1/react-form-tests.tsx +++ b/types/react-form/v1/react-form-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import { Checkbox, Form, diff --git a/types/react-gamepad/test/readme-tests.tsx b/types/react-gamepad/test/readme-tests.tsx index 4d8909b38df405..0e733903a57c3a 100644 --- a/types/react-gamepad/test/readme-tests.tsx +++ b/types/react-gamepad/test/readme-tests.tsx @@ -1,6 +1,6 @@ // https://github.com/SBRK/react-gamepad/blob/master/README.md -import * as React from "react"; +import React from "react"; import Gamepad, { Axis, Button, layouts } from "react-gamepad"; // Usage example diff --git a/types/react-hammerjs/index.d.ts b/types/react-hammerjs/index.d.ts index 18b94c96522033..243d8df8916278 100644 --- a/types/react-hammerjs/index.d.ts +++ b/types/react-hammerjs/index.d.ts @@ -1,4 +1,4 @@ -import * as Hammer from "hammerjs"; +import Hammer = require("hammerjs"); import * as React from "react"; type Omit = Pick>; diff --git a/types/react-hammerjs/tsconfig.json b/types/react-hammerjs/tsconfig.json index 9f43c37da663c8..2c93e78608b99b 100644 --- a/types/react-hammerjs/tsconfig.json +++ b/types/react-hammerjs/tsconfig.json @@ -12,8 +12,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "jsx": "react", - "esModuleInterop": true + "jsx": "react" }, "files": [ "index.d.ts", diff --git a/types/react-hammerjs/v0/index.d.ts b/types/react-hammerjs/v0/index.d.ts index aeb89f9f48b44b..348ce4e5c32718 100644 --- a/types/react-hammerjs/v0/index.d.ts +++ b/types/react-hammerjs/v0/index.d.ts @@ -1,4 +1,4 @@ -import * as Hammer from "hammerjs"; +import Hammer = require("hammerjs"); import * as React from "react"; type Omit = Pick>; diff --git a/types/react-hammerjs/v0/tsconfig.json b/types/react-hammerjs/v0/tsconfig.json index 9f43c37da663c8..2c93e78608b99b 100644 --- a/types/react-hammerjs/v0/tsconfig.json +++ b/types/react-hammerjs/v0/tsconfig.json @@ -12,8 +12,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "jsx": "react", - "esModuleInterop": true + "jsx": "react" }, "files": [ "index.d.ts", diff --git a/types/react-highlighter/react-highlighter-tests.tsx b/types/react-highlighter/react-highlighter-tests.tsx index 6030b964a559fe..7835b212f41972 100644 --- a/types/react-highlighter/react-highlighter-tests.tsx +++ b/types/react-highlighter/react-highlighter-tests.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import * as Highlight from "react-highlighter"; +import Highlight from "react-highlighter"; export class ReactHolderTest extends React.Component { render() { diff --git a/types/react-hyperscript/tsconfig.json b/types/react-hyperscript/tsconfig.json index 4d67f4fc7009fb..0903ea0b5f3998 100644 --- a/types/react-hyperscript/tsconfig.json +++ b/types/react-hyperscript/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "lib": [ "es6" diff --git a/types/react-input-autosize/tsconfig.json b/types/react-input-autosize/tsconfig.json index 20917e5b0f09ef..52874efece784e 100644 --- a/types/react-input-autosize/tsconfig.json +++ b/types/react-input-autosize/tsconfig.json @@ -12,8 +12,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "jsx": "react", - "esModuleInterop": true + "jsx": "react" }, "files": [ "index.d.ts", diff --git a/types/react-is/test/canary-tests.tsx b/types/react-is/test/canary-tests.tsx index 9202abd93b062e..b06e574ea44670 100644 --- a/types/react-is/test/canary-tests.tsx +++ b/types/react-is/test/canary-tests.tsx @@ -1,5 +1,5 @@ /// -import * as React from "react"; +import React from "react"; import * as ReactIs from "react-is"; import "react-is/canary"; diff --git a/types/react-is/test/react-is-tests.tsx b/types/react-is/test/react-is-tests.tsx index a8b849ff2729df..21756801a85556 100644 --- a/types/react-is/test/react-is-tests.tsx +++ b/types/react-is/test/react-is-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import * as ReactDOM from "react-dom"; import * as ReactIs from "react-is"; diff --git a/types/react-is/v16/react-is-tests.tsx b/types/react-is/v16/react-is-tests.tsx index 327c0fd9e57ad6..35ab03cd85c87f 100644 --- a/types/react-is/v16/react-is-tests.tsx +++ b/types/react-is/v16/react-is-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import * as ReactDOM from "react-dom"; import * as ReactIs from "react-is"; diff --git a/types/react-is/v17/test/react-is-tests.tsx b/types/react-is/v17/test/react-is-tests.tsx index cb9b59b8fd93de..cc8a96d623da63 100644 --- a/types/react-is/v17/test/react-is-tests.tsx +++ b/types/react-is/v17/test/react-is-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import * as ReactDOM from "react-dom"; import * as ReactIs from "react-is"; diff --git a/types/react-is/v18/test/react-is-tests.tsx b/types/react-is/v18/test/react-is-tests.tsx index cb9b59b8fd93de..cc8a96d623da63 100644 --- a/types/react-is/v18/test/react-is-tests.tsx +++ b/types/react-is/v18/test/react-is-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import * as ReactDOM from "react-dom"; import * as ReactIs from "react-is"; diff --git a/types/react-js-pagination/tsconfig.json b/types/react-js-pagination/tsconfig.json index 966fa3d6d72fba..1dc3e38d800228 100644 --- a/types/react-js-pagination/tsconfig.json +++ b/types/react-js-pagination/tsconfig.json @@ -12,7 +12,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "jsx": "react" }, "files": [ diff --git a/types/react-loadable-visibility/react-loadable.d.ts b/types/react-loadable-visibility/react-loadable.d.ts index 73e59312efa6b4..82a81713d084cc 100644 --- a/types/react-loadable-visibility/react-loadable.d.ts +++ b/types/react-loadable-visibility/react-loadable.d.ts @@ -1,2 +1,2 @@ -import * as Loadable from "react-loadable"; +import Loadable = require("react-loadable"); export default Loadable; diff --git a/types/react-loadable-visibility/tsconfig.json b/types/react-loadable-visibility/tsconfig.json index 67495f77885614..67bcc85a16e62a 100644 --- a/types/react-loadable-visibility/tsconfig.json +++ b/types/react-loadable-visibility/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/react-loadable/tsconfig.json b/types/react-loadable/tsconfig.json index 117ea1ce95e6a7..34a12a436e3cfc 100644 --- a/types/react-loadable/tsconfig.json +++ b/types/react-loadable/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/react-markings/index.d.ts b/types/react-markings/index.d.ts index f4816367c8d7cd..9a5fc42dc91b9f 100644 --- a/types/react-markings/index.d.ts +++ b/types/react-markings/index.d.ts @@ -1,4 +1,4 @@ -import * as CommonmarkReactRenderer from "commonmark-react-renderer"; +import CommonmarkReactRenderer = require("commonmark-react-renderer"); import * as React from "react"; declare namespace md { diff --git a/types/react-markings/react-markings-tests.tsx b/types/react-markings/react-markings-tests.tsx index 72282bef31d2a6..d3e2170dbfae78 100644 --- a/types/react-markings/react-markings-tests.tsx +++ b/types/react-markings/react-markings-tests.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import * as md from "react-markings"; +import md from "react-markings"; function Example() { return ( diff --git a/types/react-markings/tsconfig.json b/types/react-markings/tsconfig.json index 365bb3f8248134..92af4a9b07e7e5 100644 --- a/types/react-markings/tsconfig.json +++ b/types/react-markings/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/react-mathjax/tsconfig.json b/types/react-mathjax/tsconfig.json index b7072c90605647..aae959aefe3cf8 100644 --- a/types/react-mathjax/tsconfig.json +++ b/types/react-mathjax/tsconfig.json @@ -12,8 +12,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "jsx": "react", - "esModuleInterop": true + "jsx": "react" }, "files": [ "index.d.ts", diff --git a/types/react-messenger-checkbox/tsconfig.json b/types/react-messenger-checkbox/tsconfig.json index 9f8fbc35acd8fa..05695b32b97792 100644 --- a/types/react-messenger-checkbox/tsconfig.json +++ b/types/react-messenger-checkbox/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "module": "node16", "lib": [ "es6" diff --git a/types/react-native-config-reader/tsconfig.json b/types/react-native-config-reader/tsconfig.json index 3b66d3389b8f0c..e0f05562645439 100644 --- a/types/react-native-config-reader/tsconfig.json +++ b/types/react-native-config-reader/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/react-native-datawedge-intents/tsconfig.json b/types/react-native-datawedge-intents/tsconfig.json index 004dc927c0ce73..fbe6aeb44efa25 100644 --- a/types/react-native-datawedge-intents/tsconfig.json +++ b/types/react-native-datawedge-intents/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/react-native-datepicker/index.d.ts b/types/react-native-datepicker/index.d.ts index 15199b0c20a7cb..6dc3333e687fcf 100644 --- a/types/react-native-datepicker/index.d.ts +++ b/types/react-native-datepicker/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); import * as React from "react"; import { ImageStyle, ImageURISource, StyleProp, TextStyle, ViewStyle } from "react-native"; diff --git a/types/react-native-dotenv/tsconfig.json b/types/react-native-dotenv/tsconfig.json index 01b6f3bf4b9f60..6b5aa62bb0edf2 100644 --- a/types/react-native-dotenv/tsconfig.json +++ b/types/react-native-dotenv/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/react-native-easy-upgrade/tsconfig.json b/types/react-native-easy-upgrade/tsconfig.json index 7ade557917ce7a..9b5615c7f2181b 100644 --- a/types/react-native-easy-upgrade/tsconfig.json +++ b/types/react-native-easy-upgrade/tsconfig.json @@ -12,7 +12,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/react-native-immersive/tsconfig.json b/types/react-native-immersive/tsconfig.json index 38a06a548c8e83..93049b0f96eb27 100644 --- a/types/react-native-immersive/tsconfig.json +++ b/types/react-native-immersive/tsconfig.json @@ -1,12 +1,16 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "target": "es6", - "lib": ["es6"], + "lib": [ + "es6" + ], "strict": true, "noEmit": true, "types": [], "forceConsistentCasingInFileNames": true }, - "files": ["index.d.ts"] + "files": [ + "index.d.ts" + ] } diff --git a/types/react-native-indicators/react-native-indicators-tests.tsx b/types/react-native-indicators/react-native-indicators-tests.tsx index 2f1c60e8bc6086..f71db870ac9cd7 100644 --- a/types/react-native-indicators/react-native-indicators-tests.tsx +++ b/types/react-native-indicators/react-native-indicators-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import { DotIndicator } from "react-native-indicators"; class Example extends React.Component { diff --git a/types/react-native-orientation/react-native-orientation-tests.ts b/types/react-native-orientation/react-native-orientation-tests.ts index e792ca2bc4ebd6..28283b32dd11fd 100644 --- a/types/react-native-orientation/react-native-orientation-tests.ts +++ b/types/react-native-orientation/react-native-orientation-tests.ts @@ -1,4 +1,4 @@ -import * as Orientation from "react-native-orientation"; +import Orientation from "react-native-orientation"; Orientation.addOrientationListener((orientation) => {}); Orientation.removeOrientationListener((orientation) => {}); diff --git a/types/react-native-razorpay/tsconfig.json b/types/react-native-razorpay/tsconfig.json index 822c9fbc0e79a5..163becab228700 100644 --- a/types/react-native-razorpay/tsconfig.json +++ b/types/react-native-razorpay/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/react-native-safari-view/tsconfig.json b/types/react-native-safari-view/tsconfig.json index 2bb4ba8c0f22ff..480a2fe1b9d282 100644 --- a/types/react-native-safari-view/tsconfig.json +++ b/types/react-native-safari-view/tsconfig.json @@ -11,7 +11,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "jsx": "react" + "jsx": "react", + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/react-native-simple-radio-button/react-native-simple-radio-button-tests.tsx b/types/react-native-simple-radio-button/react-native-simple-radio-button-tests.tsx index 2f18255e3085a1..9c8841069d34ae 100644 --- a/types/react-native-simple-radio-button/react-native-simple-radio-button-tests.tsx +++ b/types/react-native-simple-radio-button/react-native-simple-radio-button-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import RadioForm, { RadioButton, RadioButtonInput, RadioButtonLabel } from "react-native-simple-radio-button"; const data = [ diff --git a/types/react-native-svg-charts/react-native-svg-charts-tests.tsx b/types/react-native-svg-charts/react-native-svg-charts-tests.tsx index 93cc09315074a3..54ecf1cf1b06cb 100644 --- a/types/react-native-svg-charts/react-native-svg-charts-tests.tsx +++ b/types/react-native-svg-charts/react-native-svg-charts-tests.tsx @@ -1,6 +1,6 @@ import { scaleTime } from "d3-scale"; import { curveNatural } from "d3-shape"; -import * as React from "react"; +import React from "react"; import { View } from "react-native"; import { LinearGradientProps, Stop } from "react-native-svg"; import { BarChart, Decorators, Grid, StackedAreaChart, StackedBarChart, XAxis } from "react-native-svg-charts"; diff --git a/types/react-native-wol/tsconfig.json b/types/react-native-wol/tsconfig.json index a41270b3c118e6..981c6f9eeb9e22 100644 --- a/types/react-native-wol/tsconfig.json +++ b/types/react-native-wol/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/react-native__assets/react-native__assets-tests.ts b/types/react-native__assets/react-native__assets-tests.ts index 60de59876246d3..232516fb85a59b 100644 --- a/types/react-native__assets/react-native__assets-tests.ts +++ b/types/react-native__assets/react-native__assets-tests.ts @@ -1,5 +1,5 @@ import * as p from "@react-native/assets/path-support"; -import * as r from "@react-native/assets/registry"; +import r from "@react-native/assets/registry"; const asset: r.PackagerAsset = { __packager_asset: true, diff --git a/types/react-page-visibility/react-page-visibility-tests.tsx b/types/react-page-visibility/react-page-visibility-tests.tsx index c6752a583b3eaf..39442825916367 100644 --- a/types/react-page-visibility/react-page-visibility-tests.tsx +++ b/types/react-page-visibility/react-page-visibility-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import PageVisibility, { KnownVisibilityStates, usePageVisibility } from "react-page-visibility"; const ComponentExpectsBoolean = (props: { isVisible: boolean }) => { diff --git a/types/react-plotly.js/react-plotly.js-tests.tsx b/types/react-plotly.js/react-plotly.js-tests.tsx index 9283bbd43b2573..de2a0d1a762d2e 100644 --- a/types/react-plotly.js/react-plotly.js-tests.tsx +++ b/types/react-plotly.js/react-plotly.js-tests.tsx @@ -1,4 +1,4 @@ -import * as Plotly from "plotly.js"; +import Plotly from "plotly.js"; import * as React from "react"; import Plot from "react-plotly.js"; import createPlotlyComponent from "react-plotly.js/factory"; diff --git a/types/react-portal/v3/react-portal-tests.tsx b/types/react-portal/v3/react-portal-tests.tsx index a499426ac6d8ab..7e2f789580eda2 100644 --- a/types/react-portal/v3/react-portal-tests.tsx +++ b/types/react-portal/v3/react-portal-tests.tsx @@ -1,6 +1,6 @@ // Example from https://github.com/tajo/react-portal import * as React from "react"; -import * as Portal from "react-portal"; +import Portal from "react-portal"; export default class App extends React.Component { render() { diff --git a/types/react-portal/v3/tsconfig.json b/types/react-portal/v3/tsconfig.json index 94b75a0506ade1..05a035f0914ec6 100644 --- a/types/react-portal/v3/tsconfig.json +++ b/types/react-portal/v3/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "target": "es6", "noImplicitAny": true, "noImplicitThis": true, diff --git a/types/react-power-tooltip/tsconfig.json b/types/react-power-tooltip/tsconfig.json index acd3c6d14d9f3f..704aa833acf6f2 100644 --- a/types/react-power-tooltip/tsconfig.json +++ b/types/react-power-tooltip/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "jsx": "react", diff --git a/types/react-qr-reader/react-qr-reader-tests.tsx b/types/react-qr-reader/react-qr-reader-tests.tsx index 02cc878b10554f..fc4889e6b63b48 100644 --- a/types/react-qr-reader/react-qr-reader-tests.tsx +++ b/types/react-qr-reader/react-qr-reader-tests.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import * as QrReader from "react-qr-reader"; +import QrReader from "react-qr-reader"; export class Test extends React.Component { render() { diff --git a/types/react-qr-reader/tsconfig.json b/types/react-qr-reader/tsconfig.json index d5193cc0474095..78fa8ad59a2df2 100644 --- a/types/react-qr-reader/tsconfig.json +++ b/types/react-qr-reader/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/react-radio-group/react-radio-group-tests.tsx b/types/react-radio-group/react-radio-group-tests.tsx index 92a3cf6eaac927..f0f9a1450678b8 100644 --- a/types/react-radio-group/react-radio-group-tests.tsx +++ b/types/react-radio-group/react-radio-group-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import { Radio, RadioGroup } from "react-radio-group"; const DefaultComponent: React.FC> = ({ children, ...rest }) => { diff --git a/types/react-redux-i18n/react-redux-i18n-tests.tsx b/types/react-redux-i18n/react-redux-i18n-tests.tsx index b82ec199202b86..87a37c132eeb6d 100644 --- a/types/react-redux-i18n/react-redux-i18n-tests.tsx +++ b/types/react-redux-i18n/react-redux-i18n-tests.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import * as I18n from "react-redux-i18n"; +import I18n from "react-redux-i18n"; class ReactReduxI18nTests_Translate1 extends React.Component { render() { diff --git a/types/react-relative-portal/react-relative-portal-tests.tsx b/types/react-relative-portal/react-relative-portal-tests.tsx index 6fe073913d7f80..3e058cf5c8810b 100644 --- a/types/react-relative-portal/react-relative-portal-tests.tsx +++ b/types/react-relative-portal/react-relative-portal-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import RelativePortal = require("react-relative-portal"); diff --git a/types/react-relay/test/relay-hooks-tests.tsx b/types/react-relay/test/relay-hooks-tests.tsx index 185c94eefd14d5..f9e45a908a0eb7 100644 --- a/types/react-relay/test/relay-hooks-tests.tsx +++ b/types/react-relay/test/relay-hooks-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import { EntryPoint, EntryPointComponent, diff --git a/types/react-router-navigation-core/react-router-navigation-core-tests.tsx b/types/react-router-navigation-core/react-router-navigation-core-tests.tsx index 022a2f079565bf..9976c30daf37a9 100644 --- a/types/react-router-navigation-core/react-router-navigation-core-tests.tsx +++ b/types/react-router-navigation-core/react-router-navigation-core-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import { View } from "react-native"; import { TabView } from "react-native-tab-view"; import { TabBarProps, TabProps } from "react-router-navigation"; diff --git a/types/react-scroll-into-view-if-needed/tsconfig.json b/types/react-scroll-into-view-if-needed/tsconfig.json index 1ffcaec22bd349..fb083e9d0a4baa 100644 --- a/types/react-scroll-into-view-if-needed/tsconfig.json +++ b/types/react-scroll-into-view-if-needed/tsconfig.json @@ -12,7 +12,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/react-scroll-to-bottom/react-scroll-to-bottom-tests.tsx b/types/react-scroll-to-bottom/react-scroll-to-bottom-tests.tsx index 7dabf88c693701..be6d45af029a71 100644 --- a/types/react-scroll-to-bottom/react-scroll-to-bottom-tests.tsx +++ b/types/react-scroll-to-bottom/react-scroll-to-bottom-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import ScrollToBottom, { FunctionContext, ScrollOption, diff --git a/types/react-slider/tsconfig.json b/types/react-slider/tsconfig.json index 3e664dafd5b38c..c819afe72e964a 100644 --- a/types/react-slider/tsconfig.json +++ b/types/react-slider/tsconfig.json @@ -12,8 +12,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "jsx": "react", - "esModuleInterop": false + "jsx": "react" }, "files": [ "index.d.ts", diff --git a/types/react-sound/tsconfig.json b/types/react-sound/tsconfig.json index 5e745bd47cbeeb..9b353dfe3eeb81 100644 --- a/types/react-sound/tsconfig.json +++ b/types/react-sound/tsconfig.json @@ -12,8 +12,7 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "jsx": "react", - "esModuleInterop": true + "jsx": "react" }, "files": [ "index.d.ts", diff --git a/types/react-star-rating-component/tsconfig.json b/types/react-star-rating-component/tsconfig.json index d5115ac5d9a941..7e341824d57c3c 100644 --- a/types/react-star-rating-component/tsconfig.json +++ b/types/react-star-rating-component/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/react-stars/tsconfig.json b/types/react-stars/tsconfig.json index bf626dd95b30f0..21fa063f115fc3 100644 --- a/types/react-stars/tsconfig.json +++ b/types/react-stars/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/react-stickynode/react-stickynode-tests.tsx b/types/react-stickynode/react-stickynode-tests.tsx index a4313b093a0e36..f53d9597a2cb44 100644 --- a/types/react-stickynode/react-stickynode-tests.tsx +++ b/types/react-stickynode/react-stickynode-tests.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import * as Sticky from "react-stickynode"; +import Sticky from "react-stickynode"; const StickyAllOptions: React.JSX.Element = ( -import type * as NodeStream from "stream"; +import NodeStream = require("stream"); declare class StringDecoder { constructor(encoding?: BufferEncoding | string); diff --git a/types/readmore-js/readmore-js-tests.ts b/types/readmore-js/readmore-js-tests.ts index 04ef5721690e9f..9647c5f8827f7c 100644 --- a/types/readmore-js/readmore-js-tests.ts +++ b/types/readmore-js/readmore-js-tests.ts @@ -1,4 +1,4 @@ -import * as Readmore from "readmore-js"; +import Readmore from "readmore-js"; const options: Readmore.Options = { speed: 100, diff --git a/types/readmore-js/tsconfig.json b/types/readmore-js/tsconfig.json index 5f286469405098..5bd758af8a00a8 100644 --- a/types/readmore-js/tsconfig.json +++ b/types/readmore-js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/rebass__grid/rebass__grid-tests.tsx b/types/rebass__grid/rebass__grid-tests.tsx index b4f65695c4a75d..9c0d0c5fd3c23b 100644 --- a/types/rebass__grid/rebass__grid-tests.tsx +++ b/types/rebass__grid/rebass__grid-tests.tsx @@ -1,5 +1,5 @@ import { Box, Flex } from "@rebass/grid"; -import * as Emotion from "@rebass/grid/emotion"; +import Emotion from "@rebass/grid/emotion"; import * as React from "react"; const test = () => ( diff --git a/types/recaptcha2/recaptcha2-tests.ts b/types/recaptcha2/recaptcha2-tests.ts index 6bc13004ed2eed..2b37fb4b23ff1c 100644 --- a/types/recaptcha2/recaptcha2-tests.ts +++ b/types/recaptcha2/recaptcha2-tests.ts @@ -1,4 +1,4 @@ -import * as reCAPTCHA from "recaptcha2"; +import reCAPTCHA from "recaptcha2"; const recaptcha = new reCAPTCHA({ siteKey: "your-site-key", diff --git a/types/recaptcha2/tsconfig.json b/types/recaptcha2/tsconfig.json index accb1234a4c9f2..de072ac3a590a8 100644 --- a/types/recaptcha2/tsconfig.json +++ b/types/recaptcha2/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/recluster/tsconfig.json b/types/recluster/tsconfig.json index d39f9d46e69f91..87bc80196d2010 100644 --- a/types/recluster/tsconfig.json +++ b/types/recluster/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/recordrtc/tsconfig.json b/types/recordrtc/tsconfig.json index 4aff116024a8ce..9bbd625c1723ef 100644 --- a/types/recordrtc/tsconfig.json +++ b/types/recordrtc/tsconfig.json @@ -11,7 +11,6 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "esModuleInterop": true, "forceConsistentCasingInFileNames": true }, "files": [ diff --git a/types/recurly__recurly-js/tsconfig.json b/types/recurly__recurly-js/tsconfig.json index 07ccab5aa15c87..9b42844f463f4e 100644 --- a/types/recurly__recurly-js/tsconfig.json +++ b/types/recurly__recurly-js/tsconfig.json @@ -1,7 +1,6 @@ { "compilerOptions": { "module": "node16", - "esModuleInterop": true, "lib": [ "es6", "dom" diff --git a/types/redis-rate-limiter/index.d.ts b/types/redis-rate-limiter/index.d.ts index e68282bdd5f339..7b8bcdd4bbccb3 100644 --- a/types/redis-rate-limiter/index.d.ts +++ b/types/redis-rate-limiter/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); import * as redis from "redis"; declare class RedisRateLimiter { diff --git a/types/redlock/index.d.ts b/types/redlock/index.d.ts index 3632db317e5b21..186d3e2691861a 100644 --- a/types/redlock/index.d.ts +++ b/types/redlock/index.d.ts @@ -1,4 +1,4 @@ -import * as Promise from "bluebird"; +import Promise = require("bluebird"); import { EventEmitter } from "events"; export = Redlock; diff --git a/types/redlock/v2/index.d.ts b/types/redlock/v2/index.d.ts index 835591c46d399a..fe3521f6c3de37 100644 --- a/types/redlock/v2/index.d.ts +++ b/types/redlock/v2/index.d.ts @@ -1,4 +1,4 @@ -import * as Promise from "bluebird"; +import Promise = require("bluebird"); import * as redis from "redis"; export = Redlock; diff --git a/types/redlock/v3/index.d.ts b/types/redlock/v3/index.d.ts index 032e20ee3a74e0..aa43ebc4ee6f67 100644 --- a/types/redlock/v3/index.d.ts +++ b/types/redlock/v3/index.d.ts @@ -1,4 +1,4 @@ -import * as Promise from "bluebird"; +import Promise = require("bluebird"); import { EventEmitter } from "events"; export = Redlock; diff --git a/types/redux-form/redux-form-tests.tsx b/types/redux-form/redux-form-tests.tsx index 34b0dcb744c136..e27aed0520a26e 100644 --- a/types/redux-form/redux-form-tests.tsx +++ b/types/redux-form/redux-form-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import { Dispatch } from "redux"; import { actionTypes, diff --git a/types/redux-form/v7/redux-form-tests.tsx b/types/redux-form/v7/redux-form-tests.tsx index deebf92098b94e..985ac42cd4746c 100644 --- a/types/redux-form/v7/redux-form-tests.tsx +++ b/types/redux-form/v7/redux-form-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import { Action, Dispatch } from "redux"; import { actionTypes, diff --git a/types/reflexbox/reflexbox-tests.tsx b/types/reflexbox/reflexbox-tests.tsx index 5e2920d1b31989..d530eb9b35dae7 100644 --- a/types/reflexbox/reflexbox-tests.tsx +++ b/types/reflexbox/reflexbox-tests.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import { Box, Flex } from "reflexbox"; -import * as Styled from "reflexbox/styled-components"; +import Styled from "reflexbox/styled-components"; const test = () => (
diff --git a/types/reflexbox/tsconfig.json b/types/reflexbox/tsconfig.json index 7cc2364497159a..a5e04b9eb45725 100644 --- a/types/reflexbox/tsconfig.json +++ b/types/reflexbox/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/regenerate/tsconfig.json b/types/regenerate/tsconfig.json index 442b1c96614b0a..f62e4ae73e3780 100644 --- a/types/regenerate/tsconfig.json +++ b/types/regenerate/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "test/regenerate.cjs.test.ts", diff --git a/types/relay-test-utils/tsconfig.json b/types/relay-test-utils/tsconfig.json index 66231afb46690f..0642cfea6e1019 100644 --- a/types/relay-test-utils/tsconfig.json +++ b/types/relay-test-utils/tsconfig.json @@ -18,7 +18,6 @@ "noEmit": true, "jsx": "react", "experimentalDecorators": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true } } diff --git a/types/rellax/tsconfig.json b/types/rellax/tsconfig.json index 546901779f1d60..fd3c5b043d977a 100644 --- a/types/rellax/tsconfig.json +++ b/types/rellax/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/remark-heading-id/tsconfig.json b/types/remark-heading-id/tsconfig.json index 4ca196980657ba..948a21adb930cb 100644 --- a/types/remark-heading-id/tsconfig.json +++ b/types/remark-heading-id/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "noEmit": true, "forceConsistentCasingInFileNames": true, - "types": [] + "types": [], + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/remark-hint/tsconfig.json b/types/remark-hint/tsconfig.json index 84cb1157f09a25..77b66e24683c05 100644 --- a/types/remark-hint/tsconfig.json +++ b/types/remark-hint/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "noEmit": true, "forceConsistentCasingInFileNames": true, - "types": [] + "types": [], + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/remark-oembed/tsconfig.json b/types/remark-oembed/tsconfig.json index 2288789c96743f..b12a860bf05385 100644 --- a/types/remark-oembed/tsconfig.json +++ b/types/remark-oembed/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/remark-prism/tsconfig.json b/types/remark-prism/tsconfig.json index fc77504f6050db..8b1684153fda2a 100644 --- a/types/remark-prism/tsconfig.json +++ b/types/remark-prism/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/repeating/tsconfig.json b/types/repeating/tsconfig.json index 3c9bcb8b0ff5b3..41e1cdbdc59d36 100644 --- a/types/repeating/tsconfig.json +++ b/types/repeating/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/reselect-tools/tsconfig.json b/types/reselect-tools/tsconfig.json index e2d3e6698196d7..9ef43cffcb7cd8 100644 --- a/types/reselect-tools/tsconfig.json +++ b/types/reselect-tools/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/resolve-bin/tsconfig.json b/types/resolve-bin/tsconfig.json index ae90f4fc2d7ae1..9934b86bab1eaf 100644 --- a/types/resolve-bin/tsconfig.json +++ b/types/resolve-bin/tsconfig.json @@ -6,7 +6,6 @@ ], "target": "es6", "noImplicitAny": true, - "esModuleInterop": true, "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, diff --git a/types/resolve-protobuf-schema/tsconfig.json b/types/resolve-protobuf-schema/tsconfig.json index 8624df19a22954..3ed0a7bbba38a4 100644 --- a/types/resolve-protobuf-schema/tsconfig.json +++ b/types/resolve-protobuf-schema/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/restify/restify-tests.ts b/types/restify/restify-tests.ts index 481a8594f231f9..1fb81e17feb0f0 100644 --- a/types/restify/restify-tests.ts +++ b/types/restify/restify-tests.ts @@ -1,4 +1,4 @@ -import * as Logger from "bunyan"; +import Logger from "bunyan"; import * as http from "http"; import * as restify from "restify"; import * as stream from "stream"; diff --git a/types/restify/v5/restify-tests.ts b/types/restify/v5/restify-tests.ts index d4f8850337a844..39b481135689a0 100644 --- a/types/restify/v5/restify-tests.ts +++ b/types/restify/v5/restify-tests.ts @@ -1,4 +1,4 @@ -import * as Logger from "bunyan"; +import Logger from "bunyan"; import * as http from "http"; import * as restify from "restify"; import * as stream from "stream"; diff --git a/types/restling/index.d.ts b/types/restling/index.d.ts index b4ad7998f12ad3..cc231ebf3cca4f 100644 --- a/types/restling/index.d.ts +++ b/types/restling/index.d.ts @@ -1,4 +1,4 @@ -import * as Promise from "bluebird"; +import Promise = require("bluebird"); import { ServerResponse } from "http"; import * as Restler from "restler"; diff --git a/types/rethinkdb/rethinkdb-tests.ts b/types/rethinkdb/rethinkdb-tests.ts index d65996dca30f08..bcd80eae6549ad 100644 --- a/types/rethinkdb/rethinkdb-tests.ts +++ b/types/rethinkdb/rethinkdb-tests.ts @@ -1,4 +1,4 @@ -import * as r from "rethinkdb"; +import r from "rethinkdb"; function errorAndCursorCallback(err: Error, cursor: r.Cursor): void {} function cursorCallback(cursor: r.Cursor): void {} diff --git a/types/right-align/tsconfig.json b/types/right-align/tsconfig.json index 0ff85fdd64ef60..bf552e80dce3d5 100644 --- a/types/right-align/tsconfig.json +++ b/types/right-align/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/riot-route/tsconfig.json b/types/riot-route/tsconfig.json index 67422fe2b60bf3..814a2c61923038 100644 --- a/types/riot-route/tsconfig.json +++ b/types/riot-route/tsconfig.json @@ -1,7 +1,6 @@ { "compilerOptions": { "module": "node16", - "esModuleInterop": true, "lib": [ "es6", "dom" diff --git a/types/rison/tsconfig.json b/types/rison/tsconfig.json index 530671225c1653..4dfe48e9972853 100644 --- a/types/rison/tsconfig.json +++ b/types/rison/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/rmc-drawer/index.d.ts b/types/rmc-drawer/index.d.ts index 1a2c0c59666fb5..b0dd6292a72918 100644 --- a/types/rmc-drawer/index.d.ts +++ b/types/rmc-drawer/index.d.ts @@ -1,4 +1,4 @@ -import * as moment from "moment"; +import moment = require("moment"); import * as React from "react"; interface DrawerProps { diff --git a/types/rmc-drawer/tsconfig.json b/types/rmc-drawer/tsconfig.json index f234f29a0929a8..585960cff83bcc 100644 --- a/types/rmc-drawer/tsconfig.json +++ b/types/rmc-drawer/tsconfig.json @@ -11,7 +11,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "jsx": "react" }, "files": [ diff --git a/types/rn-app-upgrade/tsconfig.json b/types/rn-app-upgrade/tsconfig.json index 6a1d523bed8390..376ceb62d64474 100644 --- a/types/rn-app-upgrade/tsconfig.json +++ b/types/rn-app-upgrade/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rollup-plugin-add-git-msg/tsconfig.json b/types/rollup-plugin-add-git-msg/tsconfig.json index 672a45bb538b87..3996aa888c25ff 100644 --- a/types/rollup-plugin-add-git-msg/tsconfig.json +++ b/types/rollup-plugin-add-git-msg/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/rollup-plugin-peer-deps-external/tsconfig.json b/types/rollup-plugin-peer-deps-external/tsconfig.json index 06c5ce9557c397..37d9f2ef6a6fd1 100644 --- a/types/rollup-plugin-peer-deps-external/tsconfig.json +++ b/types/rollup-plugin-peer-deps-external/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/ronilaukkarinen__gulp-stylelint/index.d.ts b/types/ronilaukkarinen__gulp-stylelint/index.d.ts index 75949a89415122..3ad700fe829f32 100644 --- a/types/ronilaukkarinen__gulp-stylelint/index.d.ts +++ b/types/ronilaukkarinen__gulp-stylelint/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stylelint from "stylelint"; +import stylelint = require("stylelint"); interface GulpStylelint { (options?: gulpStylelint.Options): NodeJS.ReadWriteStream; diff --git a/types/root-check/tsconfig.json b/types/root-check/tsconfig.json index aeb55833f92c24..e85205354ef655 100644 --- a/types/root-check/tsconfig.json +++ b/types/root-check/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/route-cache/index.d.ts b/types/route-cache/index.d.ts index 729f5791120d74..e541ef0109294f 100644 --- a/types/route-cache/index.d.ts +++ b/types/route-cache/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); export function config(options: ConfigOptions): RouteCache; export function cacheSeconds(secondsTTL: number, cacheKey?: string | CacheKeyFunc): express.RequestHandler; diff --git a/types/route-cache/lruStore.d.ts b/types/route-cache/lruStore.d.ts index 6a38c031e0c2e4..69e62429da4a40 100644 --- a/types/route-cache/lruStore.d.ts +++ b/types/route-cache/lruStore.d.ts @@ -1,4 +1,4 @@ -import * as LRUCache from "lru-cache"; +import LRUCache = require("lru-cache"); import { Store } from "./index"; export = LruStore; diff --git a/types/route-cache/route-cache-tests.ts b/types/route-cache/route-cache-tests.ts index 342feebc23ff71..6fb27641b64a2b 100644 --- a/types/route-cache/route-cache-tests.ts +++ b/types/route-cache/route-cache-tests.ts @@ -1,7 +1,7 @@ import routeCache = require("route-cache"); import IoRedisStore = require("route-cache/ioRedisStore"); import LruStore = require("route-cache/lruStore"); -import * as express from "express"; +import express from "express"; import Redis from "ioredis"; const redis = new Redis(); diff --git a/types/route-cache/tsconfig.json b/types/route-cache/tsconfig.json index b00ab0545cb613..45a387b1e04d98 100644 --- a/types/route-cache/tsconfig.json +++ b/types/route-cache/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/rrdiagram-js/rrdiagram-js-tests.ts b/types/rrdiagram-js/rrdiagram-js-tests.ts index 6adf21d71b7352..ea993c4a09a7ec 100644 --- a/types/rrdiagram-js/rrdiagram-js-tests.ts +++ b/types/rrdiagram-js/rrdiagram-js-tests.ts @@ -1,4 +1,4 @@ -import * as RRDiagram from "rrdiagram-js"; +import RRDiagram from "rrdiagram-js"; const bnfDisplay = new RRDiagram.bnfdisplay.BNFDisplay(); bnfDisplay.replaceBNF("oldClassName", "newClassName"); // $ExpectType void diff --git a/types/rsmq-worker/index.d.ts b/types/rsmq-worker/index.d.ts index 2186426c1819b3..c892cc03bf8aec 100644 --- a/types/rsmq-worker/index.d.ts +++ b/types/rsmq-worker/index.d.ts @@ -3,7 +3,7 @@ import redis = require("redis"); import events = require("events"); -import * as RedisSMQ from "rsmq"; +import RedisSMQ = require("rsmq"); declare namespace RSMQWorker { export interface Client extends events.EventEmitter { diff --git a/types/rsocket-tcp-server/RSocketTCPServer.d.ts b/types/rsocket-tcp-server/RSocketTCPServer.d.ts index fce7e6be7723c9..88dd80bbb79c6c 100644 --- a/types/rsocket-tcp-server/RSocketTCPServer.d.ts +++ b/types/rsocket-tcp-server/RSocketTCPServer.d.ts @@ -1,6 +1,6 @@ /// -import * as EventEmitter from "events"; +import EventEmitter = require("events"); import * as net from "net"; import { Encoders, TransportServer } from "rsocket-core"; import { Flowable } from "rsocket-flowable"; diff --git a/types/rsocket-websocket-server/RSocketWebSocketServer.d.ts b/types/rsocket-websocket-server/RSocketWebSocketServer.d.ts index 7181c9542f2606..40e69461bf6a57 100644 --- a/types/rsocket-websocket-server/RSocketWebSocketServer.d.ts +++ b/types/rsocket-websocket-server/RSocketWebSocketServer.d.ts @@ -1,7 +1,7 @@ import { Encoders, TransportServer } from "rsocket-core"; import { Flowable } from "rsocket-flowable"; import { DuplexConnection } from "rsocket-types"; -import * as ws from "ws"; +import ws = require("ws"); /** * A WebSocket transport server. diff --git a/types/rx-angular/tsconfig.json b/types/rx-angular/tsconfig.json index 46500fc20efd77..7c2cbe19e863e7 100644 --- a/types/rx-angular/tsconfig.json +++ b/types/rx-angular/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/s3-download-stream/s3-download-stream-tests.ts b/types/s3-download-stream/s3-download-stream-tests.ts index 1a58aa8f79ad6f..36d66ae7babecb 100644 --- a/types/s3-download-stream/s3-download-stream-tests.ts +++ b/types/s3-download-stream/s3-download-stream-tests.ts @@ -1,6 +1,6 @@ import * as AWS from "aws-sdk2-types"; import * as fs from "fs"; -import * as S3Stream from "s3-download-stream"; +import S3Stream from "s3-download-stream"; // Documentation for "params": // http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/S3.html#getObject-property diff --git a/types/s3-download-stream/tsconfig.json b/types/s3-download-stream/tsconfig.json index 70e66e616a7c20..fce37fbb23f83d 100644 --- a/types/s3-download-stream/tsconfig.json +++ b/types/s3-download-stream/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/s3-upload-stream/index.d.ts b/types/s3-upload-stream/index.d.ts index 9dd36d4fea791c..bf4411c75c300a 100644 --- a/types/s3-upload-stream/index.d.ts +++ b/types/s3-upload-stream/index.d.ts @@ -1,7 +1,7 @@ /// import * as AWS from "aws-sdk2-types"; -import * as stream from "stream"; +import stream = require("stream"); declare namespace s3Stream { interface S3StreamUploader { diff --git a/types/s3-zip/tsconfig.json b/types/s3-zip/tsconfig.json index f81f4430f36790..d6e26a20335bad 100644 --- a/types/s3-zip/tsconfig.json +++ b/types/s3-zip/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/sabpaisa-react-lite/tsconfig.json b/types/sabpaisa-react-lite/tsconfig.json index 98f52485cffa30..8d21c29e02c7a2 100644 --- a/types/sabpaisa-react-lite/tsconfig.json +++ b/types/sabpaisa-react-lite/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/sap__logging/sap__logging-tests.ts b/types/sap__logging/sap__logging-tests.ts index 5292cc1c6f23ef..d9ab9a238fd839 100644 --- a/types/sap__logging/sap__logging-tests.ts +++ b/types/sap__logging/sap__logging-tests.ts @@ -1,5 +1,5 @@ import * as logging from "@sap/logging"; -import * as express from "express"; +import express from "express"; import * as http from "http"; import { Socket } from "net"; diff --git a/types/sap__logging/tsconfig.json b/types/sap__logging/tsconfig.json index b336ca0291ca5a..f637f9cbc862dd 100644 --- a/types/sap__logging/tsconfig.json +++ b/types/sap__logging/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/sass-loader/interfaces.d.ts b/types/sass-loader/interfaces.d.ts index 35a7bbb9755f76..965464d2d13c5e 100644 --- a/types/sass-loader/interfaces.d.ts +++ b/types/sass-loader/interfaces.d.ts @@ -1,6 +1,6 @@ import * as NodeSass from "node-sass"; import * as Sass from "sass"; -import * as Webpack from "webpack"; +import Webpack = require("webpack"); export interface LoaderOptions { /** diff --git a/types/sass-loader/tsconfig.json b/types/sass-loader/tsconfig.json index 1375c8089aaeaa..27a36d029e4bbc 100644 --- a/types/sass-loader/tsconfig.json +++ b/types/sass-loader/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/save-csv/tsconfig.json b/types/save-csv/tsconfig.json index 658a853c973f6f..a4e403c27fbbe3 100644 --- a/types/save-csv/tsconfig.json +++ b/types/save-csv/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/save-pixels/index.d.ts b/types/save-pixels/index.d.ts index 9c74d8dc0c0947..5504e05cef55b3 100644 --- a/types/save-pixels/index.d.ts +++ b/types/save-pixels/index.d.ts @@ -1,7 +1,7 @@ /// import { NdArray } from "ndarray"; -import * as Stream from "stream"; +import Stream = require("stream"); // Function overloads. Most types return a Stream, except 'canvas'. Quality option only available for // JPEG format. See https://www.npmjs.com/package/save-pixels#requiresave-pixelsarray-type-options. diff --git a/types/sc-hot-reboot/tsconfig.json b/types/sc-hot-reboot/tsconfig.json index 7fcdebbcaae809..8f80743b3f0325 100644 --- a/types/sc-hot-reboot/tsconfig.json +++ b/types/sc-hot-reboot/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/schwifty/index.d.ts b/types/schwifty/index.d.ts index a8e8594bd77bd0..987f5dcae551a2 100644 --- a/types/schwifty/index.d.ts +++ b/types/schwifty/index.d.ts @@ -3,7 +3,7 @@ import { Plugin, Request, ResponseToolkit, Server } from "@hapi/hapi"; import * as Joi from "joi"; -import * as Knex from "knex"; +import Knex = require("knex"); import * as Objection from "objection"; export type ModelClass = typeof Model | typeof Objection.Model; diff --git a/types/screeps/tsconfig.json b/types/screeps/tsconfig.json index 88b47ceaa85acc..9deb22cf16732b 100644 --- a/types/screeps/tsconfig.json +++ b/types/screeps/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/scrollmagic/tsconfig.json b/types/scrollmagic/tsconfig.json index 92e5448f403f1e..63c101f269b1b4 100644 --- a/types/scrollmagic/tsconfig.json +++ b/types/scrollmagic/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "allowSyntheticDefaultImports": true, "types": [], "noEmit": true, diff --git a/types/secure-random-string/tsconfig.json b/types/secure-random-string/tsconfig.json index 070f2007d098f2..24698dd0bed696 100644 --- a/types/secure-random-string/tsconfig.json +++ b/types/secure-random-string/tsconfig.json @@ -10,7 +10,6 @@ "strictNullChecks": true, "strictFunctionTypes": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "types": [] }, "files": [ diff --git a/types/secure-random/secure-random-tests.ts b/types/secure-random/secure-random-tests.ts index 1c55a91e724c5a..be809e1d62f2a1 100644 --- a/types/secure-random/secure-random-tests.ts +++ b/types/secure-random/secure-random-tests.ts @@ -1,4 +1,4 @@ -import * as secureRandom from "secure-random"; +import secureRandom from "secure-random"; const byteCount = 10; diff --git a/types/secure-random/tsconfig.json b/types/secure-random/tsconfig.json index bb4d5085f25614..08c5150cd6f922 100644 --- a/types/secure-random/tsconfig.json +++ b/types/secure-random/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/seed-random/seed-random-tests.ts b/types/seed-random/seed-random-tests.ts index 127b888446a90b..a02a2ee74b9adc 100644 --- a/types/seed-random/seed-random-tests.ts +++ b/types/seed-random/seed-random-tests.ts @@ -1,7 +1,7 @@ /// -import * as assert from "assert"; -import * as seed from "seed-random"; +import assert from "assert"; +import seed from "seed-random"; const trueRandomA = seed(); const trueRandomB = seed(); diff --git a/types/seed-random/tsconfig.json b/types/seed-random/tsconfig.json index cf21a86b23328a..1273884ca397f6 100644 --- a/types/seed-random/tsconfig.json +++ b/types/seed-random/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/select/tsconfig.json b/types/select/tsconfig.json index e61485a6647eb3..3d98cd6bdb14bf 100644 --- a/types/select/tsconfig.json +++ b/types/select/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/selenium-webdriver/test/chrome.ts b/types/selenium-webdriver/test/chrome.ts index 7c3337f6bddb5e..52bc9815c2fc6c 100644 --- a/types/selenium-webdriver/test/chrome.ts +++ b/types/selenium-webdriver/test/chrome.ts @@ -1,5 +1,5 @@ import * as webdriver from "selenium-webdriver"; -import * as chrome from "selenium-webdriver/chrome"; +import chrome from "selenium-webdriver/chrome"; async function TestChromeDriver() { let driver: chrome.Driver = chrome.Driver.createSession(); diff --git a/types/selenium-webdriver/test/edge.ts b/types/selenium-webdriver/test/edge.ts index c193c475e35451..e0f582dc5c47ee 100644 --- a/types/selenium-webdriver/test/edge.ts +++ b/types/selenium-webdriver/test/edge.ts @@ -1,5 +1,5 @@ import * as webdriver from "selenium-webdriver"; -import * as edge from "selenium-webdriver/edge"; +import edge from "selenium-webdriver/edge"; function TestEdgeDriver() { let driver: edge.Driver = edge.Driver.createSession(); diff --git a/types/selenium-webdriver/test/firefox.ts b/types/selenium-webdriver/test/firefox.ts index 4150f77235bb37..9ce993759fa195 100644 --- a/types/selenium-webdriver/test/firefox.ts +++ b/types/selenium-webdriver/test/firefox.ts @@ -1,5 +1,5 @@ import * as webdriver from "selenium-webdriver"; -import * as firefox from "selenium-webdriver/firefox"; +import firefox from "selenium-webdriver/firefox"; import * as http from "selenium-webdriver/http"; import * as remote from "selenium-webdriver/remote"; diff --git a/types/selenium-webdriver/test/ie.ts b/types/selenium-webdriver/test/ie.ts index a5fba56da513b1..6349dd7c2f2fb4 100644 --- a/types/selenium-webdriver/test/ie.ts +++ b/types/selenium-webdriver/test/ie.ts @@ -1,5 +1,5 @@ import * as webdriver from "selenium-webdriver"; -import * as ie from "selenium-webdriver/ie"; +import ie from "selenium-webdriver/ie"; import * as remote from "selenium-webdriver/remote"; function TestIeDriver() { diff --git a/types/selenium-webdriver/test/index.ts b/types/selenium-webdriver/test/index.ts index 622cfcd2fa13ce..eae28e273b993a 100644 --- a/types/selenium-webdriver/test/index.ts +++ b/types/selenium-webdriver/test/index.ts @@ -1,15 +1,15 @@ import * as webdriver from "selenium-webdriver"; -import * as chrome from "selenium-webdriver/chrome"; +import chrome from "selenium-webdriver/chrome"; import { HttpResponse } from "selenium-webdriver/devtools/networkinterceptor"; -import * as edge from "selenium-webdriver/edge"; -import * as firefox from "selenium-webdriver/firefox"; +import edge from "selenium-webdriver/edge"; +import firefox from "selenium-webdriver/firefox"; import * as http from "selenium-webdriver/http"; -import * as ie from "selenium-webdriver/ie"; +import ie from "selenium-webdriver/ie"; import { PageLoadStrategy, Platform, UserPromptHandler } from "selenium-webdriver/lib/capabilities"; import { Command } from "selenium-webdriver/lib/command"; import Symbols from "selenium-webdriver/lib/symbols"; import { ShadowRoot, ShadowRootPromise } from "selenium-webdriver/lib/webdriver"; -import * as safari from "selenium-webdriver/safari"; +import safari from "selenium-webdriver/safari"; function TestBuilder() { let builder: webdriver.Builder = new webdriver.Builder(); diff --git a/types/selenium-webdriver/v2/test/chrome.ts b/types/selenium-webdriver/v2/test/chrome.ts index 733a93cb051200..bd3b9d66c7cab2 100644 --- a/types/selenium-webdriver/v2/test/chrome.ts +++ b/types/selenium-webdriver/v2/test/chrome.ts @@ -1,5 +1,5 @@ import * as webdriver from "selenium-webdriver"; -import * as chrome from "selenium-webdriver/chrome"; +import chrome from "selenium-webdriver/chrome"; import * as remote from "selenium-webdriver/remote"; function TestChromeDriver() { diff --git a/types/selenium-webdriver/v2/test/firefox.ts b/types/selenium-webdriver/v2/test/firefox.ts index 02ecc6babd8c0f..5a345bdd813112 100644 --- a/types/selenium-webdriver/v2/test/firefox.ts +++ b/types/selenium-webdriver/v2/test/firefox.ts @@ -1,5 +1,5 @@ import * as webdriver from "selenium-webdriver"; -import * as firefox from "selenium-webdriver/firefox"; +import firefox from "selenium-webdriver/firefox"; import * as remote from "selenium-webdriver/remote"; function TestBinary() { diff --git a/types/selenium-webdriver/v2/test/index.ts b/types/selenium-webdriver/v2/test/index.ts index 735ad64a377d47..78141dcd063b08 100644 --- a/types/selenium-webdriver/v2/test/index.ts +++ b/types/selenium-webdriver/v2/test/index.ts @@ -1,7 +1,7 @@ import * as webdriver from "selenium-webdriver"; -import * as chrome from "selenium-webdriver/chrome"; +import chrome from "selenium-webdriver/chrome"; import * as executors from "selenium-webdriver/executors"; -import * as firefox from "selenium-webdriver/firefox"; +import firefox from "selenium-webdriver/firefox"; import * as remote from "selenium-webdriver/remote"; import * as testing from "selenium-webdriver/testing"; diff --git a/types/selenium-webdriver/v3/test/chrome.ts b/types/selenium-webdriver/v3/test/chrome.ts index ec1f2743d40801..ad01e1f409dc4b 100644 --- a/types/selenium-webdriver/v3/test/chrome.ts +++ b/types/selenium-webdriver/v3/test/chrome.ts @@ -1,5 +1,5 @@ import * as webdriver from "selenium-webdriver"; -import * as chrome from "selenium-webdriver/chrome"; +import chrome from "selenium-webdriver/chrome"; import * as remote from "selenium-webdriver/remote"; function TestChromeDriver() { diff --git a/types/selenium-webdriver/v3/test/firefox.ts b/types/selenium-webdriver/v3/test/firefox.ts index cf6281e5db8130..52a5ae7e30faa0 100644 --- a/types/selenium-webdriver/v3/test/firefox.ts +++ b/types/selenium-webdriver/v3/test/firefox.ts @@ -1,5 +1,5 @@ import * as webdriver from "selenium-webdriver"; -import * as firefox from "selenium-webdriver/firefox"; +import firefox from "selenium-webdriver/firefox"; import * as http from "selenium-webdriver/http"; import * as remote from "selenium-webdriver/remote"; diff --git a/types/selenium-webdriver/v3/test/index.ts b/types/selenium-webdriver/v3/test/index.ts index 04ba2815cc898a..81efa4c89911a3 100644 --- a/types/selenium-webdriver/v3/test/index.ts +++ b/types/selenium-webdriver/v3/test/index.ts @@ -1,10 +1,10 @@ import * as webdriver from "selenium-webdriver"; -import * as chrome from "selenium-webdriver/chrome"; +import chrome from "selenium-webdriver/chrome"; import * as edge from "selenium-webdriver/edge"; -import * as firefox from "selenium-webdriver/firefox"; +import firefox from "selenium-webdriver/firefox"; import * as http from "selenium-webdriver/http"; import * as remote from "selenium-webdriver/remote"; -import * as safari from "selenium-webdriver/safari"; +import safari from "selenium-webdriver/safari"; import * as testing from "selenium-webdriver/testing"; function TestBuilder() { diff --git a/types/send/index.d.ts b/types/send/index.d.ts index 5d483dc8103ef2..c1f4014a9819e1 100644 --- a/types/send/index.d.ts +++ b/types/send/index.d.ts @@ -1,7 +1,7 @@ /// import * as fs from "fs"; -import * as stream from "stream"; +import stream = require("stream"); /** * Create a new SendStream for the given path to send to a res. diff --git a/types/send/v0/index.d.ts b/types/send/v0/index.d.ts index 6d624bb61b8cad..7259486cc65df0 100644 --- a/types/send/v0/index.d.ts +++ b/types/send/v0/index.d.ts @@ -2,7 +2,7 @@ import * as fs from "fs"; import * as m from "mime"; -import * as stream from "stream"; +import stream = require("stream"); /** * Create a new SendStream for the given path to send to a res. diff --git a/types/sequelize-fixtures/index.d.ts b/types/sequelize-fixtures/index.d.ts index b39b1bcdb81018..7f53bf76f98e24 100644 --- a/types/sequelize-fixtures/index.d.ts +++ b/types/sequelize-fixtures/index.d.ts @@ -1,4 +1,4 @@ -import * as Sequelize from "sequelize"; +import Sequelize = require("sequelize"); declare namespace SequelizeFixtures { interface Options { diff --git a/types/serve-favicon/serve-favicon-tests.ts b/types/serve-favicon/serve-favicon-tests.ts index ab166d39d8670e..619bad1bd508aa 100644 --- a/types/serve-favicon/serve-favicon-tests.ts +++ b/types/serve-favicon/serve-favicon-tests.ts @@ -1,5 +1,5 @@ -import * as express from "express"; -import * as favicon from "serve-favicon"; +import express from "express"; +import favicon from "serve-favicon"; const app = express(); diff --git a/types/serve-favicon/tsconfig.json b/types/serve-favicon/tsconfig.json index db64bae8f3f55f..51a21ac96bfb6d 100644 --- a/types/serve-favicon/tsconfig.json +++ b/types/serve-favicon/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/serve-static/index.d.ts b/types/serve-static/index.d.ts index 564909fdd9b07f..7ddb9b372d5ee0 100644 --- a/types/serve-static/index.d.ts +++ b/types/serve-static/index.d.ts @@ -1,7 +1,7 @@ /// import * as http from "http"; import { HttpError } from "http-errors"; -import * as send from "send"; +import send = require("send"); /** * Create a new middleware function to serve files from within a given root directory. diff --git a/types/serverless/tsconfig.json b/types/serverless/tsconfig.json index c225a8c05d8946..8666dd5f69ba75 100644 --- a/types/serverless/tsconfig.json +++ b/types/serverless/tsconfig.json @@ -1,7 +1,6 @@ { "compilerOptions": { "allowSyntheticDefaultImports": true, - "esModuleInterop": true, "module": "node16", "lib": [ "es6" diff --git a/types/servicenow/tsconfig.json b/types/servicenow/tsconfig.json index 8dfe19f67d35b8..bcb29cd1d5cf33 100644 --- a/types/servicenow/tsconfig.json +++ b/types/servicenow/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/serviceworker-webpack-plugin/serviceworker-webpack-plugin-tests.ts b/types/serviceworker-webpack-plugin/serviceworker-webpack-plugin-tests.ts index 17bedcfaf470a7..17a413ed7d53e1 100644 --- a/types/serviceworker-webpack-plugin/serviceworker-webpack-plugin-tests.ts +++ b/types/serviceworker-webpack-plugin/serviceworker-webpack-plugin-tests.ts @@ -1,4 +1,4 @@ -import * as ServiceWorkerWebpackPlugin from "serviceworker-webpack-plugin"; +import ServiceWorkerWebpackPlugin from "serviceworker-webpack-plugin"; import runtime from "serviceworker-webpack-plugin/lib/runtime"; new ServiceWorkerWebpackPlugin({ diff --git a/types/serviceworker-webpack-plugin/tsconfig.json b/types/serviceworker-webpack-plugin/tsconfig.json index 10035503893cac..800bade5ae5c20 100644 --- a/types/serviceworker-webpack-plugin/tsconfig.json +++ b/types/serviceworker-webpack-plugin/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "dom", "es6" diff --git a/types/session-file-store/index.d.ts b/types/session-file-store/index.d.ts index ad5a736a117730..d96021bfd4e079 100644 --- a/types/session-file-store/index.d.ts +++ b/types/session-file-store/index.d.ts @@ -1,5 +1,5 @@ -import * as express from "express"; -import * as session from "express-session"; +import express = require("express"); +import session = require("express-session"); export = f; diff --git a/types/shallowequal/v0/shallowequal-tests.ts b/types/shallowequal/v0/shallowequal-tests.ts index 738dc8002d294b..34eb838e81b4d1 100644 --- a/types/shallowequal/v0/shallowequal-tests.ts +++ b/types/shallowequal/v0/shallowequal-tests.ts @@ -1,5 +1,5 @@ import shallowEqual_require = require("shallowequal"); -import * as shallowEqual_splat from "shallowequal"; +import shallowEqual_splat from "shallowequal"; const a = {}; const b = {}; diff --git a/types/shallowequal/v0/tsconfig.json b/types/shallowequal/v0/tsconfig.json index d0a28f83b17462..2d4324b50bc452 100644 --- a/types/shallowequal/v0/tsconfig.json +++ b/types/shallowequal/v0/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/sharedb/sharedb-tests.ts b/types/sharedb/sharedb-tests.ts index eb996e66c93b51..a741d9e9bf6e25 100644 --- a/types/sharedb/sharedb-tests.ts +++ b/types/sharedb/sharedb-tests.ts @@ -1,8 +1,8 @@ import * as http from "http"; -import * as ShareDB from "sharedb"; +import ShareDB from "sharedb"; import * as ShareDBClient from "sharedb/lib/client"; import { Duplex } from "stream"; -import * as WebSocket from "ws"; +import WebSocket from "ws"; import Agent = require("sharedb/lib/agent"); import * as ClientESM from "sharedb/lib/client/index.js"; diff --git a/types/sharedb/tsconfig.json b/types/sharedb/tsconfig.json index c8efd9938902bc..f320065ae57a1b 100644 --- a/types/sharedb/tsconfig.json +++ b/types/sharedb/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/sharepoint/sharepoint-tests.ts b/types/sharepoint/sharepoint-tests.ts index 9f6ab8f5eba472..9739c6c60e5a98 100644 --- a/types/sharepoint/sharepoint-tests.ts +++ b/types/sharepoint/sharepoint-tests.ts @@ -2,7 +2,7 @@ /// import * as angular from "angular"; -import * as ng from "angular"; +import ng from "angular"; // code from http://sptypescript.codeplex.com/ // BasicTasksJSOM.ts // Website tasks diff --git a/types/should-sinon/index.d.ts b/types/should-sinon/index.d.ts index 5dbb9f78a05b34..2ca9683389c474 100644 --- a/types/should-sinon/index.d.ts +++ b/types/should-sinon/index.d.ts @@ -1,4 +1,4 @@ -import * as s from "should"; +import s = require("should"); declare module "should" { interface Assertion { diff --git a/types/signale/tsconfig.json b/types/signale/tsconfig.json index 1acb992fec242f..1490794dc4a42d 100644 --- a/types/signale/tsconfig.json +++ b/types/signale/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/signalfx-collect/index.d.ts b/types/signalfx-collect/index.d.ts index a0301a70599058..44f8077661016a 100644 --- a/types/signalfx-collect/index.d.ts +++ b/types/signalfx-collect/index.d.ts @@ -11,8 +11,8 @@ =============================================== */ -import * as express from "express"; -import * as koa from "koa"; +import express = require("express"); +import koa = require("koa"); import { SignalClient } from "signalfx"; declare class SignalFxCollect { diff --git a/types/signalfx-collect/signalfx-collect-tests.ts b/types/signalfx-collect/signalfx-collect-tests.ts index fa51e8d097384c..acdc63a7043bcd 100644 --- a/types/signalfx-collect/signalfx-collect-tests.ts +++ b/types/signalfx-collect/signalfx-collect-tests.ts @@ -1,7 +1,7 @@ -import * as express from "express"; +import express from "express"; const app = express(); -import * as SignalFxCollect from "signalfx-collect"; +import SignalFxCollect from "signalfx-collect"; const config1: SignalFxCollect.Config = { accessToken: "MY_ACCESS_TOKEN", diff --git a/types/signalfx-collect/tsconfig.json b/types/signalfx-collect/tsconfig.json index 5593fb388e1325..26723b3ba7874a 100644 --- a/types/signalfx-collect/tsconfig.json +++ b/types/signalfx-collect/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/signalr/tsconfig.json b/types/signalr/tsconfig.json index c74b9697affe81..e21b43038a0683 100644 --- a/types/signalr/tsconfig.json +++ b/types/signalr/tsconfig.json @@ -15,6 +15,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true } } diff --git a/types/signalr/v1/tsconfig.json b/types/signalr/v1/tsconfig.json index 8e6a18191824af..70237d1a083388 100644 --- a/types/signalr/v1/tsconfig.json +++ b/types/signalr/v1/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/similarity/similarity-tests.ts b/types/similarity/similarity-tests.ts index f3b3515ebf7975..9697764e174f80 100644 --- a/types/similarity/similarity-tests.ts +++ b/types/similarity/similarity-tests.ts @@ -1,4 +1,4 @@ -import * as similarity from "similarity"; +import similarity from "similarity"; // @ts-expect-error similarity(); diff --git a/types/similarity/tsconfig.json b/types/similarity/tsconfig.json index 2014c0ec27ca7f..6951c2d413895b 100644 --- a/types/similarity/tsconfig.json +++ b/types/similarity/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "ES2015" ], diff --git a/types/simple-peer/index.d.ts b/types/simple-peer/index.d.ts index e1c68b4b1c98b8..c340aa1b606130 100644 --- a/types/simple-peer/index.d.ts +++ b/types/simple-peer/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); declare const SimplePeer: SimplePeer.SimplePeer; diff --git a/types/simple-react-lightbox/simple-react-lightbox-tests.tsx b/types/simple-react-lightbox/simple-react-lightbox-tests.tsx index 27c141eaea1813..35f19f2d2ff49c 100644 --- a/types/simple-react-lightbox/simple-react-lightbox-tests.tsx +++ b/types/simple-react-lightbox/simple-react-lightbox-tests.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import SimpleReactLightbox, { Elements, SRLWrapper, SRLWrapperOptions, useLightbox } from "simple-react-lightbox"; const elements: Elements = [ diff --git a/types/simple-websocket/tsconfig.json b/types/simple-websocket/tsconfig.json index b0cb3062d4d357..eb759693a5ad64 100644 --- a/types/simple-websocket/tsconfig.json +++ b/types/simple-websocket/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/simplecrawler/tsconfig.json b/types/simplecrawler/tsconfig.json index 8044c3722ea0e7..847c07653387a0 100644 --- a/types/simplecrawler/tsconfig.json +++ b/types/simplecrawler/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/simplemde/tsconfig.json b/types/simplemde/tsconfig.json index b839bcf1b463f7..7d80df35eaf2f6 100644 --- a/types/simplemde/tsconfig.json +++ b/types/simplemde/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/simulant/simulant-tests.ts b/types/simulant/simulant-tests.ts index f72c3087103ba4..89a7fb5dc52360 100644 --- a/types/simulant/simulant-tests.ts +++ b/types/simulant/simulant-tests.ts @@ -1,4 +1,4 @@ -import * as simulant from "simulant"; +import simulant from "simulant"; simulant(window, "click"); // $ExpectType Event simulant(window, "click", { foo: "bar" }); // $ExpectType Event diff --git a/types/simulant/tsconfig.json b/types/simulant/tsconfig.json index 6d760e7d2cec46..c7926b2acd6fe7 100644 --- a/types/simulant/tsconfig.json +++ b/types/simulant/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/sinon-as-promised/tsconfig.json b/types/sinon-as-promised/tsconfig.json index a2ad0ae7acc47b..97e9d4fe4f87f8 100644 --- a/types/sinon-as-promised/tsconfig.json +++ b/types/sinon-as-promised/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/sinon-mongoose/tsconfig.json b/types/sinon-mongoose/tsconfig.json index 6e4f3e28ee0ce2..b6c59669142e54 100644 --- a/types/sinon-mongoose/tsconfig.json +++ b/types/sinon-mongoose/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/sizzle/tsconfig.json b/types/sizzle/tsconfig.json index 658bf5dba7ae76..5b9f8be324ed88 100644 --- a/types/sizzle/tsconfig.json +++ b/types/sizzle/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/slack-mock/index.d.ts b/types/slack-mock/index.d.ts index fdb90c1be85e04..a8d105b2a3e181 100644 --- a/types/slack-mock/index.d.ts +++ b/types/slack-mock/index.d.ts @@ -1,7 +1,7 @@ import { IncomingHttpHeaders } from "http"; -import * as nock from "nock"; +import nock = require("nock"); import { Url } from "url"; -import * as WebSocket from "ws"; +import WebSocket = require("ws"); export = SlackMock; diff --git a/types/slack-node/index.d.ts b/types/slack-node/index.d.ts index 839347f8042bbc..c1445a7c4b9a32 100644 --- a/types/slack-node/index.d.ts +++ b/types/slack-node/index.d.ts @@ -1,4 +1,4 @@ -import * as request from "request"; +import request = require("request"); declare class Slack { token: string; diff --git a/types/smooth-scroll/tsconfig.json b/types/smooth-scroll/tsconfig.json index 099e3e090e78c5..a970300d6ced9d 100644 --- a/types/smooth-scroll/tsconfig.json +++ b/types/smooth-scroll/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/smpte-timecode/smpte-timecode-tests.ts b/types/smpte-timecode/smpte-timecode-tests.ts index 9ebd7753edffb5..91b74c7a37661a 100644 --- a/types/smpte-timecode/smpte-timecode-tests.ts +++ b/types/smpte-timecode/smpte-timecode-tests.ts @@ -1,4 +1,4 @@ -import * as Timecode from "smpte-timecode"; +import Timecode from "smpte-timecode"; let t: Timecode.TimecodeInstance; let t2: Timecode.TimecodeInstance; diff --git a/types/smpte-timecode/tsconfig.json b/types/smpte-timecode/tsconfig.json index d0a19d49de340c..10b89d1c5da75f 100644 --- a/types/smpte-timecode/tsconfig.json +++ b/types/smpte-timecode/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/snapchat-lens-studio/tsconfig.json b/types/snapchat-lens-studio/tsconfig.json index 72814c55b6a517..4b4cac6a494e2e 100644 --- a/types/snapchat-lens-studio/tsconfig.json +++ b/types/snapchat-lens-studio/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/snapsvg/tsconfig.json b/types/snapsvg/tsconfig.json index f44e8e5bd0ba2b..23bb0d028d091d 100644 --- a/types/snapsvg/tsconfig.json +++ b/types/snapsvg/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/snuownd/tsconfig.json b/types/snuownd/tsconfig.json index 4ba4ac9a673d45..c24bfde6263376 100644 --- a/types/snuownd/tsconfig.json +++ b/types/snuownd/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/socketcluster/socketcluster-tests.ts b/types/socketcluster/socketcluster-tests.ts index f23ebee22d19c4..980b4208df9510 100644 --- a/types/socketcluster/socketcluster-tests.ts +++ b/types/socketcluster/socketcluster-tests.ts @@ -3,7 +3,7 @@ import SocketCluster = require("socketcluster"); import { ChildProcess } from "child_process"; import { SCServer } from "socketcluster-server"; import path = require("path"); -import * as minimist from "minimist"; +import minimist from "minimist"; import * as scHotReboot from "sc-hot-reboot"; //////////////////////////////////////////////////// diff --git a/types/socketcluster/tsconfig.json b/types/socketcluster/tsconfig.json index a8e9822ec2e4ee..057dad2621ff8a 100644 --- a/types/socketcluster/tsconfig.json +++ b/types/socketcluster/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/sortablejs/plugins.d.ts b/types/sortablejs/plugins.d.ts index b8920ca403b1c5..af3ecc14832259 100644 --- a/types/sortablejs/plugins.d.ts +++ b/types/sortablejs/plugins.d.ts @@ -1,4 +1,4 @@ -import * as Sortable from "./index"; +import Sortable = require("./index"); import { SortableEvent } from "./index"; declare class SortablePlugin {} diff --git a/types/soundjs/tsconfig.json b/types/soundjs/tsconfig.json index 4d31bb795ba6f9..465657e1816027 100644 --- a/types/soundjs/tsconfig.json +++ b/types/soundjs/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/sparkpost/index.d.ts b/types/sparkpost/index.d.ts index 40a6fe2661dec5..e3708c99cfdce8 100644 --- a/types/sparkpost/index.d.ts +++ b/types/sparkpost/index.d.ts @@ -1,7 +1,7 @@ /// import * as Http from "http"; -import * as Request from "request"; +import Request = require("request"); declare class SparkPost { /** Specifying an inbound domain enables you to customize the address to which inbound messages are sent. */ diff --git a/types/sparkpost/v1/index.d.ts b/types/sparkpost/v1/index.d.ts index 4ed3aa4a6efa1c..0898a51b757499 100644 --- a/types/sparkpost/v1/index.d.ts +++ b/types/sparkpost/v1/index.d.ts @@ -1,7 +1,7 @@ /// import * as Http from "http"; -import * as Request from "request"; +import Request = require("request"); declare class SparkPost { /** Specifying an inbound domain enables you to customize the address to which inbound messages are sent. */ diff --git a/types/spectrogram/spectrogram-tests.ts b/types/spectrogram/spectrogram-tests.ts index 631c0f8c5db873..e614d3f4b47f5f 100644 --- a/types/spectrogram/spectrogram-tests.ts +++ b/types/spectrogram/spectrogram-tests.ts @@ -1,4 +1,4 @@ -import * as Spectrogram from "spectrogram"; +import Spectrogram from "spectrogram"; // XHR const canvas1 = document.createElement("canvas"); diff --git a/types/spectrogram/tsconfig.json b/types/spectrogram/tsconfig.json index 79ca26ecaedef9..446e0dd88cf4b6 100644 --- a/types/spectrogram/tsconfig.json +++ b/types/spectrogram/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/speedometer/speedometer-tests.ts b/types/speedometer/speedometer-tests.ts index 5c916d48b0e735..8cfd80c093f633 100644 --- a/types/speedometer/speedometer-tests.ts +++ b/types/speedometer/speedometer-tests.ts @@ -1,4 +1,4 @@ -import * as speedometer from "speedometer"; +import speedometer from "speedometer"; const _speedometer: speedometer.Speedometer = speedometer(10); _speedometer(25); diff --git a/types/speedometer/tsconfig.json b/types/speedometer/tsconfig.json index 2b124291f5e366..b87c457c3ddd99 100644 --- a/types/speedometer/tsconfig.json +++ b/types/speedometer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/split-file/index.d.ts b/types/split-file/index.d.ts index 03af34e023dd62..7f99b60949f092 100644 --- a/types/split-file/index.d.ts +++ b/types/split-file/index.d.ts @@ -1,6 +1,6 @@ /// -import * as BluebirdPromise from "bluebird"; +import BluebirdPromise = require("bluebird"); /** * Split file into number of parts diff --git a/types/split-file/split-file-tests.ts b/types/split-file/split-file-tests.ts index 4ef72b28b90f3f..3c76903d59f180 100644 --- a/types/split-file/split-file-tests.ts +++ b/types/split-file/split-file-tests.ts @@ -1,4 +1,4 @@ -import * as splitFile from "split-file"; +import splitFile from "split-file"; // Example code from official documentation // https://github.com/tomvlk/node-split-file#readme diff --git a/types/sqlstring/sqlstring-tests.ts b/types/sqlstring/sqlstring-tests.ts index ae024dc2850bd1..898f38659d5bb7 100644 --- a/types/sqlstring/sqlstring-tests.ts +++ b/types/sqlstring/sqlstring-tests.ts @@ -1,5 +1,5 @@ import * as assert from "assert"; -import * as SqlString from "sqlstring"; +import SqlString from "sqlstring"; // Code samples taken from: // https://github.com/mysqljs/sqlstring/blob/master/README.md diff --git a/types/srp/index.d.ts b/types/srp/index.d.ts index 77b231ac220ac8..40262516dee302 100644 --- a/types/srp/index.d.ts +++ b/types/srp/index.d.ts @@ -1,7 +1,7 @@ /// /// -import * as BigNum from "bignum"; +import BigNum = require("bignum"); export = SRP; diff --git a/types/sse/sse-tests.ts b/types/sse/sse-tests.ts index 774c3dc854ba87..3d9acf32750b8e 100644 --- a/types/sse/sse-tests.ts +++ b/types/sse/sse-tests.ts @@ -1,5 +1,5 @@ import SSE = require("sse"); -import * as express from "express"; +import express from "express"; import { createServer } from "http"; const expressApp = express(); diff --git a/types/sse/tsconfig.json b/types/sse/tsconfig.json index 1de2c57be58c4b..4c8cf45bd33fe8 100644 --- a/types/sse/tsconfig.json +++ b/types/sse/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/ssh2-streams/index.d.ts b/types/ssh2-streams/index.d.ts index 25724cffb83f62..474718f9b14cd1 100644 --- a/types/ssh2-streams/index.d.ts +++ b/types/ssh2-streams/index.d.ts @@ -1,6 +1,6 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export class SSH2Stream extends stream.Transform { /** diff --git a/types/ssi-modal/tsconfig.json b/types/ssi-modal/tsconfig.json index 440db51a52a628..ccd954fe102d00 100644 --- a/types/ssi-modal/tsconfig.json +++ b/types/ssi-modal/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/standard-version/tsconfig.json b/types/standard-version/tsconfig.json index 525b7a2a5a0ffb..70b6c92bd40a48 100644 --- a/types/standard-version/tsconfig.json +++ b/types/standard-version/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/statsd-client/index.d.ts b/types/statsd-client/index.d.ts index 7a10cd2636a2f8..45f7570f3139d4 100644 --- a/types/statsd-client/index.d.ts +++ b/types/statsd-client/index.d.ts @@ -1,4 +1,4 @@ -import * as express from "express"; +import express = require("express"); declare namespace StatsdClient { interface Tags { diff --git a/types/steam-login/steam-login-tests.ts b/types/steam-login/steam-login-tests.ts index 1c43ee72e9016a..0b677c8ed1dbfe 100644 --- a/types/steam-login/steam-login-tests.ts +++ b/types/steam-login/steam-login-tests.ts @@ -1,7 +1,7 @@ // Port of https://github.com/cpancake/steam-login/blob/master/example.js -import * as express from "express"; -import * as session from "express-session"; +import express from "express"; +import session from "express-session"; import * as steam from "steam-login"; const app = express(); diff --git a/types/steam-login/tsconfig.json b/types/steam-login/tsconfig.json index bc2927c2b266fb..26b00c5e672196 100644 --- a/types/steam-login/tsconfig.json +++ b/types/steam-login/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/store/store-tests.ts b/types/store/store-tests.ts index 4251bd34b23c4e..c71fdd93a63039 100644 --- a/types/store/store-tests.ts +++ b/types/store/store-tests.ts @@ -1,14 +1,14 @@ -import * as store from "store"; -import * as allPlugin from "store/plugins/all"; -import * as defaultsPlugin from "store/plugins/defaults"; -import * as dumpPlugin from "store/plugins/dump"; -import * as eventsPlugin from "store/plugins/events"; -import * as expirePlugin from "store/plugins/expire"; -import * as observePlugin from "store/plugins/observe"; -import * as operationsPlugin from "store/plugins/operations"; -import * as updatePlugin from "store/plugins/update"; -import * as v1BackcompatPlugin from "store/plugins/v1-backcompat"; -import * as engine from "store/src/store-engine"; +import store from "store"; +import allPlugin from "store/plugins/all"; +import defaultsPlugin from "store/plugins/defaults"; +import dumpPlugin from "store/plugins/dump"; +import eventsPlugin from "store/plugins/events"; +import expirePlugin from "store/plugins/expire"; +import observePlugin from "store/plugins/observe"; +import operationsPlugin from "store/plugins/operations"; +import updatePlugin from "store/plugins/update"; +import v1BackcompatPlugin from "store/plugins/v1-backcompat"; +import engine from "store/src/store-engine"; // https://github.com/marcuswestin/store.js/blob/master/README-More.md#storeenabled-flag console.log("storage is supported: ", store.enabled === true); diff --git a/types/store/tsconfig.json b/types/store/tsconfig.json index 98375cce54b38e..7740c13b9efc73 100644 --- a/types/store/tsconfig.json +++ b/types/store/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/storybook-addon-jsx/tsconfig.json b/types/storybook-addon-jsx/tsconfig.json index 448055b28ba703..1e3024ea18d83b 100644 --- a/types/storybook-addon-jsx/tsconfig.json +++ b/types/storybook-addon-jsx/tsconfig.json @@ -12,8 +12,7 @@ "jsx": "react", "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/storybook-react-router/tsconfig.json b/types/storybook-react-router/tsconfig.json index dd45478a1271fb..1b3adc55f0e8a1 100644 --- a/types/storybook-react-router/tsconfig.json +++ b/types/storybook-react-router/tsconfig.json @@ -12,8 +12,7 @@ "jsx": "react", "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/storybook-readme/tsconfig.json b/types/storybook-readme/tsconfig.json index 3b2a38b663449e..18c7f9d6514c4d 100644 --- a/types/storybook-readme/tsconfig.json +++ b/types/storybook-readme/tsconfig.json @@ -12,8 +12,7 @@ "jsx": "react", "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/storybook__addon-info/tsconfig.json b/types/storybook__addon-info/tsconfig.json index d027376d0f3cd7..9956a73c8bb4b8 100644 --- a/types/storybook__addon-info/tsconfig.json +++ b/types/storybook__addon-info/tsconfig.json @@ -12,8 +12,7 @@ "jsx": "react", "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/strange/strange-tests.ts b/types/strange/strange-tests.ts index cb477d2113d479..b804d422296d8b 100644 --- a/types/strange/strange-tests.ts +++ b/types/strange/strange-tests.ts @@ -1,5 +1,5 @@ -import * as Range from "strange"; -import * as RangeTree from "strange/tree"; +import Range from "strange"; +import RangeTree from "strange/tree"; { new Range(); diff --git a/types/strange/tsconfig.json b/types/strange/tsconfig.json index 4615c01a7b0c57..c853523544226d 100644 --- a/types/strange/tsconfig.json +++ b/types/strange/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/stream-buffers/index.d.ts b/types/stream-buffers/index.d.ts index b73c073499d131..e5c10088a87def 100644 --- a/types/stream-buffers/index.d.ts +++ b/types/stream-buffers/index.d.ts @@ -1,5 +1,5 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export interface WritableStreamBufferOptions extends stream.WritableOptions { initialSize?: number | undefined; diff --git a/types/stream-chain/tsconfig.json b/types/stream-chain/tsconfig.json index 513c6e9598dd44..c5232a6c4ce4d3 100644 --- a/types/stream-chain/tsconfig.json +++ b/types/stream-chain/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/stream-csv-as-json/AsObjects.d.ts b/types/stream-csv-as-json/AsObjects.d.ts index f0476cc210a683..b2f8c204538583 100644 --- a/types/stream-csv-as-json/AsObjects.d.ts +++ b/types/stream-csv-as-json/AsObjects.d.ts @@ -1,7 +1,7 @@ /// import { Transform, TransformOptions } from "stream"; -import * as Chain from "stream-chain"; +import Chain = require("stream-chain"); export = AsObjects; diff --git a/types/stream-csv-as-json/index.d.ts b/types/stream-csv-as-json/index.d.ts index 0a4ae1e042a74a..54554d99c67e2e 100644 --- a/types/stream-csv-as-json/index.d.ts +++ b/types/stream-csv-as-json/index.d.ts @@ -1,6 +1,4 @@ -import * as AsObjects from "./AsObjects"; -import * as Parser from "./Parser"; -import * as Stringer from "./Stringer"; +import Parser = require("./Parser"); export = make; diff --git a/types/stream-csv-as-json/stream-csv-as-json-tests.ts b/types/stream-csv-as-json/stream-csv-as-json-tests.ts index 66a95682bf20be..9106b89f6c0a72 100644 --- a/types/stream-csv-as-json/stream-csv-as-json-tests.ts +++ b/types/stream-csv-as-json/stream-csv-as-json-tests.ts @@ -1,7 +1,7 @@ -import * as make from "stream-csv-as-json"; -import * as AsObjects from "stream-csv-as-json/AsObjects"; -import * as Parser from "stream-csv-as-json/Parser"; -import * as Stringer from "stream-csv-as-json/Stringer"; +import make from "stream-csv-as-json"; +import AsObjects from "stream-csv-as-json/AsObjects"; +import Parser from "stream-csv-as-json/Parser"; +import Stringer from "stream-csv-as-json/Stringer"; const used = (array: any[]) => array.forEach(value => console.log(!!value)); diff --git a/types/stream-csv-as-json/tsconfig.json b/types/stream-csv-as-json/tsconfig.json index 20ad757c5bd296..c3dddf2cc9ef4b 100644 --- a/types/stream-csv-as-json/tsconfig.json +++ b/types/stream-csv-as-json/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "strictFunctionTypes": true + "strictFunctionTypes": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/stream-json/stream-json-tests.ts b/types/stream-json/stream-json-tests.ts index caf9ae82020490..ff2365677d5e39 100644 --- a/types/stream-json/stream-json-tests.ts +++ b/types/stream-json/stream-json-tests.ts @@ -1,31 +1,31 @@ import { Transform, TransformOptions } from "stream"; -import * as make from "stream-json"; +import make from "stream-json"; -import * as Assembler from "stream-json/Assembler"; -import * as Disassembler from "stream-json/Disassembler"; -import * as Emitter from "stream-json/Emitter"; -import * as Parser from "stream-json/Parser"; -import * as Stringer from "stream-json/Stringer"; +import Assembler from "stream-json/Assembler"; +import Disassembler from "stream-json/Disassembler"; +import Emitter from "stream-json/Emitter"; +import Parser from "stream-json/Parser"; +import Stringer from "stream-json/Stringer"; -import * as JsonlParser from "stream-json/jsonl/Parser"; -import * as JsonlStringer from "stream-json/jsonl/Stringer"; +import JsonlParser from "stream-json/jsonl/Parser"; +import JsonlStringer from "stream-json/jsonl/Stringer"; -import * as Filter from "stream-json/filters/Filter"; +import Filter from "stream-json/filters/Filter"; import * as FilterBase from "stream-json/filters/FilterBase"; -import * as Ignore from "stream-json/filters/Ignore"; -import * as Pick from "stream-json/filters/Pick"; -import * as Replace from "stream-json/filters/Replace"; - -import * as StreamArray from "stream-json/streamers/StreamArray"; -import * as StreamObject from "stream-json/streamers/StreamObject"; -import * as StreamValues from "stream-json/streamers/StreamValues"; - -import * as Batch from "stream-json/utils/Batch"; -import * as emit from "stream-json/utils/emit"; -import * as Utf8Stream from "stream-json/utils/Utf8Stream"; -import * as Verifier from "stream-json/utils/Verifier"; -import * as withParser from "stream-json/utils/withParser"; +import Ignore from "stream-json/filters/Ignore"; +import Pick from "stream-json/filters/Pick"; +import Replace from "stream-json/filters/Replace"; + +import StreamArray from "stream-json/streamers/StreamArray"; +import StreamObject from "stream-json/streamers/StreamObject"; +import StreamValues from "stream-json/streamers/StreamValues"; + +import Batch from "stream-json/utils/Batch"; +import emit from "stream-json/utils/emit"; +import Utf8Stream from "stream-json/utils/Utf8Stream"; +import Verifier from "stream-json/utils/Verifier"; +import withParser from "stream-json/utils/withParser"; const used = (array: any[]) => array.forEach(value => console.log(!!value)); diff --git a/types/stream-json/tsconfig.json b/types/stream-json/tsconfig.json index de8e3384ebad60..1519ff6cc3ad41 100644 --- a/types/stream-json/tsconfig.json +++ b/types/stream-json/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/stream-to-promise/index.d.ts b/types/stream-to-promise/index.d.ts index 056dc717cf0ea1..50a13075accdd8 100644 --- a/types/stream-to-promise/index.d.ts +++ b/types/stream-to-promise/index.d.ts @@ -1,5 +1,5 @@ /// -import * as Stream from "stream"; +import Stream = require("stream"); /** * Return a promise which resolves when the input stream ends diff --git a/types/streamify-array/tsconfig.json b/types/streamify-array/tsconfig.json index 8563aab3df5b33..29420684ec57c2 100644 --- a/types/streamify-array/tsconfig.json +++ b/types/streamify-array/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/streaming-json-stringify/index.d.ts b/types/streaming-json-stringify/index.d.ts index 17d33120a52ff1..eff9f703efcd7d 100644 --- a/types/streaming-json-stringify/index.d.ts +++ b/types/streaming-json-stringify/index.d.ts @@ -1,5 +1,5 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export = Stringify; diff --git a/types/streamsaver/tsconfig.json b/types/streamsaver/tsconfig.json index 180241113b5aae..f50dfdd87dd7d2 100644 --- a/types/streamsaver/tsconfig.json +++ b/types/streamsaver/tsconfig.json @@ -7,7 +7,6 @@ ], "noImplicitAny": true, "strictNullChecks": true, - "esModuleInterop": true, "noImplicitThis": true, "strictFunctionTypes": true, "types": [], diff --git a/types/string-natural-compare/tsconfig.json b/types/string-natural-compare/tsconfig.json index ffb29542ec1551..3f3c405d586683 100644 --- a/types/string-natural-compare/tsconfig.json +++ b/types/string-natural-compare/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/string-placeholder/tsconfig.json b/types/string-placeholder/tsconfig.json index 4362820b88c9f9..fac0e8d4402f0a 100644 --- a/types/string-placeholder/tsconfig.json +++ b/types/string-placeholder/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/string-replace-loader/index.d.ts b/types/string-replace-loader/index.d.ts index 0f112bc7eab603..9116f5e3f23d05 100644 --- a/types/string-replace-loader/index.d.ts +++ b/types/string-replace-loader/index.d.ts @@ -1,4 +1,4 @@ -import * as Webpack from "webpack"; +import Webpack = require("webpack"); declare const loader: Webpack.loader.Loader; diff --git a/types/string-similarity/tsconfig.json b/types/string-similarity/tsconfig.json index 978927115f4f87..a77eda551e9baa 100644 --- a/types/string-similarity/tsconfig.json +++ b/types/string-similarity/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/styled-components-react-native/styled-components-react-native-tests.tsx b/types/styled-components-react-native/styled-components-react-native-tests.tsx index 7493c216dd455d..f17668c96ee65a 100644 --- a/types/styled-components-react-native/styled-components-react-native-tests.tsx +++ b/types/styled-components-react-native/styled-components-react-native-tests.tsx @@ -1,6 +1,6 @@ import * as React from "react"; import * as ReactDOMServer from "react-dom/server"; -import * as ReactNative from "react-native"; +import ReactNative from "react-native"; import styled, { css, diff --git a/types/styled-components/index.d.ts b/types/styled-components/index.d.ts index c169f69ff082ec..7197265c624d68 100644 --- a/types/styled-components/index.d.ts +++ b/types/styled-components/index.d.ts @@ -9,7 +9,7 @@ declare global { } import * as CSS from "csstype"; -import * as hoistNonReactStatics from "hoist-non-react-statics"; +import hoistNonReactStatics = require("hoist-non-react-statics"); import * as React from "react"; export type CSSProperties = CSS.Properties; diff --git a/types/styled-components/test/index.tsx b/types/styled-components/test/index.tsx index bb630427b25b03..b121462cabfbef 100644 --- a/types/styled-components/test/index.tsx +++ b/types/styled-components/test/index.tsx @@ -1,4 +1,4 @@ -import * as React from "react"; +import React from "react"; import * as ReactDOMServer from "react-dom/server"; import styled, { diff --git a/types/styled-components/tsconfig.json b/types/styled-components/tsconfig.json index ecfb3a0424d650..3278cc1e02ca3d 100644 --- a/types/styled-components/tsconfig.json +++ b/types/styled-components/tsconfig.json @@ -12,7 +12,8 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "types": [] + "types": [], + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/styled-theming/tsconfig.json b/types/styled-theming/tsconfig.json index e5216d0310818d..1a3f8f2a179c73 100644 --- a/types/styled-theming/tsconfig.json +++ b/types/styled-theming/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "module": "node16", "lib": [ "es6" diff --git a/types/subleveldown/tsconfig.json b/types/subleveldown/tsconfig.json index 17c4839c83e300..302a530444d3b1 100644 --- a/types/subleveldown/tsconfig.json +++ b/types/subleveldown/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/superagent-bunyan/index.d.ts b/types/superagent-bunyan/index.d.ts index 766899bc26ca6e..418042760c6395 100644 --- a/types/superagent-bunyan/index.d.ts +++ b/types/superagent-bunyan/index.d.ts @@ -1,4 +1,4 @@ -import * as Logger from "bunyan"; +import Logger = require("bunyan"); import { Plugin } from "superagent"; declare function superagentLogger(logger: Logger, requestId?: string, extra?: object): Plugin; diff --git a/types/superagent-no-cache/index.d.ts b/types/superagent-no-cache/index.d.ts index 25078a017951aa..d6b6f47443e651 100644 --- a/types/superagent-no-cache/index.d.ts +++ b/types/superagent-no-cache/index.d.ts @@ -1,4 +1,4 @@ -import * as request from "superagent"; +import request = require("superagent"); declare const plugin: request.Plugin; diff --git a/types/superagent-prefix/index.d.ts b/types/superagent-prefix/index.d.ts index dc554e5e45a7ec..f8e8ebbd3ac1a5 100644 --- a/types/superagent-prefix/index.d.ts +++ b/types/superagent-prefix/index.d.ts @@ -1,4 +1,4 @@ -import * as request from "superagent"; +import request = require("superagent"); declare function plugin(prefix: string): request.Plugin; diff --git a/types/superagent-retry-delay/index.d.ts b/types/superagent-retry-delay/index.d.ts index 721718f347b03c..fc301e3222daed 100644 --- a/types/superagent-retry-delay/index.d.ts +++ b/types/superagent-retry-delay/index.d.ts @@ -1,5 +1,5 @@ import * as cookiejar from "cookiejar"; -import * as stream from "stream"; +import stream = require("stream"); import { Request, Response, SuperAgentRequest, SuperAgentStatic } from "superagent"; // these types should be exported by `superagent` but are not ------- diff --git a/types/superagent-retry-delay/superagent-retry-delay-tests.ts b/types/superagent-retry-delay/superagent-retry-delay-tests.ts index 7948e14d55e991..fbda208f5d54a2 100644 --- a/types/superagent-retry-delay/superagent-retry-delay-tests.ts +++ b/types/superagent-retry-delay/superagent-retry-delay-tests.ts @@ -1,4 +1,4 @@ -import * as superagent from "superagent"; +import superagent from "superagent"; import wrapSuperagent = require("superagent-retry-delay"); // $ExpectType EnhancedSuperAgentStatic diff --git a/types/superagent-retry-delay/tsconfig.json b/types/superagent-retry-delay/tsconfig.json index 33ef9bc8e52e64..e3f6d4cbf64800 100644 --- a/types/superagent-retry-delay/tsconfig.json +++ b/types/superagent-retry-delay/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/supertest-as-promised/index.d.ts b/types/supertest-as-promised/index.d.ts index e54184ad4a87fd..29788ba74b46a8 100644 --- a/types/supertest-as-promised/index.d.ts +++ b/types/supertest-as-promised/index.d.ts @@ -1,4 +1,4 @@ -import * as PromiseBluebird from "bluebird"; +import PromiseBluebird = require("bluebird"); import supertest = require("supertest"); import { Server } from "tls"; diff --git a/types/svg-path-bounding-box/svg-path-bounding-box-tests.ts b/types/svg-path-bounding-box/svg-path-bounding-box-tests.ts index 968b862e3cc200..96d677751c2104 100644 --- a/types/svg-path-bounding-box/svg-path-bounding-box-tests.ts +++ b/types/svg-path-bounding-box/svg-path-bounding-box-tests.ts @@ -1,4 +1,4 @@ -import * as svgPathBoundingBox from "svg-path-bounding-box"; +import svgPathBoundingBox from "svg-path-bounding-box"; const bbox = svgPathBoundingBox("M300,200 h-150 a150,150 0 1,0 150,-150 z"); diff --git a/types/svg-path-bounding-box/tsconfig.json b/types/svg-path-bounding-box/tsconfig.json index 8217ccdaa1d709..d28445c4ce48f6 100644 --- a/types/svg-path-bounding-box/tsconfig.json +++ b/types/svg-path-bounding-box/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/svg-path-bounds/tsconfig.json b/types/svg-path-bounds/tsconfig.json index a40a20f17e391a..9be8b175c35c8f 100755 --- a/types/svg-path-bounds/tsconfig.json +++ b/types/svg-path-bounds/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/svg4everybody/tsconfig.json b/types/svg4everybody/tsconfig.json index eba01713418596..d097a70c567765 100644 --- a/types/svg4everybody/tsconfig.json +++ b/types/svg4everybody/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/svg64/tsconfig.json b/types/svg64/tsconfig.json index 625cb1585969f3..dae949b4dc762a 100644 --- a/types/svg64/tsconfig.json +++ b/types/svg64/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/sw-precache-webpack-plugin/sw-precache-webpack-plugin-tests.ts b/types/sw-precache-webpack-plugin/sw-precache-webpack-plugin-tests.ts index 37a6baa37d8a62..7336f9b35081f4 100644 --- a/types/sw-precache-webpack-plugin/sw-precache-webpack-plugin-tests.ts +++ b/types/sw-precache-webpack-plugin/sw-precache-webpack-plugin-tests.ts @@ -1,4 +1,4 @@ -import * as SwPrecacheWebpackPlugin from "sw-precache-webpack-plugin"; +import SwPrecacheWebpackPlugin from "sw-precache-webpack-plugin"; import { Configuration } from "webpack"; let config: Configuration = { diff --git a/types/sw-precache-webpack-plugin/tsconfig.json b/types/sw-precache-webpack-plugin/tsconfig.json index 786d2a2a938716..0a2ad9f4becc98 100644 --- a/types/sw-precache-webpack-plugin/tsconfig.json +++ b/types/sw-precache-webpack-plugin/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/swagger-jsdoc/swagger-jsdoc-tests.ts b/types/swagger-jsdoc/swagger-jsdoc-tests.ts index 54061d00c62e04..41f807203809b4 100644 --- a/types/swagger-jsdoc/swagger-jsdoc-tests.ts +++ b/types/swagger-jsdoc/swagger-jsdoc-tests.ts @@ -1,5 +1,5 @@ -import * as express from "express"; -import * as swaggerJSDoc from "swagger-jsdoc"; +import express from "express"; +import swaggerJSDoc from "swagger-jsdoc"; const app = express(); diff --git a/types/swagger-jsdoc/tsconfig.json b/types/swagger-jsdoc/tsconfig.json index a458c04c3d66a0..b531ccc3cbd101 100644 --- a/types/swagger-jsdoc/tsconfig.json +++ b/types/swagger-jsdoc/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/swagger-stats/swagger-stats-tests.ts b/types/swagger-stats/swagger-stats-tests.ts index 7d0aadf5d8e451..4331e128ebc0a8 100644 --- a/types/swagger-stats/swagger-stats-tests.ts +++ b/types/swagger-stats/swagger-stats-tests.ts @@ -1,5 +1,5 @@ import { Server } from "@hapi/hapi"; -import * as express from "express"; +import express from "express"; import fastify from "fastify"; import { getCoreStats, diff --git a/types/swagger-stats/tsconfig.json b/types/swagger-stats/tsconfig.json index 5cfeecb0d4a92f..afca1584fcf295 100644 --- a/types/swagger-stats/tsconfig.json +++ b/types/swagger-stats/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/tableau-js-api/tsconfig.json b/types/tableau-js-api/tsconfig.json index 7d49f5bb645a5d..f3c4a6657906ab 100644 --- a/types/tableau-js-api/tsconfig.json +++ b/types/tableau-js-api/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/tablesorter/test/Settings.ts b/types/tablesorter/test/Settings.ts index 001648d702af1c..cdc455af25fd56 100644 --- a/types/tablesorter/test/Settings.ts +++ b/types/tablesorter/test/Settings.ts @@ -1,4 +1,4 @@ -import * as Globalize from "globalize"; +import Globalize from "globalize"; import "jquery"; import { ColumnFilter, diff --git a/types/tablesorter/tsconfig.json b/types/tablesorter/tsconfig.json index 8c1f523d6e2546..d02952cfa8143e 100644 --- a/types/tablesorter/tsconfig.json +++ b/types/tablesorter/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/tabulator/tsconfig.json b/types/tabulator/tsconfig.json index 28353bb436a81c..398b0a477a8113 100644 --- a/types/tabulator/tsconfig.json +++ b/types/tabulator/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/tar-js/tar-js-tests.ts b/types/tar-js/tar-js-tests.ts index 8416f87361d3f8..0225f3fc226efd 100644 --- a/types/tar-js/tar-js-tests.ts +++ b/types/tar-js/tar-js-tests.ts @@ -1,5 +1,5 @@ /// -import * as Tar from "tar-js"; +import Tar from "tar-js"; const tar = new Tar(); console.log(tar.written === 0); diff --git a/types/tar-js/tsconfig.json b/types/tar-js/tsconfig.json index 81330631f500fe..25b7784eed79f1 100644 --- a/types/tar-js/tsconfig.json +++ b/types/tar-js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/tdigest/tsconfig.json b/types/tdigest/tsconfig.json index 35e11e83367549..3cfa02e5b8de33 100644 --- a/types/tdigest/tsconfig.json +++ b/types/tdigest/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/terminal-kit/tsconfig.json b/types/terminal-kit/tsconfig.json index c5efda9a5d7587..7adcb4bb9977d2 100644 --- a/types/terminal-kit/tsconfig.json +++ b/types/terminal-kit/tsconfig.json @@ -7,7 +7,6 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, diff --git a/types/test-exclude/test-exclude-tests.ts b/types/test-exclude/test-exclude-tests.ts index e819965ea1c8c1..64e3f8f65ec5ef 100644 --- a/types/test-exclude/test-exclude-tests.ts +++ b/types/test-exclude/test-exclude-tests.ts @@ -1,4 +1,4 @@ -import * as TestExclude from "test-exclude"; +import TestExclude from "test-exclude"; // @ts-expect-error new TestExclude(null); diff --git a/types/test-exclude/tsconfig.json b/types/test-exclude/tsconfig.json index 39a3dc6511cda6..53a837e09f1f5e 100644 --- a/types/test-exclude/tsconfig.json +++ b/types/test-exclude/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/text-to-svg/tsconfig.json b/types/text-to-svg/tsconfig.json index 94a1a145badb23..0b40e4125c4c36 100644 --- a/types/text-to-svg/tsconfig.json +++ b/types/text-to-svg/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/tgfancy/index.d.ts b/types/tgfancy/index.d.ts index b49585e25a814c..7bc6a24a72d6a2 100644 --- a/types/tgfancy/index.d.ts +++ b/types/tgfancy/index.d.ts @@ -1,4 +1,4 @@ -import * as TelegramBot from "node-telegram-bot-api"; +import TelegramBot = require("node-telegram-bot-api"); declare namespace Tgfancy { interface ChatIdResolutionOptions { diff --git a/types/tgfancy/tsconfig.json b/types/tgfancy/tsconfig.json index b25452437466eb..3b8b4b1fbb80e9 100644 --- a/types/tgfancy/tsconfig.json +++ b/types/tgfancy/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/three-dat.gui/tsconfig.json b/types/three-dat.gui/tsconfig.json index 9ff450e6aca621..3c67839d038f56 100644 --- a/types/three-dat.gui/tsconfig.json +++ b/types/three-dat.gui/tsconfig.json @@ -12,7 +12,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "allowSyntheticDefaultImports": true + "allowSyntheticDefaultImports": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/three-gif-loader/tsconfig.json b/types/three-gif-loader/tsconfig.json index 74b1074166bb7b..1196765339d3ff 100644 --- a/types/three-gif-loader/tsconfig.json +++ b/types/three-gif-loader/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/three-nebula/tsconfig.json b/types/three-nebula/tsconfig.json index 00d77e75f5a1fc..9debf1d35fca14 100644 --- a/types/three-nebula/tsconfig.json +++ b/types/three-nebula/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/three-tds-loader/tsconfig.json b/types/three-tds-loader/tsconfig.json index 057311f813cc5e..ee7d1a76ada10f 100644 --- a/types/three-tds-loader/tsconfig.json +++ b/types/three-tds-loader/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/throttle/index.d.ts b/types/throttle/index.d.ts index 3ccb8f3bbcd0b8..575c8ff011a1dc 100644 --- a/types/throttle/index.d.ts +++ b/types/throttle/index.d.ts @@ -1,5 +1,5 @@ /// -import * as stream from "stream"; +import stream = require("stream"); export = Throttle; diff --git a/types/through2-concurrent/through2-concurrent-tests.ts b/types/through2-concurrent/through2-concurrent-tests.ts index ed2d488311a2f7..e7266f3cf127b4 100644 --- a/types/through2-concurrent/through2-concurrent-tests.ts +++ b/types/through2-concurrent/through2-concurrent-tests.ts @@ -1,5 +1,5 @@ import { Transform } from "stream"; -import * as through2 from "through2-concurrent"; +import through2 from "through2-concurrent"; let str: Transform; diff --git a/types/through2-concurrent/tsconfig.json b/types/through2-concurrent/tsconfig.json index f825eafd4b4c12..e2ae34deaa02e0 100644 --- a/types/through2-concurrent/tsconfig.json +++ b/types/through2-concurrent/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/time-limited-regular-expressions/time-limited-regular-expressions-tests.ts b/types/time-limited-regular-expressions/time-limited-regular-expressions-tests.ts index 598f10279da2e7..011daa068488bd 100644 --- a/types/time-limited-regular-expressions/time-limited-regular-expressions-tests.ts +++ b/types/time-limited-regular-expressions/time-limited-regular-expressions-tests.ts @@ -1,4 +1,4 @@ -import * as tlre from "time-limited-regular-expressions"; +import tlre from "time-limited-regular-expressions"; tlre(); // $ExpectType TLRE tlre({ limit: 1 }); // $ExpectType TLRE diff --git a/types/time-limited-regular-expressions/tsconfig.json b/types/time-limited-regular-expressions/tsconfig.json index 3917fe982dfcc7..01b69f97ab4254 100644 --- a/types/time-limited-regular-expressions/tsconfig.json +++ b/types/time-limited-regular-expressions/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/tinycolor2/tsconfig.json b/types/tinycolor2/tsconfig.json index a3bf5e68e69193..a2f8c5e8c9890b 100644 --- a/types/tinycolor2/tsconfig.json +++ b/types/tinycolor2/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/tippy.js/tsconfig.json b/types/tippy.js/tsconfig.json index 35b4a714658dcc..2aae423027fee9 100644 --- a/types/tippy.js/tsconfig.json +++ b/types/tippy.js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "DOM" @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/titlecase/titlecase-tests.ts b/types/titlecase/titlecase-tests.ts index c3d3f0534bd271..b36524b8ca8326 100644 --- a/types/titlecase/titlecase-tests.ts +++ b/types/titlecase/titlecase-tests.ts @@ -1,4 +1,4 @@ -import * as toTitleCase from "titlecase"; +import toTitleCase from "titlecase"; toTitleCase("this is a test") === "This Is a Test"; toTitleCase.toTitleCase("this is a test") === "This Is a Test"; diff --git a/types/titlecase/tsconfig.json b/types/titlecase/tsconfig.json index fc23eaec079e2c..5a14c1c7d30b75 100644 --- a/types/titlecase/tsconfig.json +++ b/types/titlecase/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/tizen-common-web/tsconfig.json b/types/tizen-common-web/tsconfig.json index 27649f8f89e271..8ae71ab909e8b7 100644 --- a/types/tizen-common-web/tsconfig.json +++ b/types/tizen-common-web/tsconfig.json @@ -9,7 +9,6 @@ "noEmit": true, "forceConsistentCasingInFileNames": true, "types": [], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/tizen-tv-webapis/tsconfig.json b/types/tizen-tv-webapis/tsconfig.json index 91e648cc0b8283..c4f9c4b87a3df9 100644 --- a/types/tizen-tv-webapis/tsconfig.json +++ b/types/tizen-tv-webapis/tsconfig.json @@ -9,7 +9,6 @@ "noEmit": true, "forceConsistentCasingInFileNames": true, "types": [], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/tokgen/tokgen-tests.ts b/types/tokgen/tokgen-tests.ts index 16098ef82e3de1..8f0a990a1e8067 100644 --- a/types/tokgen/tokgen-tests.ts +++ b/types/tokgen/tokgen-tests.ts @@ -1,4 +1,4 @@ -import * as TokenGenerator from "tokgen"; +import TokenGenerator from "tokgen"; const generator1 = new TokenGenerator(); const generator2 = new TokenGenerator("0-9a-f"); diff --git a/types/tokgen/tsconfig.json b/types/tokgen/tsconfig.json index 195456e4bbfe26..bc5c9a8c09c5b3 100644 --- a/types/tokgen/tsconfig.json +++ b/types/tokgen/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/topojson/tsconfig.json b/types/topojson/tsconfig.json index 579ccf8b05d2f4..f996fdf47b909b 100644 --- a/types/topojson/tsconfig.json +++ b/types/topojson/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/transducers-js/transducers-js-tests.ts b/types/transducers-js/transducers-js-tests.ts index a8bd27ad1434ed..e3216a01277250 100644 --- a/types/transducers-js/transducers-js-tests.ts +++ b/types/transducers-js/transducers-js-tests.ts @@ -1,6 +1,6 @@ // tests taken from https://github.com/cognitect-labs/transducers-js -import * as t from "transducers-js"; +import t from "transducers-js"; const { map, filter, comp, into } = t; diff --git a/types/transducers.js/transducers.js-tests.ts b/types/transducers.js/transducers.js-tests.ts index e7a64d14328a9b..4912fae97abb12 100644 --- a/types/transducers.js/transducers.js-tests.ts +++ b/types/transducers.js/transducers.js-tests.ts @@ -1,4 +1,4 @@ -import * as t from "transducers.js"; +import t from "transducers.js"; const stringAppendFn: t.Reducer = (acc, x) => acc + x; const stringAppendTransformer = t.transformer(stringAppendFn); diff --git a/types/transform-pouch/transform-pouch-tests.ts b/types/transform-pouch/transform-pouch-tests.ts index a6d190beea51a3..6499b47b267a63 100644 --- a/types/transform-pouch/transform-pouch-tests.ts +++ b/types/transform-pouch/transform-pouch-tests.ts @@ -1,7 +1,7 @@ /// -import * as PouchDB from "pouchdb"; -import * as transform from "transform-pouch"; +import PouchDB from "pouchdb"; +import transform from "transform-pouch"; PouchDB.plugin(transform); const db1 = new PouchDB<{ example: number }>(); diff --git a/types/transform-pouch/tsconfig.json b/types/transform-pouch/tsconfig.json index 948a176ca90010..73df88d9147ca0 100644 --- a/types/transform-pouch/tsconfig.json +++ b/types/transform-pouch/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/trtc-calling-js/tsconfig.json b/types/trtc-calling-js/tsconfig.json index 99f69d0e5e9bad..8be12579a9bb83 100644 --- a/types/trtc-calling-js/tsconfig.json +++ b/types/trtc-calling-js/tsconfig.json @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/tryer/tryer-tests.ts b/types/tryer/tryer-tests.ts index 2c9bb0dc3ce136..0ea8d0b80ac4f3 100644 --- a/types/tryer/tryer-tests.ts +++ b/types/tryer/tryer-tests.ts @@ -1,4 +1,4 @@ -import * as tryer from "tryer"; +import tryer from "tryer"; // @ts-expect-error tryer(); diff --git a/types/tryer/tsconfig.json b/types/tryer/tsconfig.json index 3a21ef2cc2e772..4bc40504c69b9d 100644 --- a/types/tryer/tsconfig.json +++ b/types/tryer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/tuya-panel-kit/tsconfig.json b/types/tuya-panel-kit/tsconfig.json index fb7c8a36a31561..e8268f9925f6d5 100644 --- a/types/tuya-panel-kit/tsconfig.json +++ b/types/tuya-panel-kit/tsconfig.json @@ -20,7 +20,8 @@ "react-native": [ "../react-native/v0.65/index.d.ts" ] - } + }, + "esModuleInterop": true }, "files": [ "index.d.ts" diff --git a/types/typeof/tsconfig.json b/types/typeof/tsconfig.json index 4bc694beaac499..4712c2d895988f 100644 --- a/types/typeof/tsconfig.json +++ b/types/typeof/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/uglifyjs-webpack-plugin/tsconfig.json b/types/uglifyjs-webpack-plugin/tsconfig.json index ce3b3625fa0aab..153dc9d5a5c1ac 100644 --- a/types/uglifyjs-webpack-plugin/tsconfig.json +++ b/types/uglifyjs-webpack-plugin/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/uglifyjs-webpack-plugin/uglifyjs-webpack-plugin-tests.ts b/types/uglifyjs-webpack-plugin/uglifyjs-webpack-plugin-tests.ts index 281f7d4f01bf14..a0048851306e18 100644 --- a/types/uglifyjs-webpack-plugin/uglifyjs-webpack-plugin-tests.ts +++ b/types/uglifyjs-webpack-plugin/uglifyjs-webpack-plugin-tests.ts @@ -1,5 +1,5 @@ -import * as UglifyjsWebpackPlugin from "uglifyjs-webpack-plugin"; -import * as webpack from "webpack"; +import UglifyjsWebpackPlugin from "uglifyjs-webpack-plugin"; +import webpack from "webpack"; const compiler = webpack({ plugins: [ diff --git a/types/underscore-ko/index.d.ts b/types/underscore-ko/index.d.ts index 79ade059763def..5b6accecf12b35 100644 --- a/types/underscore-ko/index.d.ts +++ b/types/underscore-ko/index.d.ts @@ -1,6 +1,6 @@ /// -import * as _ from "underscore"; +import _ = require("underscore"); interface KnockoutObservableArrayFunctions { /* ** diff --git a/types/underscore.string/index.d.ts b/types/underscore.string/index.d.ts index 2a99a57793fe74..463f0782da277c 100644 --- a/types/underscore.string/index.d.ts +++ b/types/underscore.string/index.d.ts @@ -1,4 +1,4 @@ -import * as _ from "underscore"; +import _ = require("underscore"); declare var self: _.UnderscoreStringStatic; export = self; diff --git a/types/undertaker/index.d.ts b/types/undertaker/index.d.ts index 7a56e2d54b5587..4b16ba8c141f16 100644 --- a/types/undertaker/index.d.ts +++ b/types/undertaker/index.d.ts @@ -1,7 +1,7 @@ /// import { AsyncTask } from "async-done"; import { EventEmitter } from "events"; -import * as Registry from "undertaker-registry"; +import Registry = require("undertaker-registry"); declare namespace Undertaker { interface TaskFunctionParams { diff --git a/types/ungap__create-content/tsconfig.json b/types/ungap__create-content/tsconfig.json index 26ba1abbd741bb..4b0972a49ce0b8 100644 --- a/types/ungap__create-content/tsconfig.json +++ b/types/ungap__create-content/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "test/create-content.cjs.test.ts", diff --git a/types/unique-push-id/tsconfig.json b/types/unique-push-id/tsconfig.json index 6ac58c8207d5bc..70e41fd752d950 100644 --- a/types/unique-push-id/tsconfig.json +++ b/types/unique-push-id/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/unpaginated/tsconfig.json b/types/unpaginated/tsconfig.json index e956992a1d8f3b..6a99ef2128c372 100644 --- a/types/unpaginated/tsconfig.json +++ b/types/unpaginated/tsconfig.json @@ -10,7 +10,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/uploadcare/tsconfig.json b/types/uploadcare/tsconfig.json index 4aad462f206f0e..0c4e2171b3a007 100644 --- a/types/uploadcare/tsconfig.json +++ b/types/uploadcare/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/uploadcare/uploadcare-tests.ts b/types/uploadcare/uploadcare-tests.ts index 295a470691ce65..029e76904f03ec 100644 --- a/types/uploadcare/uploadcare-tests.ts +++ b/types/uploadcare/uploadcare-tests.ts @@ -1,4 +1,4 @@ -import * as Uploadcare from "uploadcare"; +import Uploadcare from "uploadcare"; const uploadcare = Uploadcare("", ""); diff --git a/types/urijs/src/URITemplate.d.ts b/types/urijs/src/URITemplate.d.ts index f0b6cf9fd63b6b..c49548634d77c6 100644 --- a/types/urijs/src/URITemplate.d.ts +++ b/types/urijs/src/URITemplate.d.ts @@ -1,4 +1,4 @@ -import * as URI from "../"; +import URI = require("../"); export = URITemplate; export as namespace URITemplate; diff --git a/types/urijs/test/urijs-dom.test.ts b/types/urijs/test/urijs-dom.test.ts index 7318997b75eb10..1dc3396bade1fb 100644 --- a/types/urijs/test/urijs-dom.test.ts +++ b/types/urijs/test/urijs-dom.test.ts @@ -1,6 +1,6 @@ /// import URI = require("urijs"); -import * as URITemplate from "urijs/src/URITemplate"; +import URITemplate from "urijs/src/URITemplate"; declare var $: (arg?: any) => JQuery; // Scope it so doesn't name conflict with other tests. diff --git a/types/urijs/test/urijs-nodejs.test.ts b/types/urijs/test/urijs-nodejs.test.ts index 6512e0d36fd993..0d09a26016ea79 100644 --- a/types/urijs/test/urijs-nodejs.test.ts +++ b/types/urijs/test/urijs-nodejs.test.ts @@ -1,5 +1,5 @@ import URI = require("urijs"); -import * as URITemplate from "urijs/src/URITemplate"; +import URITemplate from "urijs/src/URITemplate"; declare var $: (arg?: any) => JQuery; // Scope it so doesn't name conflict with other tests. diff --git a/types/urijs/tsconfig.json b/types/urijs/tsconfig.json index f143cfcb796170..e9e9da72774382 100644 --- a/types/urijs/tsconfig.json +++ b/types/urijs/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/urlparser/tsconfig.json b/types/urlparser/tsconfig.json index 92a7f742b6973d..f028b428b5007d 100644 --- a/types/urlparser/tsconfig.json +++ b/types/urlparser/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/use-ackee/tsconfig.json b/types/use-ackee/tsconfig.json index af94824871571b..7bcaa9792c2414 100644 --- a/types/use-ackee/tsconfig.json +++ b/types/use-ackee/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/use-ackee/use-ackee-tests.ts b/types/use-ackee/use-ackee-tests.ts index 95cdc3e4fd6699..de4077f14160cf 100644 --- a/types/use-ackee/use-ackee-tests.ts +++ b/types/use-ackee/use-ackee-tests.ts @@ -1,6 +1,6 @@ import { useAckee as useAckeeNamed } from "use-ackee"; // eslint-disable-next-line no-duplicate-imports -import * as useAckee from "use-ackee"; +import useAckee from "use-ackee"; useAckeeNamed( "/current/path", diff --git a/types/use-double-click/tsconfig.json b/types/use-double-click/tsconfig.json index c0f4522439b8c2..fd96140b868694 100644 --- a/types/use-double-click/tsconfig.json +++ b/types/use-double-click/tsconfig.json @@ -12,8 +12,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/uws/index.d.ts b/types/uws/index.d.ts index b2cd19c86bd038..10cd10e45221c0 100644 --- a/types/uws/index.d.ts +++ b/types/uws/index.d.ts @@ -1,6 +1,6 @@ /// -import * as events from "events"; +import events = require("events"); import * as http from "http"; import * as https from "https"; import * as net from "net"; diff --git a/types/valid-data-url/tsconfig.json b/types/valid-data-url/tsconfig.json index 0128395cb88e9f..1543f5cd180459 100644 --- a/types/valid-data-url/tsconfig.json +++ b/types/valid-data-url/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/valid-data-url/valid-data-url-tests.ts b/types/valid-data-url/valid-data-url-tests.ts index ed8dcf9ec4828c..3ebc6443a11e8b 100644 --- a/types/valid-data-url/valid-data-url-tests.ts +++ b/types/valid-data-url/valid-data-url-tests.ts @@ -1,3 +1,3 @@ -import * as validDataUrl from "valid-data-url"; +import validDataUrl from "valid-data-url"; validDataUrl("data:text/plain;base64,SGVsbG8sIFdvcmxkIQ%3D%3D"); diff --git a/types/vanilla-masker/tsconfig.json b/types/vanilla-masker/tsconfig.json index 7fa93f1c4caba0..e2424b4a518f7f 100644 --- a/types/vanilla-masker/tsconfig.json +++ b/types/vanilla-masker/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/vanilla-masker/vanilla-masker-tests.ts b/types/vanilla-masker/vanilla-masker-tests.ts index 1003d4bc00e823..904870c29439fb 100644 --- a/types/vanilla-masker/vanilla-masker-tests.ts +++ b/types/vanilla-masker/vanilla-masker-tests.ts @@ -1,4 +1,4 @@ -import * as VMasker from "vanilla-masker"; +import VMasker from "vanilla-masker"; // Masking input element to money. const el = document.querySelector("data-js-input") as Element; diff --git a/types/vara/tsconfig.json b/types/vara/tsconfig.json index 2cca0be21ebad2..09e6afc0177bf2 100644 --- a/types/vara/tsconfig.json +++ b/types/vara/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/vara/vara-tests.ts b/types/vara/vara-tests.ts index f1528219aa7ba5..51cb872552aa6d 100644 --- a/types/vara/vara-tests.ts +++ b/types/vara/vara-tests.ts @@ -1,5 +1,5 @@ import Vara = require("vara"); -import * as Vara2 from "vara"; +import Vara2 from "vara"; const vara = new Vara("#root", "font.json", [ { diff --git a/types/vcf/tsconfig.json b/types/vcf/tsconfig.json index 379953665e642e..902a5ea1bafe63 100644 --- a/types/vcf/tsconfig.json +++ b/types/vcf/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/vcf/vcf-tests.ts b/types/vcf/vcf-tests.ts index f45659d59e9ced..9c948b7d2f0142 100644 --- a/types/vcf/vcf-tests.ts +++ b/types/vcf/vcf-tests.ts @@ -1,4 +1,4 @@ -import * as vCard from "vcf"; +import vCard from "vcf"; const card = new vCard(); diff --git a/types/verror/tsconfig.json b/types/verror/tsconfig.json index aa55468c88a9e6..15f275849c14ef 100644 --- a/types/verror/tsconfig.json +++ b/types/verror/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "es2021.promise", diff --git a/types/vertx__eventbus-bridge-client.js/tsconfig.json b/types/vertx__eventbus-bridge-client.js/tsconfig.json index 9f525bb135c1f3..962640521c728a 100644 --- a/types/vertx__eventbus-bridge-client.js/tsconfig.json +++ b/types/vertx__eventbus-bridge-client.js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/vertx__eventbus-bridge-client.js/vertx__eventbus-bridge-client.js-tests.ts b/types/vertx__eventbus-bridge-client.js/vertx__eventbus-bridge-client.js-tests.ts index 94c01fd6f59230..1debf748c0894f 100644 --- a/types/vertx__eventbus-bridge-client.js/vertx__eventbus-bridge-client.js-tests.ts +++ b/types/vertx__eventbus-bridge-client.js/vertx__eventbus-bridge-client.js-tests.ts @@ -1,3 +1,3 @@ -import * as EventBus from "vertx__eventbus-bridge-client.js"; +import EventBus from "vertx__eventbus-bridge-client.js"; const eb = new EventBus("http://localhost:8080"); diff --git a/types/vhost/tsconfig.json b/types/vhost/tsconfig.json index 24861c88dc76d4..27424863497d22 100644 --- a/types/vhost/tsconfig.json +++ b/types/vhost/tsconfig.json @@ -7,7 +7,6 @@ "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, - "esModuleInterop": true, "strictNullChecks": true, "types": [], "noEmit": true, diff --git a/types/vinyl-fs/index.d.ts b/types/vinyl-fs/index.d.ts index 4e5bab4e712ba6..2b7d3f4fbe6814 100644 --- a/types/vinyl-fs/index.d.ts +++ b/types/vinyl-fs/index.d.ts @@ -8,9 +8,9 @@ declare global { } } -import * as _events from "events"; -import * as globStream from "glob-stream"; -import * as File from "vinyl"; +import _events = require("events"); +import globStream = require("glob-stream"); +import File = require("vinyl"); export interface SrcOptions extends globStream.Options { /** diff --git a/types/vinyl-fs/v0/index.d.ts b/types/vinyl-fs/v0/index.d.ts index 2b57ddcded3b09..80008c1631b6f4 100644 --- a/types/vinyl-fs/v0/index.d.ts +++ b/types/vinyl-fs/v0/index.d.ts @@ -8,9 +8,9 @@ declare global { } } -import * as _events from "events"; -import * as globStream from "glob-stream"; -import * as File from "vinyl"; +import _events = require("events"); +import globStream = require("glob-stream"); +import File = require("vinyl"); export interface SrcOptions extends globStream.Options { /** Prevents stream from emitting an error when file not found. */ diff --git a/types/vinyl-fs/v1/index.d.ts b/types/vinyl-fs/v1/index.d.ts index 835e0e387a61fe..52b0dbd3d60610 100644 --- a/types/vinyl-fs/v1/index.d.ts +++ b/types/vinyl-fs/v1/index.d.ts @@ -8,9 +8,9 @@ declare global { } } -import * as _events from "events"; -import * as globStream from "glob-stream"; -import * as File from "vinyl"; +import _events = require("events"); +import globStream = require("glob-stream"); +import File = require("vinyl"); export interface SrcOptions extends globStream.Options { /** Prevents stream from emitting an error when file not found. */ diff --git a/types/vinyl/vinyl-tests.ts b/types/vinyl/vinyl-tests.ts index 14e4697bcc8f44..a036af34e6aac0 100644 --- a/types/vinyl/vinyl-tests.ts +++ b/types/vinyl/vinyl-tests.ts @@ -1,5 +1,5 @@ import * as fs from "fs"; -import * as path from "path"; +import path from "path"; import expect = require("expect"); const miss = require("mississippi"); const cloneable = require("cloneable-readable"); diff --git a/types/vite-plugin-react-svg/tsconfig.json b/types/vite-plugin-react-svg/tsconfig.json index 0aa688d438a1d7..b70c4bda29d4ae 100644 --- a/types/vite-plugin-react-svg/tsconfig.json +++ b/types/vite-plugin-react-svg/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/vmap/tsconfig.json b/types/vmap/tsconfig.json index 001ec3ee8357dc..c1bb3ccad10496 100644 --- a/types/vmap/tsconfig.json +++ b/types/vmap/tsconfig.json @@ -9,7 +9,6 @@ "noImplicitThis": true, "strictFunctionTypes": true, "strictNullChecks": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/vnu-jar/tsconfig.json b/types/vnu-jar/tsconfig.json index 247b50ffa1f05c..efe8a040aa095e 100644 --- a/types/vnu-jar/tsconfig.json +++ b/types/vnu-jar/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/vssln-parser/tsconfig.json b/types/vssln-parser/tsconfig.json index 22b11290b77746..37272f93a9540b 100644 --- a/types/vssln-parser/tsconfig.json +++ b/types/vssln-parser/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/vssln-parser/vssln-parser-tests.ts b/types/vssln-parser/vssln-parser-tests.ts index ca45a42b7d4c78..66f6d795704bdf 100644 --- a/types/vssln-parser/vssln-parser-tests.ts +++ b/types/vssln-parser/vssln-parser-tests.ts @@ -1,5 +1,5 @@ import * as fs from "fs"; -import * as vsslnparse from "vssln-parser"; +import vsslnparse from "vssln-parser"; vsslnparse("", solution => { solution.visualStudioVersion; // $ExpectType string | undefined diff --git a/types/vt-pbf/index.d.ts b/types/vt-pbf/index.d.ts index b96ba4ede90d91..e43f66ad7fe64a 100644 --- a/types/vt-pbf/index.d.ts +++ b/types/vt-pbf/index.d.ts @@ -1,5 +1,5 @@ import * as GJ from "geojson"; -import * as geojsonvt from "geojson-vt"; +import geojsonvt = require("geojson-vt"); type RawGeometry = number | RawGeometry[]; diff --git a/types/vt-pbf/tsconfig.json b/types/vt-pbf/tsconfig.json index 7830fcbacb85f3..a459327cd38d0b 100644 --- a/types/vt-pbf/tsconfig.json +++ b/types/vt-pbf/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/vt-pbf/vt-pbf-tests.ts b/types/vt-pbf/vt-pbf-tests.ts index 473bfae2719589..718bbdf3fd5b69 100644 --- a/types/vt-pbf/vt-pbf-tests.ts +++ b/types/vt-pbf/vt-pbf-tests.ts @@ -1,5 +1,5 @@ import { GeoJSON } from "geojson"; -import * as geojsonvt from "geojson-vt"; +import geojsonvt from "geojson-vt"; import { fromGeojsonVt, fromVectorTileJs, GeoJSONWrapper } from "vt-pbf"; const geojson = { diff --git a/types/vtex.js/tsconfig.json b/types/vtex.js/tsconfig.json index 4e1c770e8b23b4..ef5e43672bd968 100644 --- a/types/vtex.js/tsconfig.json +++ b/types/vtex.js/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/vue-clickaway/tsconfig.json b/types/vue-clickaway/tsconfig.json index ab1ad52ba728d9..91193738de317f 100755 --- a/types/vue-clickaway/tsconfig.json +++ b/types/vue-clickaway/tsconfig.json @@ -12,7 +12,6 @@ "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitThis": true, - "esModuleInterop": true, "noEmit": true, "forceConsistentCasingInFileNames": true, "types": [], diff --git a/types/vue-json-compare/tsconfig.json b/types/vue-json-compare/tsconfig.json index 5425607ce95b51..1f85d492f57951 100755 --- a/types/vue-json-compare/tsconfig.json +++ b/types/vue-json-compare/tsconfig.json @@ -10,7 +10,6 @@ "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitThis": true, - "esModuleInterop": true, "noEmit": true, "forceConsistentCasingInFileNames": true, "types": [], diff --git a/types/vue-moment/tsconfig.json b/types/vue-moment/tsconfig.json index ee31e4127e25fd..94a9b4ee2802b3 100644 --- a/types/vue-moment/tsconfig.json +++ b/types/vue-moment/tsconfig.json @@ -5,7 +5,6 @@ "es6", "dom" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/vue-scroll-up/tsconfig.json b/types/vue-scroll-up/tsconfig.json index 984b20fe9b0100..284e911af026b2 100755 --- a/types/vue-scroll-up/tsconfig.json +++ b/types/vue-scroll-up/tsconfig.json @@ -12,7 +12,6 @@ "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitThis": true, - "esModuleInterop": true, "noEmit": true, "forceConsistentCasingInFileNames": true, "types": [], diff --git a/types/vuelidate/tsconfig.json b/types/vuelidate/tsconfig.json index 767886d1330077..8ee5a65e4b5ec9 100644 --- a/types/vuelidate/tsconfig.json +++ b/types/vuelidate/tsconfig.json @@ -12,7 +12,6 @@ "strictNullChecks": true, "strictFunctionTypes": true, "noImplicitThis": true, - "esModuleInterop": true, "noEmit": true, "forceConsistentCasingInFileNames": true, "types": [], diff --git a/types/walk/walk-tests.ts b/types/walk/walk-tests.ts index 4c6cc2b07e8efd..1d23e5609fa189 100644 --- a/types/walk/walk-tests.ts +++ b/types/walk/walk-tests.ts @@ -1,4 +1,4 @@ -import * as walk from "walk"; +import walk from "walk"; const options: walk.WalkOptions = { followLinks: true, diff --git a/types/wallabyjs/tsconfig.json b/types/wallabyjs/tsconfig.json index b38d1b2b93fc61..b94b8eef0124bb 100644 --- a/types/wallabyjs/tsconfig.json +++ b/types/wallabyjs/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/watermark-dom/tsconfig.json b/types/watermark-dom/tsconfig.json index 152896cf1b0522..aeec429afcdd0d 100644 --- a/types/watermark-dom/tsconfig.json +++ b/types/watermark-dom/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/webpack-assets-manifest/tsconfig.json b/types/webpack-assets-manifest/tsconfig.json index 6a70cdd56d1a6c..d3da0d951c8944 100644 --- a/types/webpack-assets-manifest/tsconfig.json +++ b/types/webpack-assets-manifest/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-assets-manifest/v4/tsconfig.json b/types/webpack-assets-manifest/v4/tsconfig.json index 6a70cdd56d1a6c..d3da0d951c8944 100644 --- a/types/webpack-assets-manifest/v4/tsconfig.json +++ b/types/webpack-assets-manifest/v4/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-blocks/tsconfig.json b/types/webpack-blocks/tsconfig.json index ff4e7a603cc9aa..a98fb9dcc25cd2 100644 --- a/types/webpack-blocks/tsconfig.json +++ b/types/webpack-blocks/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-blocks__assets/tsconfig.json b/types/webpack-blocks__assets/tsconfig.json index 474c275a1f3480..5f7f3b44ca4a57 100644 --- a/types/webpack-blocks__assets/tsconfig.json +++ b/types/webpack-blocks__assets/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-blocks__babel/tsconfig.json b/types/webpack-blocks__babel/tsconfig.json index 39966f7847a016..d4013c973bebec 100644 --- a/types/webpack-blocks__babel/tsconfig.json +++ b/types/webpack-blocks__babel/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-blocks__core/tsconfig.json b/types/webpack-blocks__core/tsconfig.json index 08813d1f423f1b..bbb13d76a01498 100644 --- a/types/webpack-blocks__core/tsconfig.json +++ b/types/webpack-blocks__core/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-blocks__dev-server/tsconfig.json b/types/webpack-blocks__dev-server/tsconfig.json index b5384da6718801..b6fa743dbf40d2 100644 --- a/types/webpack-blocks__dev-server/tsconfig.json +++ b/types/webpack-blocks__dev-server/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-blocks__extract-text/tsconfig.json b/types/webpack-blocks__extract-text/tsconfig.json index 1bf719d04021e2..2ed541f1d6e687 100644 --- a/types/webpack-blocks__extract-text/tsconfig.json +++ b/types/webpack-blocks__extract-text/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-blocks__postcss/tsconfig.json b/types/webpack-blocks__postcss/tsconfig.json index 8a2c72702c11cc..8d5ec1ad8aee73 100644 --- a/types/webpack-blocks__postcss/tsconfig.json +++ b/types/webpack-blocks__postcss/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-blocks__sass/tsconfig.json b/types/webpack-blocks__sass/tsconfig.json index d0593ad8edba71..e99770cedc7e80 100644 --- a/types/webpack-blocks__sass/tsconfig.json +++ b/types/webpack-blocks__sass/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-blocks__typescript/tsconfig.json b/types/webpack-blocks__typescript/tsconfig.json index 94ec2d53a53c38..950ba25d2adc0b 100644 --- a/types/webpack-blocks__typescript/tsconfig.json +++ b/types/webpack-blocks__typescript/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-blocks__uglify/tsconfig.json b/types/webpack-blocks__uglify/tsconfig.json index a0273b6dfe4d0e..0e2074c1a7d755 100644 --- a/types/webpack-blocks__uglify/tsconfig.json +++ b/types/webpack-blocks__uglify/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-blocks__webpack/tsconfig.json b/types/webpack-blocks__webpack/tsconfig.json index 0f68d9939f7136..deec30c752357c 100644 --- a/types/webpack-blocks__webpack/tsconfig.json +++ b/types/webpack-blocks__webpack/tsconfig.json @@ -8,7 +8,6 @@ "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "esModuleInterop": true, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/webpack-bugsnag-plugins/index.d.ts b/types/webpack-bugsnag-plugins/index.d.ts index 8c481f0942424a..2a864df890ed86 100644 --- a/types/webpack-bugsnag-plugins/index.d.ts +++ b/types/webpack-bugsnag-plugins/index.d.ts @@ -1,4 +1,4 @@ -import * as webpack from "webpack"; +import webpack = require("webpack"); export interface SourceMapUploaderOptions { /** diff --git a/types/webpack-dotenv-plugin/index.d.ts b/types/webpack-dotenv-plugin/index.d.ts index 22cb9b1b373d9f..0d54fba003fd94 100644 --- a/types/webpack-dotenv-plugin/index.d.ts +++ b/types/webpack-dotenv-plugin/index.d.ts @@ -1,4 +1,4 @@ -import * as webpack from "webpack"; +import webpack = require("webpack"); declare namespace WebpackDotenvPlugin { interface Options { diff --git a/types/webpack-hot-client/index.d.ts b/types/webpack-hot-client/index.d.ts index 73dfb796f22557..f31557421cfb72 100644 --- a/types/webpack-hot-client/index.d.ts +++ b/types/webpack-hot-client/index.d.ts @@ -1,7 +1,7 @@ /// import * as net from "net"; -import * as webpack from "webpack"; +import webpack = require("webpack"); import { Server } from "ws"; export = WebpackHotClient; diff --git a/types/webpack-hot-middleware/index.d.ts b/types/webpack-hot-middleware/index.d.ts index f85ad417cda924..906b4a5ef6d33a 100644 --- a/types/webpack-hot-middleware/index.d.ts +++ b/types/webpack-hot-middleware/index.d.ts @@ -1,5 +1,5 @@ import { NextHandleFunction } from "connect"; -import * as webpack from "webpack"; +import webpack = require("webpack"); export = WebpackHotMiddleware; diff --git a/types/webpack-hot-middleware/webpack-hot-middleware-tests.ts b/types/webpack-hot-middleware/webpack-hot-middleware-tests.ts index acb7e7c8fe56aa..6eccb67ba2e8d5 100644 --- a/types/webpack-hot-middleware/webpack-hot-middleware-tests.ts +++ b/types/webpack-hot-middleware/webpack-hot-middleware-tests.ts @@ -13,7 +13,7 @@ webpackHotMiddlewareInstance = webpackHotMiddleware(compiler, { heartbeat: 2000, }); -const multiCompiler = webpack([webpack.config.getNormalizedWebpackOptions({})])!; +const multiCompiler = webpack([])!; webpackHotMiddlewareInstance = webpackHotMiddleware(multiCompiler); diff --git a/types/webpack-plugin-serve/index.d.ts b/types/webpack-plugin-serve/index.d.ts index 49e085e669420a..96ec3820ec7274 100644 --- a/types/webpack-plugin-serve/index.d.ts +++ b/types/webpack-plugin-serve/index.d.ts @@ -5,7 +5,7 @@ import type { GlobbyOptions } from "globby"; import { Options as HttpProxyMiddlewareConfig, RequestHandler as Proxy } from "http-proxy-middleware"; import { SecureServerOptions as Http2SecureServerOptions, ServerOptions as Http2ServerOptions } from "http2"; import { ServerOptions as HttpsServerOptions } from "https"; -import * as Koa from "koa"; +import Koa = require("koa"); import { CompressOptions } from "koa-compress"; import { Options as KoaStaticOptions } from "koa-static"; diff --git a/types/webpack-serve/index.d.ts b/types/webpack-serve/index.d.ts index aa905eb2a6f2f3..33d796e7921f15 100644 --- a/types/webpack-serve/index.d.ts +++ b/types/webpack-serve/index.d.ts @@ -1,11 +1,11 @@ /// import * as https from "https"; -import * as koa from "koa"; +import koa = require("koa"); import * as net from "net"; -import * as webpack from "webpack"; -import * as webpackDevMiddleware from "webpack-dev-middleware"; -import * as webpackHotClient from "webpack-hot-client"; +import webpack = require("webpack"); +import webpackDevMiddleware = require("webpack-dev-middleware"); +import webpackHotClient = require("webpack-hot-client"); declare module "webpack" { interface Configuration { diff --git a/types/webpack-serve/v1/index.d.ts b/types/webpack-serve/v1/index.d.ts index 8fa80a14810b22..32c6fd929e652a 100644 --- a/types/webpack-serve/v1/index.d.ts +++ b/types/webpack-serve/v1/index.d.ts @@ -1,10 +1,10 @@ /// import * as https from "https"; -import * as koa from "koa"; -import * as webpack from "webpack"; -import * as webpackDevMiddleware from "webpack-dev-middleware"; -import * as webpackHotClient from "webpack-hot-client"; +import koa = require("koa"); +import webpack = require("webpack"); +import webpackDevMiddleware = require("webpack-dev-middleware"); +import webpackHotClient = require("webpack-hot-client"); export = WebpackServe; diff --git a/types/webpack-stream/index.d.ts b/types/webpack-stream/index.d.ts index a2e7acfb527942..ff135f5b2fa751 100644 --- a/types/webpack-stream/index.d.ts +++ b/types/webpack-stream/index.d.ts @@ -1,6 +1,6 @@ /// -import * as webpack from "webpack"; +import webpack = require("webpack"); export = webpackStream; diff --git a/types/webpack-stream/webpack-stream-tests.ts b/types/webpack-stream/webpack-stream-tests.ts index bcfa9cd29a1550..20426654b8fb75 100644 --- a/types/webpack-stream/webpack-stream-tests.ts +++ b/types/webpack-stream/webpack-stream-tests.ts @@ -1,4 +1,4 @@ -import * as webpack from "webpack"; +import webpack from "webpack"; import webpackStream = require("webpack-stream"); let output: NodeJS.ReadWriteStream; diff --git a/types/website-scraper/index.d.ts b/types/website-scraper/index.d.ts index f276a9a912350f..0ed4a2a08b0c08 100644 --- a/types/website-scraper/index.d.ts +++ b/types/website-scraper/index.d.ts @@ -1,6 +1,6 @@ /// -import * as request from "request"; +import request = require("request"); declare namespace websiteScraper { interface Url { diff --git a/types/websocket-async/tsconfig.json b/types/websocket-async/tsconfig.json index 85bff5b3cee515..494370b555e423 100644 --- a/types/websocket-async/tsconfig.json +++ b/types/websocket-async/tsconfig.json @@ -13,7 +13,6 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true, - "esModuleInterop": true, "strictFunctionTypes": true }, "files": [ diff --git a/types/weighted-random-object/tsconfig.json b/types/weighted-random-object/tsconfig.json index d8c876b5338da3..0aaab979879bc9 100644 --- a/types/weighted-random-object/tsconfig.json +++ b/types/weighted-random-object/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/weixin-app/tsconfig.json b/types/weixin-app/tsconfig.json index eeb3549dff1b26..cbc0ea609a9532 100644 --- a/types/weixin-app/tsconfig.json +++ b/types/weixin-app/tsconfig.json @@ -11,8 +11,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/winbox/tsconfig.json b/types/winbox/tsconfig.json index 3e737c60cd70e6..2c7a7f67774edf 100644 --- a/types/winbox/tsconfig.json +++ b/types/winbox/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/window-size/tsconfig.json b/types/window-size/tsconfig.json index 78e8ce065a90ca..f45b4fc3cb7496 100644 --- a/types/window-size/tsconfig.json +++ b/types/window-size/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/windows-script-host/tsconfig.json b/types/windows-script-host/tsconfig.json index cd334ad27ec953..2368ac357bd23f 100644 --- a/types/windows-script-host/tsconfig.json +++ b/types/windows-script-host/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/wink-pos-tagger/tsconfig.json b/types/wink-pos-tagger/tsconfig.json index fca35895f44ef5..0743013501fc11 100644 --- a/types/wink-pos-tagger/tsconfig.json +++ b/types/wink-pos-tagger/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/wink-pos-tagger/wink-pos-tagger-tests.ts b/types/wink-pos-tagger/wink-pos-tagger-tests.ts index 35445d92ae6826..684307ba8c2aba 100644 --- a/types/wink-pos-tagger/wink-pos-tagger-tests.ts +++ b/types/wink-pos-tagger/wink-pos-tagger-tests.ts @@ -1,5 +1,5 @@ -import * as Tagger from "wink-pos-tagger"; -import * as Tokenizer from "wink-tokenizer"; +import Tagger from "wink-pos-tagger"; +import Tokenizer from "wink-tokenizer"; const myTagger = new Tagger(); const myTokenizer = new Tokenizer(); diff --git a/types/wink-tokenizer/tsconfig.json b/types/wink-tokenizer/tsconfig.json index 2e157bc979840b..86d9ebc11f1dc9 100644 --- a/types/wink-tokenizer/tsconfig.json +++ b/types/wink-tokenizer/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/wink-tokenizer/wink-tokenizer-tests.ts b/types/wink-tokenizer/wink-tokenizer-tests.ts index a706c39238c69d..0294c6ce220064 100644 --- a/types/wink-tokenizer/wink-tokenizer-tests.ts +++ b/types/wink-tokenizer/wink-tokenizer-tests.ts @@ -1,4 +1,4 @@ -import * as Tokenizer from "wink-tokenizer"; +import Tokenizer from "wink-tokenizer"; const tokenizer = new Tokenizer(); diff --git a/types/winston-loggly-bulk/tsconfig.json b/types/winston-loggly-bulk/tsconfig.json index 3b5d132949065a..816c11b53851bd 100644 --- a/types/winston-loggly-bulk/tsconfig.json +++ b/types/winston-loggly-bulk/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/winston-syslog/index.d.ts b/types/winston-syslog/index.d.ts index 9333deba5b50c9..fcc4d4d55c6c34 100644 --- a/types/winston-syslog/index.d.ts +++ b/types/winston-syslog/index.d.ts @@ -2,7 +2,7 @@ import * as dgram from "dgram"; import * as glossy from "glossy"; import * as net from "net"; -import * as Transport from "winston-transport"; +import Transport = require("winston-transport"); export interface SyslogTransportOptions extends Transport.TransportStreamOptions { host?: string | undefined; diff --git a/types/winston-syslog/v1/tsconfig.json b/types/winston-syslog/v1/tsconfig.json index 4c64d77478597b..efb15fef161c8f 100644 --- a/types/winston-syslog/v1/tsconfig.json +++ b/types/winston-syslog/v1/tsconfig.json @@ -10,7 +10,6 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "esModuleInterop": true, "forceConsistentCasingInFileNames": true }, "files": [ diff --git a/types/wordpress__admin/components/wp-backbone.d.ts b/types/wordpress__admin/components/wp-backbone.d.ts index 59c33391ddde35..249bdabb9c1471 100644 --- a/types/wordpress__admin/components/wp-backbone.d.ts +++ b/types/wordpress__admin/components/wp-backbone.d.ts @@ -1,5 +1,5 @@ import * as Backbone from "backbone"; -import * as _ from "lodash"; +import _ = require("lodash"); export type WpBackboneViewList = WpBackBoneView[] | { [key: string]: WpBackBoneView[] }; diff --git a/types/wordpress__block-editor/wordpress__block-editor-tests.tsx b/types/wordpress__block-editor/wordpress__block-editor-tests.tsx index 323c0458759b2c..ddc76ca13893c2 100644 --- a/types/wordpress__block-editor/wordpress__block-editor-tests.tsx +++ b/types/wordpress__block-editor/wordpress__block-editor-tests.tsx @@ -1,4 +1,4 @@ -import * as be from "@wordpress/block-editor"; +import be from "@wordpress/block-editor"; import * as UseBlockProps from "@wordpress/block-editor/components/use-block-props"; import { BlockInstance, createBlock } from "@wordpress/blocks"; import { dispatch, select } from "@wordpress/data"; diff --git a/types/wordpress__blocks/wordpress__blocks-tests.tsx b/types/wordpress__blocks/wordpress__blocks-tests.tsx index 9eccde5d0506f9..b9863663530dba 100644 --- a/types/wordpress__blocks/wordpress__blocks-tests.tsx +++ b/types/wordpress__blocks/wordpress__blocks-tests.tsx @@ -1,4 +1,4 @@ -import * as blocks from "@wordpress/blocks"; +import blocks from "@wordpress/blocks"; import { dispatch, select } from "@wordpress/data"; // $ExpectType BlocksStoreDescriptor diff --git a/types/wordpress__edit-post/wordpress__edit-post-tests.tsx b/types/wordpress__edit-post/wordpress__edit-post-tests.tsx index 54979530b25887..2cfd720db77ce6 100644 --- a/types/wordpress__edit-post/wordpress__edit-post-tests.tsx +++ b/types/wordpress__edit-post/wordpress__edit-post-tests.tsx @@ -1,5 +1,5 @@ import { dispatch, select } from "@wordpress/data"; -import * as ep from "@wordpress/edit-post"; +import ep from "@wordpress/edit-post"; // $ExpectType EditPostStoreDescriptor ep.store; diff --git a/types/worker-plugin/index.d.ts b/types/worker-plugin/index.d.ts index f26f1bb896d59d..3d9c8f55b2466b 100644 --- a/types/worker-plugin/index.d.ts +++ b/types/worker-plugin/index.d.ts @@ -1,4 +1,4 @@ -import * as webpack from "webpack"; +import webpack = require("webpack"); export = WorkerPlugin; diff --git a/types/wpapi/tsconfig.json b/types/wpapi/tsconfig.json index 969414769de839..608bc2c84541bd 100644 --- a/types/wpapi/tsconfig.json +++ b/types/wpapi/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "target": "ES6", - "module": "commonjs", + "module": "node16", "lib": [ "es6", "dom" diff --git a/types/wpapi/wpapi-tests.ts b/types/wpapi/wpapi-tests.ts index a53e7a9df50364..8fdd28b38c0f32 100644 --- a/types/wpapi/wpapi-tests.ts +++ b/types/wpapi/wpapi-tests.ts @@ -1,5 +1,5 @@ // Initialize the client -import * as WPAPI from "wpapi"; +import WPAPI from "wpapi"; const wp = new WPAPI({ endpoint: "http://src.wordpress-develop.dev/wp-json" }); diff --git a/types/wreck/index.d.ts b/types/wreck/index.d.ts index 1f4f92be0c7321..c7896fa749c916 100644 --- a/types/wreck/index.d.ts +++ b/types/wreck/index.d.ts @@ -1,9 +1,9 @@ /// -import * as Boom from "boom"; -import * as events from "events"; +import Boom = require("boom"); +import events = require("events"); import * as http from "http"; -import * as stream from "stream"; +import stream = require("stream"); import * as Url from "url"; interface RequestOptions { diff --git a/types/write-good/tsconfig.json b/types/write-good/tsconfig.json index b90bfb4fd22d54..fdc7fc0521d786 100644 --- a/types/write-good/tsconfig.json +++ b/types/write-good/tsconfig.json @@ -10,7 +10,6 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "esModuleInterop": true, "forceConsistentCasingInFileNames": true }, "files": [ diff --git a/types/wu/tsconfig.json b/types/wu/tsconfig.json index 9462e50b61eccd..fb5ff8bfc12b67 100644 --- a/types/wu/tsconfig.json +++ b/types/wu/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/xdate/tsconfig.json b/types/xdate/tsconfig.json index c3908beacb35df..031b9b9b7db210 100644 --- a/types/xdate/tsconfig.json +++ b/types/xdate/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/xdialog/tsconfig.json b/types/xdialog/tsconfig.json index 9abb0d9014e707..6e8d71ce690ff3 100644 --- a/types/xdialog/tsconfig.json +++ b/types/xdialog/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "DOM" @@ -11,8 +11,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/xml-c14n/tsconfig.json b/types/xml-c14n/tsconfig.json index 8c32f9482eb070..33e246f645fb9b 100644 --- a/types/xml-c14n/tsconfig.json +++ b/types/xml-c14n/tsconfig.json @@ -5,7 +5,6 @@ "es6", "dom" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, diff --git a/types/xml-flow/tsconfig.json b/types/xml-flow/tsconfig.json index 96bccc432ad6f4..b6be3408a5fee7 100644 --- a/types/xml-flow/tsconfig.json +++ b/types/xml-flow/tsconfig.json @@ -10,7 +10,6 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "esModuleInterop": true, "forceConsistentCasingInFileNames": true }, "files": [ diff --git a/types/xmpp__client-core/tsconfig.json b/types/xmpp__client-core/tsconfig.json index 6c780e737e96f4..c09a9bf8bf871e 100644 --- a/types/xmpp__client-core/tsconfig.json +++ b/types/xmpp__client-core/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__client/index.d.ts b/types/xmpp__client/index.d.ts index e2fa0144e48994..be081cedd75f52 100644 --- a/types/xmpp__client/index.d.ts +++ b/types/xmpp__client/index.d.ts @@ -8,7 +8,7 @@ import { Resource } from "@xmpp/resource-binding"; import { Credentials, SASL } from "@xmpp/sasl"; import { StreamFeatures } from "@xmpp/stream-features"; import { StreamManagement } from "@xmpp/stream-management"; -import * as koaCompose from "koa-compose"; +import koaCompose = require("koa-compose"); /** * An XMPP client is an entity that connects to an XMPP server. diff --git a/types/xmpp__client/tsconfig.json b/types/xmpp__client/tsconfig.json index 3913b1b5d765d0..b16eacc060ff3e 100644 --- a/types/xmpp__client/tsconfig.json +++ b/types/xmpp__client/tsconfig.json @@ -10,7 +10,8 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/xmpp__component-core/tsconfig.json b/types/xmpp__component-core/tsconfig.json index 33c098802ef9a7..72641d8e920538 100644 --- a/types/xmpp__component-core/tsconfig.json +++ b/types/xmpp__component-core/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__component/tsconfig.json b/types/xmpp__component/tsconfig.json index ff3b8a3a67b1f4..76e8eeb9ef1103 100644 --- a/types/xmpp__component/tsconfig.json +++ b/types/xmpp__component/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__connection-tcp/tsconfig.json b/types/xmpp__connection-tcp/tsconfig.json index 500e6935df9390..d94ae93d149eb3 100644 --- a/types/xmpp__connection-tcp/tsconfig.json +++ b/types/xmpp__connection-tcp/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__connection/tsconfig.json b/types/xmpp__connection/tsconfig.json index 0176fa1ea47121..238bf1abcae252 100644 --- a/types/xmpp__connection/tsconfig.json +++ b/types/xmpp__connection/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__debug/tsconfig.json b/types/xmpp__debug/tsconfig.json index ce3142bc88283e..a33d31f3573cd1 100644 --- a/types/xmpp__debug/tsconfig.json +++ b/types/xmpp__debug/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__error/tsconfig.json b/types/xmpp__error/tsconfig.json index 0646b6e8b2866d..eb95ddcb4656b5 100644 --- a/types/xmpp__error/tsconfig.json +++ b/types/xmpp__error/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__events/index.d.ts b/types/xmpp__events/index.d.ts index 9e70ffe62bced6..a592a9d85ee189 100644 --- a/types/xmpp__events/index.d.ts +++ b/types/xmpp__events/index.d.ts @@ -1,6 +1,6 @@ /// -import * as events from "events"; +import events = require("events"); export const EventEmitter: typeof events.EventEmitter; export type EventEmitter = events.EventEmitter; diff --git a/types/xmpp__iq/callee.d.ts b/types/xmpp__iq/callee.d.ts index 8471166506f6b1..56ed2dda49ee5c 100644 --- a/types/xmpp__iq/callee.d.ts +++ b/types/xmpp__iq/callee.d.ts @@ -1,5 +1,5 @@ import { Entity, IncomingContext, Middleware } from "@xmpp/middleware"; -import * as koaCompose from "koa-compose"; +import koaCompose = require("koa-compose"); export = iqCallee; diff --git a/types/xmpp__iq/tsconfig.json b/types/xmpp__iq/tsconfig.json index dc7ba75933a666..badab7daeaf168 100644 --- a/types/xmpp__iq/tsconfig.json +++ b/types/xmpp__iq/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__middleware/index.d.ts b/types/xmpp__middleware/index.d.ts index 52b39f8eb80f0c..76e3f7364c7045 100644 --- a/types/xmpp__middleware/index.d.ts +++ b/types/xmpp__middleware/index.d.ts @@ -1,4 +1,4 @@ -import * as koaCompose from "koa-compose"; +import koaCompose = require("koa-compose"); import Connection = require("@xmpp/connection"); import { Element } from "@xmpp/xml"; import IncomingCtx = require("./lib/IncomingContext"); diff --git a/types/xmpp__middleware/tsconfig.json b/types/xmpp__middleware/tsconfig.json index 5ffdb7ccca530c..dc4a13d8cc6e84 100644 --- a/types/xmpp__middleware/tsconfig.json +++ b/types/xmpp__middleware/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__reconnect/tsconfig.json b/types/xmpp__reconnect/tsconfig.json index b0f0270d5abaea..a5e86a2a53f77c 100644 --- a/types/xmpp__reconnect/tsconfig.json +++ b/types/xmpp__reconnect/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__resolve/tsconfig.json b/types/xmpp__resolve/tsconfig.json index 32de368d70822c..f64485a77a8566 100644 --- a/types/xmpp__resolve/tsconfig.json +++ b/types/xmpp__resolve/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__resource-binding/tsconfig.json b/types/xmpp__resource-binding/tsconfig.json index 586d288727ea46..f3f2c786f0fddd 100644 --- a/types/xmpp__resource-binding/tsconfig.json +++ b/types/xmpp__resource-binding/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__sasl-anonymous/tsconfig.json b/types/xmpp__sasl-anonymous/tsconfig.json index 8fd9c0b85c597d..5821bfbc5cf805 100644 --- a/types/xmpp__sasl-anonymous/tsconfig.json +++ b/types/xmpp__sasl-anonymous/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__sasl-plain/tsconfig.json b/types/xmpp__sasl-plain/tsconfig.json index d1685b91885ed0..ee687267ae029e 100644 --- a/types/xmpp__sasl-plain/tsconfig.json +++ b/types/xmpp__sasl-plain/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__sasl-scram-sha-1/tsconfig.json b/types/xmpp__sasl-scram-sha-1/tsconfig.json index ffda422e488a81..fbb7e97b02db6a 100644 --- a/types/xmpp__sasl-scram-sha-1/tsconfig.json +++ b/types/xmpp__sasl-scram-sha-1/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__sasl/tsconfig.json b/types/xmpp__sasl/tsconfig.json index 94e125a0d25ec6..5bfadde12e2101 100644 --- a/types/xmpp__sasl/tsconfig.json +++ b/types/xmpp__sasl/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__session-establishment/tsconfig.json b/types/xmpp__session-establishment/tsconfig.json index 1f958ef63878db..ae20c47af7448b 100644 --- a/types/xmpp__session-establishment/tsconfig.json +++ b/types/xmpp__session-establishment/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__starttls/tsconfig.json b/types/xmpp__starttls/tsconfig.json index c2933c1947db97..cf1d68878364a3 100644 --- a/types/xmpp__starttls/tsconfig.json +++ b/types/xmpp__starttls/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__stream-features/index.d.ts b/types/xmpp__stream-features/index.d.ts index 976f8ccbc1b842..38422d9c5c8331 100644 --- a/types/xmpp__stream-features/index.d.ts +++ b/types/xmpp__stream-features/index.d.ts @@ -1,7 +1,7 @@ import { Entity, IncomingContext, Middleware } from "@xmpp/middleware"; import { Element } from "@xmpp/xml"; -import * as Koa from "koa"; -import * as koaCompose from "koa-compose"; +import Koa = require("koa"); +import koaCompose = require("koa-compose"); export = streamFeatures; diff --git a/types/xmpp__stream-features/route.d.ts b/types/xmpp__stream-features/route.d.ts index e3a4cab558a97c..1f463e48d14e4d 100644 --- a/types/xmpp__stream-features/route.d.ts +++ b/types/xmpp__stream-features/route.d.ts @@ -1,5 +1,5 @@ import { Entity, IncomingContext } from "@xmpp/middleware"; -import * as Koa from "koa"; +import Koa = require("koa"); export = route; diff --git a/types/xmpp__stream-features/tsconfig.json b/types/xmpp__stream-features/tsconfig.json index ba224c2bc61045..9f8ba59d21fd45 100644 --- a/types/xmpp__stream-features/tsconfig.json +++ b/types/xmpp__stream-features/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__stream-management/tsconfig.json b/types/xmpp__stream-management/tsconfig.json index 567e04b2f43bd5..6242af0120a0d0 100644 --- a/types/xmpp__stream-management/tsconfig.json +++ b/types/xmpp__stream-management/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__tcp/tsconfig.json b/types/xmpp__tcp/tsconfig.json index 304db3331f6c32..cec6e295b41147 100644 --- a/types/xmpp__tcp/tsconfig.json +++ b/types/xmpp__tcp/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__tls/tsconfig.json b/types/xmpp__tls/tsconfig.json index 8634ee048d4ee7..4279e83b9d85ba 100644 --- a/types/xmpp__tls/tsconfig.json +++ b/types/xmpp__tls/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__websocket/tsconfig.json b/types/xmpp__websocket/tsconfig.json index 3b13fd509baeb3..54b74ecef2390b 100644 --- a/types/xmpp__websocket/tsconfig.json +++ b/types/xmpp__websocket/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/xmpp__xml/tsconfig.json b/types/xmpp__xml/tsconfig.json index ed439b4a4704f2..331a9ea33cd664 100644 --- a/types/xmpp__xml/tsconfig.json +++ b/types/xmpp__xml/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/yandex-maps/tsconfig.json b/types/yandex-maps/tsconfig.json index 46b8e105beb01f..4b63c7731c8736 100644 --- a/types/yandex-maps/tsconfig.json +++ b/types/yandex-maps/tsconfig.json @@ -11,7 +11,8 @@ "strictFunctionTypes": false, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/yargs-parser/tsconfig.json b/types/yargs-parser/tsconfig.json index 8e4577e14b70c4..97b0d5a2ad2b6f 100644 --- a/types/yargs-parser/tsconfig.json +++ b/types/yargs-parser/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "allowSyntheticDefaultImports": true, "module": "node16", "lib": [ diff --git a/types/yargs-parser/v11/tsconfig.json b/types/yargs-parser/v11/tsconfig.json index 8e4577e14b70c4..97b0d5a2ad2b6f 100644 --- a/types/yargs-parser/v11/tsconfig.json +++ b/types/yargs-parser/v11/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "allowSyntheticDefaultImports": true, "module": "node16", "lib": [ diff --git a/types/yargs-parser/v20/tsconfig.json b/types/yargs-parser/v20/tsconfig.json index 8e4577e14b70c4..97b0d5a2ad2b6f 100644 --- a/types/yargs-parser/v20/tsconfig.json +++ b/types/yargs-parser/v20/tsconfig.json @@ -1,6 +1,5 @@ { "compilerOptions": { - "esModuleInterop": true, "allowSyntheticDefaultImports": true, "module": "node16", "lib": [ diff --git a/types/yargs-unparser/tsconfig.json b/types/yargs-unparser/tsconfig.json index 7ca3987680eac1..0f67146ba895d0 100644 --- a/types/yargs-unparser/tsconfig.json +++ b/types/yargs-unparser/tsconfig.json @@ -10,8 +10,7 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", diff --git a/types/yargs/helpers.d.ts b/types/yargs/helpers.d.ts index b9a9146a662025..36481a7c7187ed 100644 --- a/types/yargs/helpers.d.ts +++ b/types/yargs/helpers.d.ts @@ -1,4 +1,4 @@ -import * as Parser from "yargs-parser"; +import Parser = require("yargs-parser"); export function applyExtends(config: Record, cwd: string, mergeExtends: boolean): Record; export function hideBin(argv: string[]): string[]; diff --git a/types/yargs/tsconfig.json b/types/yargs/tsconfig.json index e3c98fde6260e7..94d74253508048 100644 --- a/types/yargs/tsconfig.json +++ b/types/yargs/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/yargs/v16/helpers.d.ts b/types/yargs/v16/helpers.d.ts index b9a9146a662025..36481a7c7187ed 100644 --- a/types/yargs/v16/helpers.d.ts +++ b/types/yargs/v16/helpers.d.ts @@ -1,4 +1,4 @@ -import * as Parser from "yargs-parser"; +import Parser = require("yargs-parser"); export function applyExtends(config: Record, cwd: string, mergeExtends: boolean): Record; export function hideBin(argv: string[]): string[]; diff --git a/types/yargs/v16/tsconfig.json b/types/yargs/v16/tsconfig.json index e3c98fde6260e7..94d74253508048 100644 --- a/types/yargs/v16/tsconfig.json +++ b/types/yargs/v16/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/yeast/tsconfig.json b/types/yeast/tsconfig.json index ae863ee3286015..9964098211cb58 100644 --- a/types/yeast/tsconfig.json +++ b/types/yeast/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/yeast/yeast-tests.ts b/types/yeast/yeast-tests.ts index c2f0df4a1503e0..241eca5712ff91 100644 --- a/types/yeast/yeast-tests.ts +++ b/types/yeast/yeast-tests.ts @@ -1,4 +1,4 @@ -import * as yeast from "yeast"; +import yeast from "yeast"; yeast.encode(123); // $ExpectType string yeast.decode("abc"); // $ExpectType number diff --git a/types/yesql/tsconfig.json b/types/yesql/tsconfig.json index 3f1c8a7d3b4f00..5c04a7e02cf356 100644 --- a/types/yesql/tsconfig.json +++ b/types/yesql/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/yesql/yesql-tests.ts b/types/yesql/yesql-tests.ts index 4e06b7799c71ff..119297893a9d7a 100644 --- a/types/yesql/yesql-tests.ts +++ b/types/yesql/yesql-tests.ts @@ -1,4 +1,4 @@ -import * as yesql from "yesql"; +import yesql from "yesql"; yesql(""); // $ExpectType string yesql("", { pg: true }); // $ExpectType string diff --git a/types/yog2-kernel/index.d.ts b/types/yog2-kernel/index.d.ts index eaaa926355ea12..0199b4e4fd55bb 100644 --- a/types/yog2-kernel/index.d.ts +++ b/types/yog2-kernel/index.d.ts @@ -1,8 +1,8 @@ -import * as express from "express"; -import * as _ from "lodash"; +import express = require("express"); +import _ = require("lodash"); import * as ral from "node-ral"; -import * as yogBigpipe from "yog-bigpipe"; -import * as log from "yog-log"; +import yogBigpipe = require("yog-bigpipe"); +import log = require("yog-log"); export as namespace yog; declare namespace yog { diff --git a/types/ysdk/tsconfig.json b/types/ysdk/tsconfig.json index 858760ffb58822..c2aced91ccda8d 100644 --- a/types/ysdk/tsconfig.json +++ b/types/ysdk/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6", "DOM" diff --git a/types/yt-search/tsconfig.json b/types/yt-search/tsconfig.json index 1f0b0b5208ef96..ac59d2405be372 100644 --- a/types/yt-search/tsconfig.json +++ b/types/yt-search/tsconfig.json @@ -4,7 +4,6 @@ "lib": [ "es6" ], - "esModuleInterop": true, "noImplicitAny": true, "noImplicitThis": true, "strictFunctionTypes": true, diff --git a/types/zalgo-promise/tsconfig.json b/types/zalgo-promise/tsconfig.json index 78b08f359e9599..d2695b65dcff8e 100644 --- a/types/zalgo-promise/tsconfig.json +++ b/types/zalgo-promise/tsconfig.json @@ -11,7 +11,8 @@ "strictNullChecks": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts", diff --git a/types/zen-push/index.d.ts b/types/zen-push/index.d.ts index 56d52141c3b4f8..e87165d077d5bb 100644 --- a/types/zen-push/index.d.ts +++ b/types/zen-push/index.d.ts @@ -1,4 +1,4 @@ -import * as Observable from "zen-observable"; +import Observable = require("zen-observable"); declare class PushStream { readonly observable: Observable; diff --git a/types/zip-webpack-plugin/tsconfig.json b/types/zip-webpack-plugin/tsconfig.json index cebb1c3cd04714..d3f923d518f86b 100644 --- a/types/zip-webpack-plugin/tsconfig.json +++ b/types/zip-webpack-plugin/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "module": "commonjs", + "module": "node16", "lib": [ "es6" ], diff --git a/types/zip-webpack-plugin/zip-webpack-plugin-tests.ts b/types/zip-webpack-plugin/zip-webpack-plugin-tests.ts index d8db63bdc30504..8801318f3ca3cd 100644 --- a/types/zip-webpack-plugin/zip-webpack-plugin-tests.ts +++ b/types/zip-webpack-plugin/zip-webpack-plugin-tests.ts @@ -1,4 +1,4 @@ -import * as ZipPlugin from "zip-webpack-plugin"; +import ZipPlugin from "zip-webpack-plugin"; new ZipPlugin(); diff --git a/types/zxcvbn/tsconfig.json b/types/zxcvbn/tsconfig.json index 8b27e27abc114d..71a0620c400d20 100644 --- a/types/zxcvbn/tsconfig.json +++ b/types/zxcvbn/tsconfig.json @@ -10,8 +10,7 @@ "strictFunctionTypes": true, "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true, - "esModuleInterop": true + "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts",