Generated plugin TypeScript declarations now also emit a claude-code.d.ts file covering the plugin API and built-in tools, in addition to the previous MCP tool types. Guidance text for tsconfig setup has been updated to point at both declaration files.
Names in the bundleclaude-code.d.ts
Documented inclaude-code/plugins/mods/reference
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up claude-code.d.ts, on Mods reference.
The complete reference is Claude Code's [TypeScript declarations for mods](https://github.com/anthropics/claude-code/blob/main/mods/types/claude-code.d.ts), which describe every event, method, and element, with examples. The copy on GitHub…plugins/mods/reference see the edit
Added since
A small documentation edit on Create a mod touched a line naming claude-code.d.ts after this was published.
Each time Claude Code loads or reloads a mod from a directory you pass to `--plugin-dir`, or a mod [Claude wrote for you](#ask-claude-for-a-mod), it writes TypeScript declaration files, ending in `.d.ts`, into `.claude-plugin/types/` insid…plugins/mods/create see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
A small documentation edit on Create a mod touched a line naming claude-code.d.ts after this was published.