Type check (structured)
npm_typecheckRun TypeScript type checks via tsc/tsgo --noEmit and return structured, compact errors with file, line, column, message, and TS code.
Instructions
Run tsc/tsgo --noEmit and return structured type errors with file, line, column, message, and TS error code. Much more compact than raw tsc output. Auto-detects tsgo for faster checking. Use project to specify a tsconfig.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Required. Project root directory | |
| project | No | Path to tsconfig.json (default: auto-detected by tsc) | |
| maxItems | No | Item cap; overrides detailLevel | |
| detailLevel | No | Item preset: summary 20, normal 100, full (default; also skips the response budget) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | No | ||
| errors | Yes | ||
| success | Yes | ||
| retained | No | ||
| truncated | No | ||
| errorCount | Yes |