当条件使用具有数值的枚举时,`exhaustive`不起作用
作者: alcuadrado创建于 2023年7月23日更新于 2025年12月14日
Describe the bug
If you try to match over a type whose discriminating field is an enum with numeric values, exhaustive() seems to get lost and produces a type error when it's not needed.
内容来源: gvergnaud/ts-pattern