Developer Check Types
Run the project's type checker (e.g. tsc --noEmit or the script in package.json). Use after changing TypeScript code. Explain any errors in simple words; use document-voice when talking to the user.
When to use
- After writing or changing TypeScript.
- When the user reports type errors.
- After formatting (Prettier), before linting (ESLint). Fix types first so lint rules see clean code.
Process
- Find how the project runs type checking (e.g.
npm run check:types,pnpm exec tsc --noEmit, ornpx tsc --noEmit). Run it from the right directory (package or repo root, per project). - If there are errors: read file and line, fix the type issue (use developer-typescript for patterns). Re-run until clean.
- When explaining to the user: use plain language, explain terms the first time, no jargon.
Output
- Success: types are valid; say so briefly.
- Errors: list file and line, what’s wrong in plain language, and what you changed (or what the user should change). Fix one at a time if many; re-run after each fix.
Reference
developer-typescript – type patterns. document-voice – how to explain.
Source: ryanallen/product-studio — distributed by TomeVault.