RecordType <IndexType>
Hierarchy
- ObjectType
- RecordType
Index
Constructors
Properties
Accessors
Methods
Constructors
publicconstructor
Type parameters
Parameters
recordType: ThereforeExpr
options: SchemaOptions<object, Record<string, IndexType[infer]>>
Returns RecordType<IndexType>
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
publicshape
Type declaration
Accessors
public_output
Returns (TypescriptOutput | GenericOutput)[]
Methods
public_from
Parameters
__namedParameters: { patternProperties?: Record<string, ThereforeExpr>; recordType?: ThereforeExpr; shape?: ObjectShape<Record<string, Node>> }
optionalpatternProperties: Record<string, ThereforeExpr> = ...
optionalrecordType: ThereforeExpr = ...
optionalshape: ObjectShape<Record<string, Node>> = ...
Returns void
publicarray
Parameters
options: SchemaOptions<ArrayOptions> = {}
Returns ArrayType<RecordType<IndexType>>
publiccompile
Parameters
__namedParameters: { formats?: boolean } = {}
optionalformats: boolean = true
Returns Schema<Record<string, IndexType[infer]>>
publicdefault
Parameters
value: Record<string, IndexType[input]>
Returns DefaultType<RecordType<IndexType>>
publicdescribe
Parameters
description: string
Returns this
publicextend
Type parameters
- Extra: Record<string, Node>
Parameters
extra: ObjectShape<Extra>
Returns ObjectType<{ [ KeyType in string | number | symbol ]: Record<string, Node> & Extra[KeyType] }>
publicjsonschema
Parameters
schema: JsonSchema<Record<string, IndexType[infer]>>
Returns this
publickeyof
Returns EnumType<string[]>
publicmerge
Type parameters
- Other: ObjectType<Record<string, Node>>
Parameters
other: Other
Returns ObjectType<{ [ KeyType in string | number | symbol ]: Record<string, Node> & Other[shape][KeyType] }>
publicnullable
Returns NullableType<RecordType<IndexType>>
publicomit
Type parameters
- Key: string
Parameters
rest...properties: Key[]
Returns ObjectType<{ [ KeyType in string ]: Omit<Record<string, Node>, Key>[KeyType] }>
publicoptional
Returns OptionalType<RecordType<IndexType>>
publicpartial
Type parameters
- Keys: string[]
Parameters
rest...properties: Keys
Returns ObjectType<ShapeToPartial<Record<string, Node>, Keys>>
publicpick
Type parameters
- Key: string
Parameters
rest...properties: Key[]
Returns ObjectType<{ [ KeyType in string ]: Pick<Record<string, Node>, Key>[KeyType] }>
publicreference
Parameters
options: SchemaOptions<object> = {}
Returns RefType<RecordType<IndexType>>
publicrequired
Type parameters
- Keys: string[]
Parameters
rest...properties: Keys
Returns ObjectType<ShapeToRequired<Record<string, Node>, Keys>>
publicstrict
Parameters
strict: boolean = true
Returns this
publicvalidator
Parameters
validator: Partial<ValidatorOptions> = {}
Returns this