tsc编译错误'error TS1008: Unexpected token; 'module, class, interface, enum, import or statement' expect
摘要:
给遗留的JS代码写了类型声明,兴冲冲地跑去编译,结果报了一堆错,人都傻了: H:\project\dataStore.d.ts(1,9): error TS1005: ';' expected. H:\project\dataStore.d.ts(1,19): error TS1005: ';' e 阅读全文