- Added a TS AST transformer to support import types in
@implements
JSDoc tags. This allows you to reference an interface from a class and have it properly converted toimplements <INTERFACE>
in the declarations generated. - Added
transformer
"meta-transformer" to reduce the boilerplate of creating custom TS AST transformers.
- Added a new internal AST transformer that corrects the output of the TS compiler for setter accessor parameter names.
The TS compiler for ESM will rename setter accessor parameter names to
arg
regardless of the value set in the source file. If there is a JSDoc comment associated with a setter the first@param
tag name will be set to the AST node param name. Downstream tooling such as TypeDoc0.25.7+
validates comment /@param
name against the type declaration name; this change fixes that mismatch.
-
Added
@module
/@packageDocumentation
comment pass-through to generated DTS when this comment type appears in the main entry point source file. This is helpful when generating docs from the DTS file. -
Introduces optional postprocessing of the generated bundled Typescript declaration.
- First post processor is for
@inheritDoc
support.
- First post processor is for
-
Added
outputPostprocess
configuration option to separately output postprocessing to an alternate filepath for easier debugging / comparison.
- Support for
.mjs
source files.- Caveat: when using
import types
you must specify the.mjs
extension like:@param {import('./AFile.mjs').ASymbol}
- Caveat: when using
- Initial beta release