prorm API Reference
    Preparing search index...

    Class VIRTUAL

    Base class for all data types

    Hierarchy (View Summary)

    Index
    key: "VIRTUAL" = ...
    returnType?: AbstractDataType
    get?: () => any

    Getter function to compute the virtual field value

    set?: (value: any) => void

    Setter function to handle setting the virtual field

    dependencies?: string[]

    Array of field names that this virtual field depends on

    • Serialize a value for storage based on this DataType

      Parameters

      • value: unknown

        The value to serialize

      Returns unknown

      The serialized value

    • Get the dependencies for this virtual field

      Returns string[]