UnionType <Elements>
Hierarchy
- NodeTrait
- UnionType
Index
Constructors
publicconstructor
Type parameters
Parameters
union: ConstExprTuple<Elements>
options: SchemaOptions<object, ToInfer<Elements>[number]>
Returns UnionType<Elements>
Properties
public_attributes
Type declaration
generic: GenericAttributes
typescript: TypescriptAttributes
publicoptional_canReference
public_children
publicoptional_connections
public_definition
publicoptional_hooks
public_id
public_isCommutative
publicoptional_name
public_options
publicoptional_sourcePath
publicoptional_transform
Type declaration
optionalaliasName?: (name: string) => string
Parameters
name: string
Returns string
optionalreferenceName?: (name: string) => string
Parameters
name: string
Returns string
optionalsymbolName?: (name: string) => string
Parameters
name: string
Returns string
public_type
publicinfer
publicinput
publicintrinsic
Accessors
public_output
Returns undefined | (TypescriptOutput | GenericOutput)[]
publicoptions
Returns Node[]
Methods
publicarray
Parameters
options: SchemaOptions<ArrayOptions> = {}
Returns ArrayType<UnionType<Elements>>
publiccompile
Parameters
__namedParameters: { formats?: boolean } = {}
optionalformats: boolean = true
Returns Schema<ToInfer<Elements>[number]>
publicdefault
Parameters
value: ToInput<Elements>[number]
Returns DefaultType<UnionType<Elements>>
publicdescribe
Parameters
description: string
Returns this
publicjsonschema
Parameters
schema: JsonSchema<ToInfer<Elements>[number]>
Returns this
publicnullable
Returns NullableType<UnionType<Elements>>
publicoptional
Returns OptionalType<UnionType<Elements>>
publicreference
Parameters
options: SchemaOptions<object> = {}
Returns RefType<Intrinsic<Elements[number]>>
publicvalidator
Parameters
validator: Partial<ValidatorOptions> = {}
Returns this