Class VirtualType<TValue, TRequired>

Virtual/computed field type definition.

Type Parameters

  • TValue = unknown
  • TRequired extends boolean = false

Hierarchy (View Summary)

Constructors

Properties

_required: boolean
defaultValue?:
    | TypeOutput<TValue, TRequired>
    | () => TypeOutput<TValue, TRequired>
hasDefault: boolean
isSensitive: boolean
isVirtual: boolean
options: Record<string, unknown>
validators: ValidatorFunction<TValue>[]

Methods

  • Flag the field as sensitive so joins/exposures can omit it by default.

    Parameters

    • isSensitive: boolean = true

    Returns this