JavaScript imports in Typescript
Typescript folks!
Is there any way to get TS to be OK with JS imports? I accept that they will be opaque, and all the red is distracting.
I have allowJs set to true in my tsconfig.

1978 views
Typescript folks!
Is there any way to get TS to be OK with JS imports? I accept that they will be opaque, and all the red is distracting.
I have allowJs set to true in my tsconfig.

1978 views
Create a .d.ts (the name doesn't matter, just the extension) file in your repository that has the following contents:
declare module "@.components/*";