typedoc
Create api documentation for TypeScript projects.
Last updated 2 years ago by typedoc-bot .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install typedoc 
SYNC missed versions from official npm registry.

TypeDoc

Documentation generator for TypeScript projects.

CI NPM Version

Documentation

For more detailed documentation, the changelog, and TypeDoc documentation rendered with TypeDoc, see https://typedoc.org.

Installation

TypeDoc runs on Node.js and is available as a NPM package.

npm install typedoc --save-dev

Usage

To generate documentation TypeDoc needs to know your project entry point, and TypeScript compiler options. It will automatically try to find your tsconfig.json file, so you can just specify the entry point of your library:

typedoc src/index.ts

If you have multiple entry points, specify each of them.

typedoc package1/index.ts package2/index.ts

If you specify a directory, TypeDoc will use the entryPointStrategy option to determine how to resolve it. By default, TypeDoc will search for a file called index under the directory.

Monorepos / Workspaces

If your codebase is comprised of one or more npm packages, you can pass the paths to these packages and TypeDoc will attempt to determine entry points based on package.json's main property (with default value index.js) and if it wasn't found, based on types property. If any of the packages given are the root of an npm Workspace or a Yarn Workspace TypeDoc will find all the workspaces defined in the package.json. In order to find your entry points, TypeDoc requires either that you turn on sourcemaps so that it can discover the original TS file, or that you specify "typedocMain": "src/index.ts" to explicitly state where the package entry point is. Supports wildcard paths in the same fashion as those found in npm or Yarn workspaces.

Single npm module

typedoc --entryPointStrategy packages .

Monorepo with npm/Yarn workspace at the root

typedoc --entryPointStrategy packages .

Monorepo with manually specified sub-packages to document

This can be useful if you do not want all your workspaces to be processed. Accepts the same paths as would go in the package.json's workspaces

# Note the single quotes prevent shell wildcard expansion, allowing typedoc to do the expansion
typedoc --entryPointStrategy packages a-package 'some-more-packages/*' 'some-other-packages/*'

Arguments

For a complete list of the command line arguments run typedoc --help or visit our website.

  • --out <path/to/documentation/>
    Specifies the location the documentation should be written to. Defaults to ./docs
  • --json <path/to/output.json>
    Specifies the location and file name a json file describing the project is written to. When specified no documentation will be generated unless --out is also specified.
  • --options
    Specify a json option file that should be loaded. If not specified TypeDoc will look for 'typedoc.json' in the current directory.
  • --tsconfig <path/to/tsconfig.json>
    Specify a typescript config file that should be loaded. If not specified TypeDoc will look for 'tsconfig.json' in the current directory.
  • --exclude <pattern>
    Exclude files by the given pattern when a path is provided as source. Supports standard minimatch patterns.

Theming

  • --theme <default|plugin defined theme>
    Specify the theme that should be used.
  • --name <Documentation title>
    Set the name of the project that will be used in the header of the template.
  • --readme <path/to/readme|none>
    Path to the readme file that should be displayed on the index page. Pass none to disable the index page and start the documentation on the globals page.

Miscellaneous

  • --version
    Display the version number of TypeDoc.
  • --help
    Display all TypeDoc options.

Contributing

This project is maintained by a community of developers. Contributions are welcome and appreciated. You can find TypeDoc on GitHub; feel free to open an issue or create a pull request: https://github.com/TypeStrong/typedoc

For more information, read the contribution guide.

Current Tags

  • 0.26.0-beta.5                                ...           beta (5 months ago)
  • 0.26.8                                ...           latest (a month ago)
  • 0.22.15                                ...           lts (3 years ago)

310 Versions

  • 0.26.8                                ...           a month ago
  • 0.26.7                                ...           2 months ago
  • 0.26.6                                ...           3 months ago
  • 0.26.5                                ...           4 months ago
  • 0.26.4                                ...           4 months ago
  • 0.26.3                                ...           5 months ago
  • 0.26.2                                ...           5 months ago
  • 0.26.1                                ...           5 months ago
  • 0.26.0                                ...           5 months ago
  • 0.26.0-beta.5                                ...           5 months ago
  • 0.26.0-beta.4                                ...           5 months ago
  • 0.26.0-beta.3                                ...           5 months ago
  • 0.26.0-beta.2                                ...           5 months ago
  • 0.26.0-beta.1                                ...           6 months ago
  • 0.26.0-beta.0                                ...           6 months ago
  • 0.25.13                                ...           7 months ago
  • 0.25.12                                ...           8 months ago
  • 0.25.11                                ...           8 months ago
  • 0.25.10                                ...           8 months ago
  • 0.25.9                                ...           9 months ago
  • 0.25.8                                ...           9 months ago
  • 0.25.7                                ...           10 months ago
  • 0.25.6                                ...           10 months ago
  • 0.25.5                                ...           10 months ago
  • 0.25.4                                ...           a year ago
  • 0.25.3                                ...           a year ago
  • 0.25.2                                ...           a year ago
  • 0.25.1                                ...           a year ago
  • 0.25.0                                ...           a year ago
  • 0.24.8                                ...           a year ago
  • 0.24.7                                ...           2 years ago
  • 0.24.6                                ...           2 years ago
  • 0.24.5                                ...           2 years ago
  • 0.24.4                                ...           2 years ago
  • 0.24.3                                ...           2 years ago
  • 0.24.2                                ...           2 years ago
  • 0.24.1                                ...           2 years ago
  • 0.24.0                                ...           2 years ago
  • 0.24.0-beta.8                                ...           2 years ago
  • 0.24.0-beta.7                                ...           2 years ago
  • 0.24.0-beta.6                                ...           2 years ago
  • 0.24.0-beta.5                                ...           2 years ago
  • 0.24.0-beta.4                                ...           2 years ago
  • 0.23.28                                ...           2 years ago
  • 0.23.27                                ...           2 years ago
  • 0.24.0-beta.3                                ...           2 years ago
  • 0.24.0-beta.2                                ...           2 years ago
  • 0.24.0-beta.1                                ...           2 years ago
  • 0.23.26                                ...           2 years ago
  • 0.23.25                                ...           2 years ago
  • 0.23.24                                ...           2 years ago
  • 0.23.23                                ...           2 years ago
  • 0.23.22                                ...           2 years ago
  • 0.23.21                                ...           2 years ago
  • 0.23.20                                ...           2 years ago
  • 0.23.19                                ...           2 years ago
  • 0.23.18                                ...           2 years ago
  • 0.23.17                                ...           2 years ago
  • 0.23.16                                ...           2 years ago
  • 0.23.15                                ...           2 years ago
  • 0.23.14                                ...           2 years ago
  • 0.23.13                                ...           2 years ago
  • 0.23.12                                ...           2 years ago
  • 0.23.11                                ...           2 years ago
  • 0.23.10                                ...           2 years ago
  • 0.23.9                                ...           2 years ago
  • 0.23.8                                ...           2 years ago
  • 0.23.7                                ...           2 years ago
  • 0.23.6                                ...           2 years ago
  • 0.23.5                                ...           2 years ago
  • 0.23.4                                ...           2 years ago
  • 0.23.3                                ...           2 years ago
  • 0.23.2                                ...           2 years ago
  • 0.23.1                                ...           2 years ago
  • 0.23.0                                ...           2 years ago
  • 0.23.0-beta.7                                ...           2 years ago
  • 0.23.0-beta.6                                ...           2 years ago
  • 0.22.18                                ...           2 years ago
  • 0.23.0-beta.5                                ...           2 years ago
  • 0.23.0-beta.4                                ...           2 years ago
  • 0.23.0-beta.3                                ...           2 years ago
  • 0.22.17                                ...           2 years ago
  • 0.23.0-beta.2                                ...           2 years ago
  • 0.22.16                                ...           2 years ago
  • 0.23.0-beta.1                                ...           3 years ago
  • 0.23.0-beta.0                                ...           3 years ago
  • 0.22.15                                ...           3 years ago
  • 0.22.14                                ...           3 years ago
  • 0.22.13                                ...           3 years ago
  • 0.22.12                                ...           3 years ago
  • 0.21.10                                ...           3 years ago
  • 0.22.11                                ...           3 years ago
  • 0.22.10                                ...           3 years ago
  • 0.22.9                                ...           3 years ago
  • 0.22.8                                ...           3 years ago
  • 0.22.7                                ...           3 years ago
  • 0.22.6                                ...           3 years ago
  • 0.22.5                                ...           3 years ago
  • 0.22.4                                ...           3 years ago
  • 0.22.3                                ...           3 years ago
  • 0.22.2                                ...           3 years ago
  • 0.22.1                                ...           3 years ago
  • 0.22.0                                ...           3 years ago
  • 0.22.0-beta.10                                ...           3 years ago
  • 0.22.0-beta.9                                ...           3 years ago
  • 0.22.0-beta.8                                ...           3 years ago
  • 0.22.0-beta.7                                ...           3 years ago
  • 0.22.0-beta.6                                ...           3 years ago
  • 0.21.9                                ...           3 years ago
  • 0.22.0-beta.5                                ...           3 years ago
  • 0.21.8                                ...           3 years ago
  • 0.21.7                                ...           3 years ago
  • 0.21.6                                ...           3 years ago
  • 0.22.0-beta.4                                ...           3 years ago
  • 0.22.0-beta.2                                ...           3 years ago
  • 0.22.0-beta.1                                ...           3 years ago
  • 0.22.0-beta.0                                ...           3 years ago
  • 0.21.5                                ...           3 years ago
  • 0.21.4                                ...           3 years ago
  • 0.21.3                                ...           3 years ago
  • 0.21.2                                ...           3 years ago
  • 0.21.1                                ...           3 years ago
  • 0.21.0                                ...           3 years ago
  • 0.20.37                                ...           3 years ago
  • 0.21.0-beta.4                                ...           3 years ago
  • 0.21.0-beta.3                                ...           3 years ago
  • 0.21.0-beta.2                                ...           3 years ago
  • 0.21.0-beta.1                                ...           3 years ago
  • 0.20.36                                ...           4 years ago
  • 0.20.35                                ...           4 years ago
  • 0.20.34                                ...           4 years ago
  • 0.20.33                                ...           4 years ago
  • 0.20.32                                ...           4 years ago
  • 0.20.31                                ...           4 years ago
  • 0.20.30                                ...           4 years ago
  • 0.20.29                                ...           4 years ago
  • 0.20.28                                ...           4 years ago
  • 0.20.27                                ...           4 years ago
  • 0.20.26                                ...           4 years ago
  • 0.20.25                                ...           4 years ago
  • 0.20.24                                ...           4 years ago
  • 0.20.23                                ...           4 years ago
  • 0.20.22                                ...           4 years ago
  • 0.20.21                                ...           4 years ago
  • 0.20.20                                ...           4 years ago
  • 0.20.19                                ...           4 years ago
  • 0.20.18                                ...           4 years ago
  • 0.20.17                                ...           4 years ago
  • 0.20.16                                ...           4 years ago
  • 0.20.15                                ...           4 years ago
  • 0.20.14                                ...           4 years ago
  • 0.20.13                                ...           4 years ago
  • 0.20.12                                ...           4 years ago
  • 0.20.11                                ...           4 years ago
  • 0.20.10                                ...           4 years ago
  • 0.20.9                                ...           4 years ago
  • 0.20.8                                ...           4 years ago
  • 0.20.7                                ...           4 years ago
  • 0.20.6                                ...           4 years ago
  • 0.20.5                                ...           4 years ago
  • 0.20.4                                ...           4 years ago
  • 0.20.3                                ...           4 years ago
  • 0.20.2                                ...           4 years ago
  • 0.20.1                                ...           4 years ago
  • 0.20.0                                ...           4 years ago
  • 0.20.0-beta.33                                ...           4 years ago
  • 0.20.0-beta.32                                ...           4 years ago
  • 0.20.0-beta.31                                ...           4 years ago
  • 0.20.0-beta.30                                ...           4 years ago
  • 0.20.0-beta.29                                ...           4 years ago
  • 0.20.0-beta.28                                ...           4 years ago
  • 0.20.0-beta.27                                ...           4 years ago
  • 0.20.0-beta.26                                ...           4 years ago
  • 0.20.0-beta.25                                ...           4 years ago
  • 0.20.0-beta.24                                ...           4 years ago
  • 0.20.0-beta.23                                ...           4 years ago
  • 0.20.0-beta.22                                ...           4 years ago
  • 0.20.0-beta.21                                ...           4 years ago
  • 0.20.0-beta.20                                ...           4 years ago
  • 0.20.0-beta.19                                ...           4 years ago
  • 0.20.0-beta.18                                ...           4 years ago
  • 0.20.0-beta.17                                ...           4 years ago
  • 0.20.0-beta.16                                ...           4 years ago
  • 0.20.0-beta.15                                ...           4 years ago
  • 0.20.0-beta.14                                ...           4 years ago
  • 0.20.0-beta.13                                ...           4 years ago
  • 0.20.0-beta.12                                ...           4 years ago
  • 0.20.0-beta.11                                ...           4 years ago
  • 0.20.0-beta.10                                ...           4 years ago
  • 0.20.0-beta.9                                ...           4 years ago
  • 0.20.0-beta.8                                ...           4 years ago
  • 0.20.0-beta.7                                ...           4 years ago
  • 0.20.0-beta.6                                ...           4 years ago
  • 0.20.0-beta.5                                ...           4 years ago
  • 0.20.0-beta.4                                ...           4 years ago
  • 0.20.0-beta.3                                ...           4 years ago
  • 0.20.0-beta.2                                ...           4 years ago
  • 0.20.0-beta.1                                ...           4 years ago
  • 1.0.0-dev.4                                ...           4 years ago
  • 0.19.2                                ...           4 years ago
  • 1.0.0-dev.3                                ...           4 years ago
  • 1.0.0-dev.2                                ...           4 years ago
  • 0.19.1                                ...           4 years ago
  • 1.0.0-dev.1                                ...           4 years ago
  • 0.19.0                                ...           4 years ago
  • 0.18.0                                ...           4 years ago
  • 0.17.8                                ...           4 years ago
  • 0.17.7                                ...           4 years ago
  • 0.17.6                                ...           5 years ago
  • 0.17.5                                ...           5 years ago
  • 0.17.4                                ...           5 years ago
  • 0.17.3                                ...           5 years ago
  • 0.17.2                                ...           5 years ago
  • 0.17.1                                ...           5 years ago
  • 0.17.0                                ...           5 years ago
  • 0.16.11                                ...           5 years ago
  • 0.16.10                                ...           5 years ago
  • 0.16.9                                ...           5 years ago
  • 0.17.0-3                                ...           5 years ago
  • 0.16.8                                ...           5 years ago
  • 0.17.0-2                                ...           5 years ago
  • 0.17.0-1                                ...           5 years ago
  • 0.17.0-0                                ...           5 years ago
  • 0.16.7                                ...           5 years ago
  • 0.16.6                                ...           5 years ago
  • 0.16.5                                ...           5 years ago
  • 0.16.4                                ...           5 years ago
  • 0.16.3                                ...           5 years ago
  • 0.16.2                                ...           5 years ago
  • 0.16.1                                ...           5 years ago
  • 0.16.0                                ...           5 years ago
  • 0.16.0-8                                ...           5 years ago
  • 0.16.0-7                                ...           5 years ago
  • 0.16.0-6                                ...           5 years ago
  • 0.16.0-5                                ...           5 years ago
  • 0.15.8                                ...           5 years ago
  • 0.16.0-4                                ...           5 years ago
  • 0.15.7                                ...           5 years ago
  • 0.16.0-3                                ...           5 years ago
  • 0.16.0-2                                ...           5 years ago
  • 0.16.0-1                                ...           5 years ago
  • 0.16.0-0                                ...           5 years ago
  • 0.15.6                                ...           5 years ago
  • 0.15.5                                ...           5 years ago
  • 0.15.4                                ...           5 years ago
  • 0.15.3                                ...           5 years ago
  • 0.15.2                                ...           5 years ago
  • 0.15.1                                ...           5 years ago
  • 0.15.0                                ...           5 years ago
  • 0.15.0-0                                ...           6 years ago
  • 0.14.2                                ...           6 years ago
  • 0.14.1                                ...           6 years ago
  • 0.14.0                                ...           6 years ago
  • 0.13.0                                ...           6 years ago
  • 0.13.0-0                                ...           6 years ago
  • 0.12.0                                ...           6 years ago
  • 0.11.1                                ...           7 years ago
  • 0.11.0                                ...           7 years ago
  • 0.10.0                                ...           7 years ago
  • 0.9.0                                ...           7 years ago
  • 0.8.0                                ...           7 years ago
  • 0.7.2                                ...           7 years ago
  • 0.7.1                                ...           7 years ago
  • 0.7.0                                ...           8 years ago
  • 0.6.0                                ...           8 years ago
  • 0.5.10                                ...           8 years ago
  • 0.5.9                                ...           8 years ago
  • 0.5.8                                ...           8 years ago
  • 0.5.7                                ...           8 years ago
  • 0.5.6                                ...           8 years ago
  • 0.5.5                                ...           8 years ago
  • 0.5.4                                ...           8 years ago
  • 0.5.3                                ...           8 years ago
  • 0.5.2                                ...           8 years ago
  • 0.5.1                                ...           8 years ago
  • 0.5.0                                ...           8 years ago
  • 0.4.5                                ...           8 years ago
  • 0.4.4                                ...           8 years ago
  • 0.4.3                                ...           8 years ago
  • 0.4.2                                ...           8 years ago
  • 0.4.1                                ...           8 years ago
  • 0.4.0                                ...           8 years ago
  • 0.3.12                                ...           9 years ago
  • 0.3.11                                ...           9 years ago
  • 0.3.10                                ...           9 years ago
  • 0.3.9                                ...           9 years ago
  • 0.3.8                                ...           9 years ago
  • 0.3.7                                ...           9 years ago
  • 0.3.6                                ...           9 years ago
  • 0.3.5                                ...           9 years ago
  • 0.3.4                                ...           10 years ago
  • 0.3.3                                ...           10 years ago
  • 0.3.2                                ...           10 years ago
  • 0.3.1                                ...           10 years ago
  • 0.3.0                                ...           10 years ago
  • 0.2.3                                ...           10 years ago
  • 0.2.2                                ...           10 years ago
  • 0.2.1                                ...           10 years ago
  • 0.2.0                                ...           10 years ago
  • 0.1.3                                ...           10 years ago
  • 0.1.2                                ...           10 years ago
  • 0.1.1                                ...           10 years ago
  • 0.1.0                                ...           10 years ago
  • 0.0.7                                ...           10 years ago
  • 0.0.6                                ...           10 years ago
  • 0.0.5                                ...           10 years ago
  • 0.0.4                                ...           10 years ago
  • 0.0.3                                ...           10 years ago
  • 0.0.2                                ...           10 years ago
  • 0.0.1                                ...           10 years ago
Downloads
Total 3
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (4)
Dev Dependencies (20)

© 2010 - cnpmjs.org x YWFE | Home | YWFE