@ts2doc/components
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

@ts2doc/components

This package contains the components used by the @ts2doc/storybook-addon package.

See @ts2doc documentation.

Example

Interface example

Is displayed from the following TypeScript interface:

/**
 * A movie is a piece of media that is intended to be viewed as a film.
 * @link https://wikipedia.org/wiki/Film | Useful link
 */
export interface Movie extends Media {
    /**
     * The title of the movie
     */
    readonly title: string;
    /**
     * The year the movie was released
     * @type {Date}
     */
    year: number;
    /**
     * The rating of the movie
     * @link https://wikipedia.org/wiki/Film_rating_system Film rating system
     * @default 0
     */
    rating?: number;
    genres: string[];
    /**
     * The actors in the movie
     */
    cast: Actor[];
    /**
     * @deprecated
     */
    director: Director;
}

Package Sidebar

Install

npm i @ts2doc/components

Weekly Downloads

99

Version

0.3.2

License

MIT

Unpacked Size

16.5 kB

Total Files

16

Last publish

Collaborators

  • jpiazzal