摘要: Omit on Union type type Union = | { a: "a"; user?: string; } | { b: "b"; user?: string; }; type X = Omit<Union, "user">; // X is {} Using Distributive 阅读全文
posted @ 2023-09-02 19:12 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑