Skip to main content

IntersectionType <Elements>

Hierarchy

  • NodeTrait
    • IntersectionType

Index

Constructors

publicconstructor

  • Type parameters

    Parameters

    • intersection: Node[]
    • options: SchemaOptions<object, UnionToIntersection<Elements[number][infer]>>

    Returns IntersectionType<Elements>

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<{ [ KeyType in string | number | symbol ]: UnionToIntersection<Elements[number][infer]>[KeyType] }> = {}

publicoptional_hooks

_hooks?: Hooks

public_id

_id: string = ...

public_isCommutative

_isCommutative: boolean = false

publicoptional_name

_name?: string

public_options

_options: object = {}

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: intersection = ...

publicinfer

infer: { [ KeyType in string | number | symbol ]: UnionToIntersection<Elements[number][infer]>[KeyType] }

publicinput

input: { [ KeyType in string | number | symbol ]: UnionToIntersection<Elements[number][input]>[KeyType] }

publicintrinsic

intrinsic: Intrinsic<Elements[number]>

Accessors

public_output

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

Methods

publicarray

publiccompile

  • compile(__namedParameters?: { formats?: boolean }): Schema<{ [ KeyType in string | number | symbol ]: UnionToIntersection<Elements[number][infer]>[KeyType] }>
  • Parameters

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

    Returns Schema<{ [ KeyType in string | number | symbol ]: UnionToIntersection<Elements[number][infer]>[KeyType] }>

publicdefault

  • default(value: { [ KeyType in string | number | symbol ]: UnionToIntersection<Elements[number][input]>[KeyType] }): DefaultType<IntersectionType<Elements>>
  • Parameters

    • value: { [ KeyType in string | number | symbol ]: UnionToIntersection<Elements[number][input]>[KeyType] }

    Returns DefaultType<IntersectionType<Elements>>

publicdescribe

  • describe(description: string): this
  • Parameters

    • description: string

    Returns this

publicjsonschema

  • jsonschema(schema: JsonSchema<{ [ KeyType in string | number | symbol ]: UnionToIntersection<Elements[number][infer]>[KeyType] }>): this
  • Parameters

    • schema: JsonSchema<{ [ KeyType in string | number | symbol ]: UnionToIntersection<Elements[number][infer]>[KeyType] }>

    Returns this

publicnullable

  • Returns NullableType<IntersectionType<Elements>>

publicoptional

  • Returns OptionalType<IntersectionType<Elements>>

publicreference

  • Parameters

    Returns RefType<Intrinsic<Elements[number]>>

publicvalidator

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

    • validator: Partial<ValidatorOptions> = {}

    Returns this