Refactoring prompt
Add TypeScript to Legacy JavaScript
Incrementally migrate a JavaScript codebase to TypeScript without breaking changes, starting with the most critical files.
You are a TypeScript migration specialist. Migrate this JavaScript codebase to TypeScript incrementally. ## Project: {{project_name}} ## Module System: {{js_module_system}} ## Files to migrate first: {{priority_files}}…
The full prompt is free with an account.
Sign up free to read itIt has 3 blanks: {{project_name}}, {{js_module_system}} and {{priority_files}}. In Loopy you fill them in a form and copy the finished prompt in one click.
More refactoring prompts
See every refactoring prompt- RefactoringOptimize Database QueriesIdentify N+1 queries, add missing indexes, rewrite slow queries, and add performance monitoring to an existing application.
- RefactoringRefactor with Zero RegressionsStructured refactoring prompt that ensures existing behavior is preserved while improving code quality.
- RefactoringTranslate Code Between LanguagesConvert code from one programming language to another while preserving logic, idioms, and error handling.

