/** * ternary conditional type. resolves to `Then` if `Condition` is true, otherwise `Else` * * @remarks * distributes over `Condition` * * @undefined_behavior `Condition` is `any`, `unknown`, `never`, or `boolean` * * @template Condition the type to evaluate * @template Then resultant type if `Condition` evaluates to `true` * @template Else resultant type if `Condition` does not evaluate to `true`. defaults to `never` * * @since 0.0.2 * * @example * ```ts * type e0 = If // never * type e1 = If // 0 | 1 * type e2 = If // 1 * type e3 = If // 0 * type e4 = If // never * ``` */ export type If = Condition extends true ? Then : Else; //# sourceMappingURL=if.d.ts.map