typedoc-plugin-markdown
: beautify parameter table and signature title output of destructured params
#364
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
First off, thank you for typedoc and typedoc-plugin-markdown, they've done wonders for my documentation game :)
So I've been using a forked version of the typedoc-plugin-markdown package that updates how destructured parameters are represented in Markdown.
For example:
Yields (using my fork):
deleteme
▸ deleteme(
...«destructured»
): voidParameters
...«destructured»
Returns
void
Defined in
index.ts:8
deleteme2
▸ deleteme2(
«destructured»?
,state
,fate
): voidParameters
«destructured»
a?
b?
state
fate
Returns
void
Defined in
index.ts:12
deleteme3
▸ deleteme3(
«destructured»?
,«destructured»?
,state
,fate
,«destructured»?
): voidParameters
«destructured»
a?
b?
«destructured»
c?
d?
state
fate
«destructured»
e?
f?
Returns
void
Defined in
index.ts:20
Yields (not using my fork):
deleteme
▸ deleteme(...
__namedParameters
):void
Parameters
...__namedParameters
number
,string
]Returns
void
Defined in
index.ts:8
deleteme2
▸ deleteme2(
__namedParameters?
,state
,fate
):void
Parameters
__namedParameters
Object
__namedParameters.a?
boolean
__namedParameters.b?
boolean
state
boolean
fate
number
Returns
void
Defined in
index.ts:12
deleteme3
▸ deleteme3(
__namedParameters?
,__namedParameters?
,state
,fate
,__namedParameters?
):void
Parameters
__namedParameters
Object
__namedParameters.a?
boolean
__namedParameters.b?
boolean
__namedParameters
Object
__namedParameters.c?
boolean
__namedParameters.d?
boolean
state
boolean
fate
number
__namedParameters
Object
__namedParameters.e?
boolean
__namedParameters.f?
boolean
Returns
void
Defined in
index.ts:20
Along with updated tests, I'm currently using my forked version across several projects if you want to test it out real quick:
npm install --save-dev https://xunn.at/typedoc-plugin-markdown npx typedoc --plugin typedoc-plugin-markdown --out demo --readme none './src/*'