Add Types Incrementally
Type one file with runtime behavior frozen, and make the type-checker output the proof.
Intermediate1 min read
Customize
Fill these in and the prompt below updates as you type. Anything you leave blank stays as a placeholder.
Your prompt
1 placeholder leftAdd TypeScript types to {{file_path}}. Do not change runtime behavior. Run `tsc --noEmit` afterwards and fix only type errors you introduced. Show me the type-check output as evidence.