@@ -50,7 +50,7 @@ import { type TDeferred, Deferred, IsDeferred } from '../types/deferred.ts'
5050import { type TFunction , _Function_ , IsFunction , FunctionOptions } from '../types/function.ts'
5151import { type TCall , IsCall } from '../types/call.ts'
5252import { type TIdentifier } from '../types/identifier.ts'
53- import { type TIf , If , IsIf , IfOptions } from '../types/if .ts'
53+ import { type TIfThenElse , IfThenElse , IsIfThenElse , IfThenElseOptions } from '../types/if_then_else .ts'
5454import { type TIntersect , Intersect , IsIntersect , IntersectOptions } from '../types/intersect.ts'
5555import { type TIterator , Iterator , IsIterator , IteratorOptions } from '../types/iterator.ts'
5656import { type TObject , Object , IsObject , ObjectOptions } from '../types/object.ts'
@@ -309,7 +309,7 @@ export type TInstantiateType<Context extends TProperties, State extends TState,
309309 Type extends TConstructor < infer Parameters extends TSchema [ ] , infer InstanceType extends TSchema > ? TConstructor < TInstantiateTypes < Context , State , Parameters > , TInstantiateType < Context , State , InstanceType > > :
310310 Type extends TDeferred < infer Action extends string , infer Types extends TSchema [ ] > ? TInstantiateDeferred < Context , State , Action , Types > :
311311 Type extends TFunction < infer Parameters extends TSchema [ ] , infer ReturnType extends TSchema > ? TFunction < TInstantiateTypes < Context , State , Parameters > , TInstantiateType < Context , State , ReturnType > > :
312- Type extends TIf < infer If extends TSchema , infer Then extends TSchema , infer Else extends TSchema > ? TIf < TInstantiateType < Context , State , If > , TInstantiateType < Context , State , Then > , TInstantiateType < Context , State , Else > > :
312+ Type extends TIfThenElse < infer If extends TSchema , infer Then extends TSchema , infer Else extends TSchema > ? TIfThenElse < TInstantiateType < Context , State , If > , TInstantiateType < Context , State , Then > , TInstantiateType < Context , State , Else > > :
313313 Type extends TIntersect < infer Types extends TSchema [ ] > ? TIntersect < TInstantiateTypes < Context , State , Types > > :
314314 Type extends TIterator < infer Type extends TSchema > ? TIterator < TInstantiateType < Context , State , Type > > :
315315 Type extends TObject < infer Properties extends TProperties > ? TObject < TInstantiateProperties < Context , State , Properties > > :
@@ -340,7 +340,7 @@ export function InstantiateType<Context extends TProperties, State extends TStat
340340 IsConstructor ( type ) ? Constructor ( InstantiateTypes ( context , state , type . parameters ) , InstantiateType ( context , state , type . instanceType ) as never , ConstructorOptions ( type ) ) :
341341 IsDeferred ( type ) ? InstantiateDeferred ( context , state , type . action , type . parameters , type . options ) :
342342 IsFunction ( type ) ? _Function_ ( InstantiateTypes ( context , state , type . parameters ) , InstantiateType ( context , state , type . returnType ) as never , FunctionOptions ( type ) ) :
343- IsIf ( type ) ? If ( InstantiateType ( context , state , type . if ) , InstantiateType ( context , state , type . then ) , InstantiateType ( context , state , type . else ) , IfOptions ( type ) ) :
343+ IsIfThenElse ( type ) ? IfThenElse ( InstantiateType ( context , state , type . if ) , InstantiateType ( context , state , type . then ) , InstantiateType ( context , state , type . else ) , IfThenElseOptions ( type ) ) :
344344 IsIntersect ( type ) ? Intersect ( InstantiateTypes ( context , state , type . allOf ) , IntersectOptions ( type ) ) :
345345 IsIterator ( type ) ? Iterator ( InstantiateType ( context , state , type . iteratorItems ) , IteratorOptions ( type ) ) :
346346 IsObject ( type ) ? Object ( InstantiateProperties ( context , state , type . properties ) , ObjectOptions ( type ) ) :
0 commit comments