@@ -50,8 +50,12 @@ export function ConditionalDeferred<Left extends TSchema, Right extends TSchema,
5050// Type
5151// ------------------------------------------------------------------
5252/** Applies a Conditional action to the given types. */
53+ export type TConditional < Left extends TSchema , Right extends TSchema , True extends TSchema , False extends TSchema > = (
54+ TConditionalAction < { } , { callstack : [ ] } , Left , Right , True , False >
55+ )
56+ /** Applies a Conditional action to the given types. */
5357export function Conditional < Left extends TSchema , Right extends TSchema , True extends TSchema , False extends TSchema >
54- ( left : Left , right : Right , true_ : True , false_ : False , options : TSchemaOptions = { } ) :
55- TConditionalAction < { } , { callstack : [ ] } , Left , Right , True , False > {
58+ ( left : Left , right : Right , true_ : True , false_ : False , options : TSchemaOptions = { } ) :
59+ TConditional < Left , Right , True , False > {
5660 return ConditionalAction ( { } , { callstack : [ ] } , left , right , true_ , false_ , options ) as never
5761}
0 commit comments