better-docs
better-docs copied to clipboard
Non-annotated properties ignored in typescript
Given:
class Foo {
/** @param bar some-info */
constructor({ bar = 'bar' }: { bar: string }) { }
baz(something:string) {}
}
Gives following output:

As you can see, it's ignoring those parts that do not have js-doc comments.
- i.e. the method
bazis completely ignored/undocumented - i.e. the constructor is docummented because it has a jsdoc comment BUT the Parameter types (which are set via typescript notation) are ignored.
I'd exept a "native" typescript support?
related to #115