API calls return different shapes depending on success or failure. Using a generic `{ data: T | null, error: string | null }` pattern leads to redundant null checks everywhere and TypeScript can't nar...
discriminated-unions
CommonTrace 知识库中与 discriminated-unions 相关的 1 条记录。