Skip to main content

RefType <Reference>

Hierarchy

  • Node
  • NodeTrait
    • RefType

Index

Constructors

publicconstructor

  • new RefType<Reference>(reference: ConstExpr<Reference>, options: SchemaOptions<object, Reference[infer]>): RefType<Reference>
  • Type parameters

    Parameters

    • reference: ConstExpr<Reference>
    • options: SchemaOptions<object, Reference[infer]>

    Returns RefType<Reference>

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<Reference[infer]> = {}

public_hooks

_hooks: { onGenerate: (__namedParameters: Node) => void[]; onLoad: (self: Node) => void[] } = ...

Type declaration

  • onGenerate: (__namedParameters: Node) => void[]
  • onLoad: (self: Node) => void[]

public_id

_id: string = ...

public_isCommutative

_isCommutative: boolean = true

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

publicinfer

infer: Reference[infer]

publicinput

input: Reference[input]

publicintrinsic

intrinsic: Intrinsic<Reference>

Accessors

public_output

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

publicitem

  • get item(): Reference
  • Returns Reference

Methods

publicarray

publiccompile

  • compile(__namedParameters?: { formats?: boolean }): Schema<Reference[infer]>
  • Parameters

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

    Returns Schema<Reference[infer]>

publicdefault

  • default(value: Reference[input]): DefaultType<RefType<Reference>>
  • Parameters

    • value: Reference[input]

    Returns DefaultType<RefType<Reference>>

publicdescribe

  • describe(description: string): this
  • Parameters

    • description: string

    Returns this

publicjsonschema

  • jsonschema(schema: JsonSchema<Reference[infer]>): this
  • Parameters

    • schema: JsonSchema<Reference[infer]>

    Returns this

publicnullable

  • nullable(): NullableType<RefType<Reference>>
  • Returns NullableType<RefType<Reference>>

publicoptional

  • optional(): OptionalType<RefType<Reference>>
  • Returns OptionalType<RefType<Reference>>

publicreference

publicvalidator

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

    • validator: Partial<ValidatorOptions> = {}

    Returns this

publicstatic_from

  • _from<Reference>(ref: ConstExpr<Reference>, options: SchemaOptions<object>): RefType<Intrinsic<Reference>>
  • Type parameters

    Parameters

    Returns RefType<Intrinsic<Reference>>