JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 36585
  • Score
    100M100P100Q159487F
  • License MIT

A TypeDoc plugin that renames the `default` exports to their original name

Package Exports

  • typedoc-plugin-rename-defaults

Readme

typedoc-plugin-rename-defaults

A TypeDoc plugin that renames the default exports to their original name.

Why?

Since TypeDoc 0.20, the default exports fields do not get documented with their original names, but with the name "default". This plugin restores the behavior of TypeDoc 0.19 by keeping the original field name in the documentation. See typedoc#1521 for more context.

Usage

Install the plugin:

npm install --save-dev typedoc-plugin-rename-defaults

Then, add --plugin typedoc-plugin-rename-defaults (required since TypeDoc 0.24) and --entrypointStrategy expand (required since TypeDoc 0.22) to the typedoc command. Example:

// package.json

{
  "scripts": {
    "build-docs": "typedoc --plugin typedoc-plugin-rename-defaults --entryPointStrategy expand src/"
  }
}

Credits

The initial implementation of this plugin was proposed by @Gerrit0 at typedoc#1521.