angular / dgeni-packages

A collection of dgeni packages for generating documentation from source code.
MIT License
142 stars 106 forks source link

typescript: possibility to specify type format flags #276

Closed devversion closed 5 years ago

devversion commented 5 years ago

In some API doc type classes, the TypeScript package just uses the plain typeToString method. By default this method truncates long types and therefore causes unexpected results.

We should allow users to overwrite the typeToString logic using the recently introduced Host class. Probably in the future it might be worth passing NoTruncation by default.

https://github.com/angular/dgeni-packages/blob/master/typescript/src/api-doc-types/ConstExportDoc.ts#L22

devversion commented 5 years ago

Closed with https://github.com/angular/dgeni-packages/commit/5d90fd9f31541f380a62a52fd31493b232b9585c