Group of 5 Use it now
No documentation found
Plugins can declare a validated types file describing what they add, generated into a new claude-code-plugins.d.ts
What
- Plugin manifests (
plugin.json) can now declare atypesfield pointing at a.d.tsfile that describes the plugin's type contract: what it adds to the shared$object viaengine.createand declares onEngineInterface. The path must end in.d.tsand stay inside the plugin directory. - A new validator strictly checks the declared type contract: it rejects imports/requires/references, runnable code, stray tokens, non-ASCII or control characters,
@ts-pragmas, and anything other thandeclare module 'claude-code' { ... }or type/interface exports. - Valid contracts are copied into a
claude-code-plugins/folder and referenced from a generatedclaude-code-plugins.d.tsfile. - The
/plugin-typescommand now writes thisclaude-code-plugins.d.tsfile in addition to the existingclaude-code.d.tsandclaude-code-mcp.d.ts. - Plugin validation also reports, as a warning, which members of the plugin's declared interface it exposes on
$.
Why
This lets plugin authors declare and get type-checking for the custom functionality their plugin adds, with /plugin-types generating declaration files that editors and tooling can use for autocomplete and validation.
Names in the bundle/plugin-types