EnumType <Values>
Hierarchy
- _EnumType
- EnumType
Index
Constructors
publicconstructor
Type parameters
- Values: unknown[] = string[]
Parameters
values: Values
options: SchemaOptions<object, Values[number]>
Returns EnumType<Values>
Properties
public_attributes
Type declaration
generic: GenericAttributes
typescript: TypescriptAttributes
publicoptional_canReference
publicoptional_children
publicoptional_connections
public_definition
publicoptional_hooks
public_id
public_isCommutative
public_isNamed
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
publicenum
publicinfer
publicinput
Accessors
public_output
Returns (TypescriptOutput | GenericOutput)[]
Methods
publicarray
Parameters
options: SchemaOptions<ArrayOptions> = {}
Returns ArrayType<EnumType<Values>>
publiccompile
Parameters
__namedParameters: { formats?: boolean } = {}
optionalformats: boolean = true
Returns Schema<Values[number]>
publicdefault
Parameters
value: Values[number]
Returns DefaultType<EnumType<Values>>
publicdescribe
Parameters
description: string
Returns this
publicjsonschema
Parameters
schema: JsonSchema<Values[number]>
Returns this
publicnullable
Returns NullableType<EnumType<Values>>
publicoptional
Returns OptionalType<EnumType<Values>>
publicreference
Parameters
options: SchemaOptions<object> = {}
Returns RefType<EnumType<Values>>
publicvalidator
Parameters
validator: Partial<ValidatorOptions> = {}
Returns this