jleyba / js-dossier

A JavaScript documentation generation tool.
Apache License 2.0
150 stars 15 forks source link

appearance of generic (template) types #105

Open myphysicslab opened 7 years ago

myphysicslab commented 7 years ago

When a generic type is involved, the type is not shown consistently.

Here the docs show (T|null) when the parameter is the template type T. For example: https://www.myphysicslab.com/develop/docs/myphysicslab.lab.util.HistoryList.html#store

On the other hand, this method shows just T as the return type, which is correct: https://www.myphysicslab.com/develop/docs/myphysicslab.lab.util.HistoryList.html#getValue

For a case where the type is ?T (either null or the generic type) the type is shown as just ? https://www.myphysicslab.com/develop/docs/myphysicslab.lab.util.HistoryList.html#getEndValue