quick-lint-js icon indicating copy to clipboard operation
quick-lint-js copied to clipboard

10$: Error on invalid TypeScript 'export default'

Open strager opened this issue 3 years ago • 0 comments

The following export statements are illegal in TypeScript. We should report a nice diagnostic.

export default namespace ns {}  // error
export default enum e {}  // error
export default type T = any;  // error
export default import A = ns.B;  // error

strager avatar Jul 23 '22 01:07 strager