TupleType <Elements, Rest>
Hierarchy
- NodeTrait
- TupleType
Index
Constructors
publicconstructor
Type parameters
Parameters
elements: ConstExprTuple<Elements>
options: SchemaOptions<TupleOptions<Rest>, TupleToInfer<Elements>>
Returns TupleType<Elements, Rest>
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
publicitems
Accessors
public_output
Returns undefined | (TypescriptOutput | GenericOutput)[]
Methods
publicarray
Parameters
options: SchemaOptions<ArrayOptions> = {}
Returns ArrayType<TupleType<Elements, Rest>>
publiccompile
Parameters
__namedParameters: { formats?: boolean } = {}
optionalformats: boolean = true
Returns Schema<Rest extends { infer: unknown } ? [...TupleToInfer<Elements>[], ...Rest<Rest>[infer][]] : TupleToInfer<Elements>>
publicdefault
Parameters
value: Rest extends { infer: unknown } ? [...TupleToInput<Elements>[], ...Rest<Rest>[input][]] : TupleToInput<Elements>
Returns DefaultType<TupleType<Elements, Rest>>
publicdescribe
Parameters
description: string
Returns this
publicjsonschema
Parameters
schema: JsonSchema<Rest extends { infer: unknown } ? [...TupleToInfer<Elements>[], ...Rest<Rest>[infer][]] : TupleToInfer<Elements>>
Returns this
publicnullable
Returns NullableType<TupleType<Elements, Rest>>
publicoptional
Returns OptionalType<TupleType<Elements, Rest>>
publicreference
Parameters
options: SchemaOptions<object> = {}
Returns RefType<TupleType<Elements, Rest>>
publicrest
publicvalidator
Parameters
validator: Partial<ValidatorOptions> = {}
Returns this