#global types on a workspace with microfrontendds
6 messages · Page 1 of 1 (latest)
Sure, though it will depend a bit on your environment and what specifically you’re looking for. Is this one package or multiple? If a monorepo, what tooling are you using to manage it (npm workspaces, Nx, etc)? Do you want the types available ambiently in the global scope, or do you want to be importing these types?
I'm currently usingg monorepos using yarn workspaces (v2) and would l ike them available in the global scope as aposed to importing the type
Should be doable by implementing the types in a local package that’s added as a dependency, and then adding it via the “types” property in your tsconfig
should I specifiy the package name or the type itself?
Actually, I think it’d be typeRoots https://www.typescriptlang.org/tsconfig#typeRoots
From allowJs to useDefineForClassFields the TSConfig reference includes information about all of the active compiler flags setting up a TypeScript project.