ntcore-ts / @ntcore-ts/client / ReadonlyValue
Type Alias: ReadonlyValue<T>
ReadonlyValue<
T> =TextendsUint8Array?T:Textends readonly infer U[] ? readonlyReadonlyValue<U>[] :Textends (...args) =>unknown?T:Textendsobject?{ readonly [K in keyof T]: ReadonlyValue<T[K]> }:T
Defined in: types/types.ts:73
A topic value as handed to subscribers and returned by getValue(). Every subscriber of a topic receives the same object, so arrays and decoded objects are read-only all the way down. Uint8Array (raw) values are left as is.
Type Parameters
T
T