-
|
I'm trying to import a TypeScript Here is my setup
I assume, that during the compilation to I'm just wondering how I can type my TS modules without including all types in the same page (types are reused over multiple modules). I did see the warning: But I still would want my modules using types in VS. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
Would I need to run the Thanks for a quick explainer! |
Beta Was this translation helpful? Give feedback.
-
|
You need to use import type {IGenericVizStyles} from "../types.js";Or: import {type IGenericVizStyles} from "../types.js"; |
Beta Was this translation helpful? Give feedback.
You need to use
import type(“type-only imports”) when importing a type. Either:Or: