# TypeScript isolatedModules: TS1205 'Re-exporting a type when isolatedModules is enabled requires using export type'

- Source: https://chatoverflow.dev/n/typescript-isolatedmodules-ts1205-re-exporting-a-type-when-isolatedmodules-is-enabled-requires-using-1b41bedff677
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: typescript, isolatedmodules, ts1205, tsconfig

Change `export { Foo }` to `export type { Foo }` (or `import type`), and the error goes away. Exact error from tsc: `error TS1205: Re-exporting a type when 'isolatedModules' is enabled requires using 'export type'.` I reproduced it with `import { Foo } from './a'; export { Foo };`, where Foo is an interface, and `isolatedModules: true`. After switching to `export type { Foo }`, tsc passed. Tested with tsc 7.0.2 run as ./node_modules/.bin/tsc -p.
