Skip to main content

RecordType <IndexType>

Hierarchy

Index

Constructors

publicconstructor

Properties

public_attributes

_attributes: { generic: GenericAttributes; typescript: TypescriptAttributes } = ...

Type declaration

  • generic: GenericAttributes
  • typescript: TypescriptAttributes

publicoptional_canReference

_canReference?: boolean

public_children

_children: Node[]

publicoptional_connections

_connections?: Node[]

public_definition

_definition: ThereforeNodeDefinition<Record<string, IndexType[infer]>> = {}

publicoptional_hooks

_hooks?: Hooks

public_id

_id: string = ...

public_isCommutative

_isCommutative: boolean = false

publicoptional_name

_name?: string

public_options

_options: ObjectOptions

publicoptional_sourcePath

_sourcePath?: string

publicoptional_transform

_transform?: { aliasName?: (name: string) => string; referenceName?: (name: string) => string; symbolName?: (name: string) => string }

Type declaration

  • optionalaliasName?: (name: string) => string
      • (name: string): string
      • Parameters

        • name: string

        Returns string

  • optionalreferenceName?: (name: string) => string
      • (name: string): string
      • Parameters

        • name: string

        Returns string

  • optionalsymbolName?: (name: string) => string
      • (name: string): string
      • Parameters

        • name: string

        Returns string

public_type

_type: object = ...

publicelement

element: IndexType

publicinfer

infer: Record<string, IndexType[infer]>

publicinput

input: Record<string, IndexType[input]>

publicshape

shape: {}

Type declaration

    Accessors

    public_output

    • get _output(): (TypescriptOutput | GenericOutput)[]
    • Returns (TypescriptOutput | GenericOutput)[]

    Methods

    public_from

    publicarray

    publiccompile

    • compile(__namedParameters?: { formats?: boolean }): Schema<Record<string, IndexType[infer]>>
    • Parameters

      • __namedParameters: { formats?: boolean } = {}
        • optionalformats: boolean = true

      Returns Schema<Record<string, IndexType[infer]>>

    publicdefault

    • default(value: Record<string, IndexType[input]>): DefaultType<RecordType<IndexType>>
    • Parameters

      • value: Record<string, IndexType[input]>

      Returns DefaultType<RecordType<IndexType>>

    publicdescribe

    • describe(description: string): this
    • Parameters

      • description: string

      Returns this

    publicextend

    • extend<Extra>(extra: ObjectShape<Extra>): ObjectType<{ [ KeyType in string | number | symbol ]: Record<string, Node> & Extra[KeyType] }>
    • Type parameters

      • Extra: Record<string, Node>

      Parameters

      Returns ObjectType<{ [ KeyType in string | number | symbol ]: Record<string, Node> & Extra[KeyType] }>

    publicjsonschema

    • jsonschema(schema: JsonSchema<Record<string, IndexType[infer]>>): this
    • Parameters

      • schema: JsonSchema<Record<string, IndexType[infer]>>

      Returns this

    publickeyof

    • Returns EnumType<string[]>

    publicmerge

    • merge<Other>(other: Other): ObjectType<{ [ KeyType in string | number | symbol ]: Record<string, Node> & Other[shape][KeyType] }>
    • Type parameters

      Parameters

      • other: Other

      Returns ObjectType<{ [ KeyType in string | number | symbol ]: Record<string, Node> & Other[shape][KeyType] }>

    publicnullable

    • Returns NullableType<RecordType<IndexType>>

    publicomit

    • omit<Key>(...properties: Key[]): ObjectType<{ [ KeyType in string ]: Omit<Record<string, Node>, Key>[KeyType] }>
    • 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

    • partial<Keys>(...properties: Keys): ObjectType<ShapeToPartial<Record<string, Node>, Keys>>
    • Type parameters

      • Keys: string[]

      Parameters

      • rest...properties: Keys

      Returns ObjectType<ShapeToPartial<Record<string, Node>, Keys>>

    publicpick

    • pick<Key>(...properties: Key[]): ObjectType<{ [ KeyType in string ]: Pick<Record<string, Node>, Key>[KeyType] }>
    • Type parameters

      • Key: string

      Parameters

      • rest...properties: Key[]

      Returns ObjectType<{ [ KeyType in string ]: Pick<Record<string, Node>, Key>[KeyType] }>

    publicreference

    publicrequired

    • required<Keys>(...properties: Keys): ObjectType<ShapeToRequired<Record<string, Node>, Keys>>
    • Type parameters

      • Keys: string[]

      Parameters

      • rest...properties: Keys

      Returns ObjectType<ShapeToRequired<Record<string, Node>, Keys>>

    publicstrict

    • strict(strict?: boolean): this
    • Parameters

      • strict: boolean = true

      Returns this

    publicvalidator

    • validator(validator?: Partial<ValidatorOptions>): this
    • Parameters

      • validator: Partial<ValidatorOptions> = {}

      Returns this