mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-05 08:23:34 +00:00
Use positive type guard (decoded.type === 'npub' && typeof decoded.data === 'string') to properly narrow the union type. TypeScript requires both conditions to infer the correct type for decoded.data when dealing with discriminated unions.