diff --git a/types/smooth-scroll/test/smooth-scroll.test.ts b/types/smooth-scroll/test/smooth-scroll.test.ts index 894790f744..cb29191943 100644 --- a/types/smooth-scroll/test/smooth-scroll.test.ts +++ b/types/smooth-scroll/test/smooth-scroll.test.ts @@ -1,4 +1,4 @@ -import * as SmoothScroll from "smooth-scroll"; +import SmoothScroll from "smooth-scroll"; // Initialize and destroy SmoothScroll const example1 = new SmoothScroll('a[href*="#"]', { diff --git a/types/smooth-scroll/tsconfig.json b/types/smooth-scroll/tsconfig.json index 8d1fa8372b..a6ebdde30b 100644 --- a/types/smooth-scroll/tsconfig.json +++ b/types/smooth-scroll/tsconfig.json @@ -10,7 +10,8 @@ "typeRoots": ["../"], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "esModuleInterop": true }, "files": [ "index.d.ts",