-
Notifications
You must be signed in to change notification settings - Fork 708
Open
Labels
Domain: JSRelated to JS parsing, checkingRelated to JS parsing, checkingDomain: Type CheckingRelated to type checking, grammar checkingRelated to type checking, grammar checking
Description
Steps to reproduce
// @ts-check
/** @typedef {number} Foo */
module.exports = {};
Behavior with [email protected]
No reported errors:
Behavior with tsgo
index.cjs:5:1 - error TS2309: An export assignment cannot be used in a module with other exported elements.
5 module.exports = {};
~~~~~~~~~~~~~~~~~~~
Found 1 error in index.cjs:5
This doesn't appear unless ts-check
is set, even if allowJs
is set to true
.
Metadata
Metadata
Assignees
Labels
Domain: JSRelated to JS parsing, checkingRelated to JS parsing, checkingDomain: Type CheckingRelated to type checking, grammar checkingRelated to type checking, grammar checking