ArrayType <Element>
Hierarchy
- Node
- NodeTrait
- ArrayType
Index
Constructors
publicconstructor
Type parameters
Parameters
items: ConstExpr<Element>
options: SchemaOptions<ArrayOptions, Element[infer]>
Returns ArrayType<Element>
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
publicelement
publicinfer
publicinput
Accessors
public_output
Returns undefined | (TypescriptOutput | GenericOutput)[]
Methods
publicarbitrary
Parameters
options: Partial<ArrayGenerator<Element[infer], number>>
Returns ArrayType<Element>
publicarray
Parameters
options: SchemaOptions<ArrayOptions> = {}
Returns ArrayType<ArrayType<Element>>
publiccompile
Parameters
__namedParameters: { formats?: boolean } = {}
optionalformats: boolean = true
Returns Schema<Element[infer][]>
publicdefault
Parameters
value: Element[input][]
Returns DefaultType<ArrayType<Element>>
publicdescribe
Parameters
description: string
Returns this
publicjsonschema
Parameters
schema: JsonSchema<Element[infer][]>
Returns this
publicmaxItems
Parameters
maxItems: number
Returns ArrayType<Element>
publicminItems
Parameters
minItems: number
Returns ArrayType<Element>
publicnonempty
Returns ArrayType<Element>
publicnullable
Returns NullableType<ArrayType<Element>>
publicoptional
Returns OptionalType<ArrayType<Element>>
publicreference
Parameters
options: SchemaOptions<object> = {}
Returns RefType<ArrayType<Element>>
publicset
Returns ArrayType<Element>
publicvalidator
Parameters
validator: Partial<ValidatorOptions> = {}
Returns this