import type { Equal, Fn } from '../../mod.js'; export type EqualInfer = T extends Equal ? U | T : T; /** ## JudeCondition : 判断条件 @example ```ts const judgT : JudeCondition = val => val == 1 const judgF : JudeCondition = val => val == 2 ``` @category Gymnastics */ export type JudeCondition = Fn; /** ## Condition - 能够进行 match 的 条件 + 同类型数据`T`,用于全等比较 + 函数的返回值为`boolean` + 实现了`PartialEq`的数据结构 + 实现了`Equal`的数据结构 @category Gymnastics */ export type Condition = EqualInfer | JudeCondition>; //# sourceMappingURL=match.type.d.ts.map