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 *
export [type] * as Foobar from "./foo" parses to the following (simplified). Trying to print it back into code adds an extra pair of curly braces.
export [type] * as Foobar from "./foo"
import recast from 'recast' for (const exportKind of ["value", "type"]) { console.log(recast.print({ type: 'ExportNamedDeclaration', exportKind, specifiers: [ { type: 'ExportNamespaceSpecifier', exported: { type: 'Identifier', name: 'Foobar' } } ], source: { type: 'StringLiteral', value: './foo', } }).code) }
Expected:
export * as Foobar from "./foo"; export type * as Foobar from "./foo";
Actual:
export { * as Foobar } from "./foo"; export type { * as Foobar } from "./foo";
Context:
I'm trying to modify some .d.mts files, and TS balks at the extra curly braces.
.d.mts
The text was updated successfully, but these errors were encountered:
fix: print export namespace specifiers without braces
bc87a95
Fixes #1390
Fixed in v0.23.6.
Sorry, something went wrong.
ad807dc
Fixes benjamn#1390
Successfully merging a pull request may close this issue.
export [type] * as Foobar from "./foo"
parses to the following (simplified). Trying to print it back into code adds an extra pair of curly braces.Expected:
Actual:
Context:
I'm trying to modify some
.d.mts
files, and TS balks at the extra curly braces.The text was updated successfully, but these errors were encountered: