TypeScript TS2322: Type 'null' is not assignable to type 'string'
Deterministic patch indexed for AI coding agents (Cursor, Claude Code, Cline, Windsurf, OpenDevin).
Root Cause: Use union types when strictNullChecks is enabled.
typescript fix --latest
Deterministic patch indexed for AI coding agents (Cursor, Claude Code, Cline, Windsurf, OpenDevin).
- function greet(name: string) {}
+ function greet(name: string | null) {}
curl -X POST https://agentnow.in/api/v1/query \
-H "Content-Type: application/json" \
-d '{"error": "TypeScript TS2322: Type 'null' is not assignable to type 'string'"}'