export default
default export ...
, the type of fn can't be export. (The result is not expected.)//index.exportByWrapInDefault.ts
export * from "./utils/index";
import * as utils from "./utils"
export default { ...utils };
The type of fn cann't be export.
//index.export.ts
export * from "./utils/index";
npm run doc-existDefaultExport
npm run doc-noDefaultExport
This is an unfortunate interaction, but is working as designed. TypeDoc converts re-exports after exports since it produces better results for the majority of projects... however, because you introduced a default export, that's not a re-export and is converted first. If you export default utils
instead of export default { ...utils }
the result is better.
It might be worth experimenting with always converting default exports last...
Owner Name | TypeStrong |
Repo Name | typedoc |
Full Name | TypeStrong/typedoc |
Language | TypeScript |
Created Date | 2014-05-24 |
Updated Date | 2023-03-19 |
Star Count | 6487 |
Watcher Count | 68 |
Fork Count | 639 |
Issue Count | 48 |
Issue Title | Created Date | Updated Date |
---|