webdoc-labs / webdoc

Documentation generator for the web
https://www.webdoclabs.com
Other
79 stars 9 forks source link

Does not infer types for TypeScript interfaces #100

Closed bigtimebuddy closed 3 years ago

bigtimebuddy commented 3 years ago

Webdoc does not property infer types for interfaces in TypeScript. Here's an example. The paused property shows up correctly in the docs, but without a type.

/** Description */
interface IMediaInstance
{
    /** Property description */
    paused: boolean;
}

Workaround:

/** Description */
interface IMediaInstance
{
    /**
     * Property description
     * @type {boolean}
     */
    paused: boolean;
}