Cursor Rules for TypeScript: 6 Rules That Make AI Write Type-Safe TypeScript Cursor generates TypeScript fast. The problem? It reaches for any the moment things get complex, returns bare objects instead of typed responses, skips discriminated unions, and writes error handling that throws away type information. The fix isn't better prompting. It's better rules. Here are 6 cursor rules for TypeScr