Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.259 ·

plugin-types command now also emits claude-code.d.ts for built-in tool inputs

The plugin-types command now also writes claude-code.d.ts, useful for typing a hooks module against the session.

Group of 2 Use it now Improvements
JSON All of v2.1.259
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Plugin SDKArea: what it touches
ImprovementsKind: in v2.1.259,
What probably matters to youSection of the release

A new generator (BuiltinToolInputs) writes a claude-code.d.ts declaration file merging built-in tool input schemas into ToolCallInput, similar to the existing MCP tool-input declaration file. This lets TypeScript users narrow e.tool === "Bash" etc. to typed arguments for built-in tools, not just MCP tools. The built-in plugin-types local command now writes both claude-code.d.ts and claude-code-mcp.d.ts, whereas previously it only wrote the MCP tool inputs file.

Read from
Names in the bundleplugin-typesclaude-code.d.tsclaude-code-mcp.d.ts
What the documentation says
Since it was published

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
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesA small documentation edit on Create a mod touched a line naming claude-code.d.ts after this was published.

See this entry in the whole of v2.1.259 →

Feedback