From f368a2dbfdd73511fbde3ab961ec111ce0486646 Mon Sep 17 00:00:00 2001 From: Christian Sporer Date: Sun, 2 Dec 2018 20:01:52 +0100 Subject: [PATCH] Adaptations according to the ES6 spec: * https://github.com/definitelyTyped/DefinitelyTyped/#should-i-add-an-empty-namespace-to-a-package-that-doesnt-export-a-module-to-use-es6-style-imports * https://stackoverflow.com/a/39415662 * https://github.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript#support-for-import-d-from-cjs-form-commonjs-modules-with---esmoduleinterop --- types/list-stream/list-stream-tests.ts | 2 +- types/list-stream/tsconfig.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/types/list-stream/list-stream-tests.ts b/types/list-stream/list-stream-tests.ts index 5f04626b31..3648097ad6 100644 --- a/types/list-stream/list-stream-tests.ts +++ b/types/list-stream/list-stream-tests.ts @@ -1,4 +1,4 @@ -import * as ListStream from "list-stream"; +import ListStream from "list-stream"; let chunk: any = "chunk"; let listStream: ListStream; diff --git a/types/list-stream/tsconfig.json b/types/list-stream/tsconfig.json index 52ec1c73e1..060c211379 100644 --- a/types/list-stream/tsconfig.json +++ b/types/list-stream/tsconfig.json @@ -14,7 +14,8 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts",