Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

  • Field

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Field<T>(name: string, type: T, nullable?: boolean, metadata?: null | Map<string, string>): Field<T>
  • Type parameters

    Parameters

    • name: string
    • type: T
    • nullable: boolean = false
    • Optional metadata: null | Map<string, string>

    Returns Field<T>

Properties

Readonly metadata

metadata: Map<string, string>

Readonly name

name: string

Readonly nullable

nullable: boolean

Readonly type

type: T

Accessors

[Symbol.toStringTag]

  • get [Symbol.toStringTag](): string

typeId

  • get typeId(): Type

Methods

clone

  • clone<R>(props: { metadata?: null | Map<string, string>; name?: string | number; nullable?: boolean; type?: R }): Field<R>
  • clone<R>(name?: string | number | Field<T>, type?: R, nullable?: boolean, metadata?: null | Map<string, string>): Field<R>
  • Type parameters

    Parameters

    • props: { metadata?: null | Map<string, string>; name?: string | number; nullable?: boolean; type?: R }
      • Optional metadata?: null | Map<string, string>
      • Optional name?: string | number
      • Optional nullable?: boolean
      • Optional type?: R

    Returns Field<R>

  • Type parameters

    Parameters

    • Optional name: string | number | Field<T>
    • Optional type: R
    • Optional nullable: boolean
    • Optional metadata: null | Map<string, string>

    Returns Field<R>

toString

  • toString(): string

Static new

  • new<T>(props: { metadata?: null | Map<string, string>; name: string | number; nullable?: boolean; type: T }): Field<T>
  • new<T>(name: string | number | Field<T>, type: T, nullable?: boolean, metadata?: null | Map<string, string>): Field<T>
  • Type parameters

    Parameters

    • props: { metadata?: null | Map<string, string>; name: string | number; nullable?: boolean; type: T }
      • Optional metadata?: null | Map<string, string>
      • name: string | number
      • Optional nullable?: boolean
      • type: T

    Returns Field<T>

  • Type parameters

    Parameters

    • name: string | number | Field<T>
    • type: T
    • Optional nullable: boolean
    • Optional metadata: null | Map<string, string>

    Returns Field<T>

Generated using TypeDoc