generate_type
Creates a TypeScript type or interface in a Nuxt 4 project. Specify the type name and file path to add new types to your codebase.
Instructions
Generate a TypeScript type/interface in the target Nuxt 4 codebase.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the type (e.g., 'User', 'Product') | |
| relativePath | Yes | Relative path in target (e.g., 'types/User.ts') | |
| module | No | Optional module name to prefix path (e.g., 'deals', 'tickets') | |
| targetPath | No | Optional absolute target path override |