品牌类型不再工作
作者: salemkode创建于 2025年6月3日更新于 2025年12月4日
Describe the bug
When using ts-pattern with a branded primitive type (e.g., string & { __type: 'id' }), calling .exhaustive() does not trigger a TypeScript error or a runtime error, even if not all possible inputs are handled.
内容来源: gvergnaud/ts-pattern