We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export =
// type1.d.ts declare namespace NS { type A = object; } export = NS; export as namespace MyTypes;
// type2.d.ts import type * as NS from 'moduleA'; export = NS; export as namespace ModuleATypes;
TS1282: An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but 'NS' only refers to a type.
compile success
The text was updated successfully, but these errors were encountered:
verbatimModuleSyntax
andrewbranch
Successfully merging a pull request may close this issue.
Bug Report
We can no longer use
export =
in a d.ts file when 'verbatimModuleSyntax' is enabled ?Should the 'verbatimModuleSyntax' check the d.ts file?
The d.ts file has no any side effects.
TS Version: 5.0.1-rc
💻 Code
🙁 Actual behavior
TS1282: An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but 'NS' only refers to a type.
🙂 Expected behavior
compile success
The text was updated successfully, but these errors were encountered: