Package detail

typedoc-plugin-dt-links

Gerrit020.7kMIT2.0.4

Adds support for linking references to types declared in @types packages to their source code on GitHub.

typedoc-plugin

readme

typedoc-plugin-dt-links

Adds support for linking references to types declared in @types packages to their source code on GitHub.

Note: If TypeDoc's useTsLinkResolution option is off, this plugin won't work.

If VSCode can follow a link into an @types package, this plugin should also be able to provide links to that package.

Options

  • warnOnUnstableDtLink

    Defaults to true. If set, and an @types package is referenced which is newer than this plugin, produces a warning as this plugin won't be able to produce a stable link.

    This plugin is automatically published weekly, so if you are upgrading @types packages and rebuilding docs more frequently than that, you may want to disable this option as the link won't be dead long enough to matter.

Changelog

See full changelog here.

How It Works

TypeDoc exposes an API which plugins can use to provide links to external symbols. TypeDoc will also provide plugins with a ReflectionSymbolId object which plugins can use to determine where TypeScript thinks the link should resolve to.

This plugin uses that object to figure out which @types package a symbol belongs to by checking the path for node_modules/@types and constructs a link to GitHub for the package.

The constructed link must include a version reference in order to not break when the referenced package receives updates. As @types packages do not include any information about what git hash they were published with, this plugin attempts to infer what the git hash for the version must have been by parsing the "Last Updated" date out of the README.md file for the plugin and matching it to a list of all commits in DefinitelyTyped published with this package. If the package was released more recently than this plugin, the plugin can't know what git hash should be used and will instead use master as the reference.

changelog

Changelog

v2.0.4 (2025-06-01)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-06-01

v2.0.3 (2025-05-25)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-05-25

v2.0.2 (2025-05-18)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-05-18

v2.0.1 (2025-05-11)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-05-11

v2.0.0 (2025-03-16)

  • Update to support TypeDoc 0.28, drop support for TypeDoc before 0.28

v1.1.16 (2025-03-16)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-03-16

v1.1.15 (2025-03-09)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-03-09

v1.1.14 (2025-03-02)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-03-02

v1.1.13 (2025-02-23)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-02-23

v1.1.12 (2025-02-16)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-02-16

v1.1.11 (2025-02-09)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-02-09

v1.1.10 (2025-02-02)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-02-02

v1.1.9 (2025-01-26)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-01-26

v1.1.8 (2025-01-19)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-01-19

v1.1.7 (2025-01-12)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-01-12

v1.1.6 (2025-01-05)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2025-01-05

v1.1.5 (2024-12-29)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2024-12-29

v1.1.4 (2024-12-22)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2024-12-22

v1.1.3 (2024-12-15)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2024-12-15

v1.1.2 (2024-12-08)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2024-12-08

v1.1.1 (2024-12-01)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2024-12-01

v1.1.0 (2024-11-24)

  • Support TypeDoc 0.27
  • Plugin will now produce links with the full git hash to avoid links breaking as the DT repo grows

v1.0.4 (2024-11-24)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2024-11-24

v1.0.3 (2024-11-17)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2024-11-17

v1.0.2 (2024-10-20)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2024-10-20

v1.0.1 (2024-10-13)

  • Updated to produce stable links to DefinitelyTyped for packages published before 2024-10-13

v1.0.0 (2024-10-03)

  • Initial release