You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should probably enable the isolatedModules TypeScript configuration option if you use TypeScript with esbuild. This prevents you from using features which could cause mis-compilation in environments like esbuild where each file is compiled independently without tracing type references across files. For example, it prevents you from re-exporting types from another module using export {T} from './types' (you need to use export type {T} from './types' instead).
Reproduction
https://github.com/CHOYSEN/esbuild-types-issue
b.ts
export interfaceCar
a.ts
importCar
then export it, should it be erasure?It works as my expect when
a.ts
doesn't exportCar
The text was updated successfully, but these errors were encountered: