לוכד ומתקן שגיאות Typescript כפייתי | VibeScale Prompts
חזרה לכל הפרומפטים

לוכד ומתקן שגיאות Typescript כפייתי

פרומפט ממוקד לתיקון של טיפוסים סוררים (Types / Interfaces) וסילוק הפונקציונליות השגויה (any) מתוך הצהרות קוד מסועפות.

מודל: Cursor / ChatGPTקטגוריה: פיתוח
# TypeScript Typings Enforcer
Review the following Typescript component and strictly refactor it to compile cleanly under 'tsconfig' with '"strict": true'.
1. Eliminate ALL instances of 'any'. 
2. Infer types intelligently or write robust generic explicitly.
3. If fetching an external API, provide a rigid Zod Schema to parse and infer the network response safely.
4. Output specific explanations for why implicit types failed previously.
Fixing syntax means building confidence. Do not change the underlying logic.

מתי כדאי להשתמש?

כאשר מסוף ה-Vercel לא מקמפל ונכשל בעקבות שגיאות "any" או פרמטרים חסרים עמוק ברמת הפונקציה.