{"id":35,"hash":"89d4dd9e732385ed68ef8c0994b2250e38d5315016694311d8d60087f196bf45","pattern":"Type '...' is not assignable to type '...'","full_message":"TS2322: Type 'string | undefined' is not assignable to type 'string'.","ecosystem":"npm","package_name":"typescript","package_version":null,"solution":"TypeScript detected a value might be undefined.\n1. Narrow via guard: `if (value) { /* value is string here */ }`.\n2. Default: `const x: string = value ?? ''`.\n3. Non-null assertion ONLY when you're sure: `value!` (use sparingly).\n4. Use Zod / io-ts to parse external input into a fully-typed value.","confidence":0.85,"source":"internal","source_url":null,"votes":19,"created_at":"2026-04-19T03:24:37.009875+00:00","updated_at":"2026-04-19T03:25:24.795748+00:00"}