Type Alias ExpandParts<Parts, IsExact, IsReadonly>

ExpandParts: Extract<ArrayElement<Parts>, ShapeDefinition<any, any>> extends never
    ? ShapeToRuntimeType<ArrayElement<Parts>, IsExact, IsReadonly>
    :
        | ShapeToRuntimeType<
            Exclude<ArrayElement<Parts>, ShapeDefinition<any, any>>,
            IsExact,
            IsReadonly,
        >
        | Extract<ArrayElement<Parts>, ShapeDefinition<any, any>>["runtimeType"]

Type Parameters

  • Parts extends BaseParts
  • IsExact extends boolean
  • IsReadonly extends boolean