Home > @pago/reactive > readonly
readonly() function
Converts a mutable Ref to a ReadonlyRef.
Signature:
export declare function readonly<T>(ref: Ref<T>): ReadonlyRef<T>;
Parameters
Parameter | Type | Description |
---|---|---|
ref | Ref<T> | A mutable tracked reference |
Returns:
ReadonlyRef<T>