Prompt · Intermediate · 8 min
Add types to untyped code
Introduce precise types to JavaScript or loosely typed TypeScript without changing runtime behaviour.
- Cursor
- GitHub Copilot
- Claude Code
- ChatGPT
- Any assistant
- coding
- drafting
Inside this prompt
- Introduce precise types to JavaScript or loosely typed TypeScript without changing runtime behaviour. Written for AI coding work: the context, steps and output format are fixed so results come back in the same shape every time.
- Fill in: {{code}}, {{usage}}, {{strictness}}
- Variables
- 3
The full prompt opens with a membership that covers AI Coding Prompts.
Sign in if you already subscribe.
Sign in
