示例工程 31-tsconfig-build-pipeline

31-tsconfig-build-pipeline/03-isolated-verbatim/demo/reexport.ts

typescript · 0.2 KB

运行:31 · isolated-verbatim

点击「运行示例」后,左侧显示源码、右侧显示运行结果;console 输出会实时回传。

// 故意写错:重导出类型未使用 export type。
// 期望 tsc 报 TS1205(由 tsconfig.fail-verbatim.json 触发)。
import { Shape } from '../src/types.js';
 
export { Shape };