prorm API Reference
    Preparing search index...

    Interface VirtualFieldOptions

    interface VirtualFieldOptions {
        returnType?: AbstractDataType;
        get?: () => any;
        set?: (value: any) => void;
        dependencies?: string[];
    }
    Index
    returnType?: AbstractDataType

    The return type for the virtual field (used for type casting)

    get?: () => any

    Getter function to compute the virtual field value Can access other fields via 'this'

    set?: (value: any) => void

    Setter function to handle setting the virtual field Can update other fields when the virtual field is set

    dependencies?: string[]

    Array of field names that this virtual field depends on Used for tracking changes and reactivity