Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

typedoc-plugin-dt-links

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typedoc-plugin-dt-links

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

Source
npmnpm
Version
2.0.21
Version published
Maintainers
1
Created
Source

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.

Keywords

typedoc-plugin

FAQs

Package last updated on 28 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts