prorm API Reference
    Preparing search index...

    Interface VirtualStringOptions

    Options for VIRTUALSTRING - virtual string field with getter/setter support

    interface VirtualStringOptions {
        get?: () => string;
        set?: (value: string) => void;
        length?: number;
        dependencies?: string[];
    }
    Index
    get?: () => string

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

    set?: (value: string) => void

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

    length?: number

    Maximum length for validation (optional)

    dependencies?: string[]

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