You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(api-extractor): preserve export keyword for namespace re-exports
When a namespace contains `export { Foo, Bar };` re-export declarations,
api-extractor was incorrectly stripping the `export` keyword, producing
`{ Foo, Bar, };` which is syntactically invalid TypeScript (TS1109).
This fix checks if an ExportKeyword is part of an ExportDeclaration that
is inside a ModuleBlock (namespace body), and if so, preserves it instead
of stripping it.
Fixes#5516
0 commit comments