Class VirtualType<HydratedDocType>

Type Parameters

  • HydratedDocType

Hierarchy

  • VirtualType

Constructors

  • Type Parameters

    • HydratedDocType

    Returns VirtualType<HydratedDocType>

Methods

  • Applies getters to value.

    Parameters

    Returns any

  • Applies setters to value.

    Parameters

    Returns any

  • Adds a custom getter to this virtual.

    Type Parameters

    • T = HydratedDocType

    Parameters

    • fn: ((this, value, virtualType, doc) => any)
        • (this, value, virtualType, doc): any
        • Parameters

          Returns any

    Returns VirtualType<HydratedDocType>

  • Adds a custom setter to this virtual.

    Type Parameters

    • T = HydratedDocType

    Parameters

    • fn: ((this, value, virtualType, doc) => void)
        • (this, value, virtualType, doc): void
        • Parameters

          Returns void

    Returns VirtualType<HydratedDocType>

Generated using TypeDoc