{"version":"2.1.259","anchor":"plugin-types-command-now-also-emits-claude-codedts","canonical_anchor":"generated-dts-for-built-in-tool-inputs","heading":"plugin-types command now also emits claude-code.d.ts for built-in tool inputs","tier":"use","area":"Plugin SDK","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.259\/e\/plugin-types-command-now-also-emits-claude-codedts","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.259","markdown":"### plugin-types command now also emits `claude-code.d.ts` for built-in tool inputs\n\nThe plugin-types command now also writes claude-code.d.ts, useful for typing a hooks module against the session.\n\nA 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.\n\n- Area: Plugin SDK\n- Names: `plugin-types`, `claude-code.d.ts`, `claude-code-mcp.d.ts`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5"}