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
Trying to import them directly from the dist path fails with ERR_PACKAGE_PATH_NOT_EXPORTED:
import{blockTags}from'typedoc/dist/lib/utils/options/tsdoc-defaults.js';// Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/lib/utils/options/tsdoc-defaults.js' is not defined by "exports" in /home/[...]/node_modules/typedoc/package.json imported from /home/[...]/scripts/docs.ts
Suggested Solution
Export the default blockTags (and maybe also the other default tags) to allow to import and extend them.
Search Terms
Allow extending of the
blockTags
(and maybeinlineTags
and others too) array.Problem
Using blockTags config option it's already possible to overwrite the default blockTags definition. But extending them is currently not possible.
Of cause you could just copy&paste the default
blockTags
but it doesn't feel right and needs to be checked/updated on each TypeDoc update.I'm using TypeDoc as node module by calling
The I saw that the default
blockTags
are defined in:typedoc/src/lib/utils/options/tsdoc-defaults.ts
Lines 16 to 39 in c1fb5bd
Trying to import them directly from the dist path fails with
ERR_PACKAGE_PATH_NOT_EXPORTED
:Suggested Solution
Export the default
blockTags
(and maybe also the other default tags) to allow to import and extend them.Example of possible use:
The text was updated successfully, but these errors were encountered: