Type Alias: ImmutableSynced<T>
ImmutableSynced<
T> =IsUntypedSyncedObject<T> extendstrue?SyncedObject:TextendsDate?Date:Textendsbigint|JsonPrimitive?T:Textends (...arguments_) =>unknown?never:Textends readonlyunknown[] ?{ readonly [Key in keyof T]: ImmutableSynced<T[Key]> }:Textendsobject?{ readonly [Key in keyof T]: ImmutableSynced<T[Key]> }:never
The immutable snapshot form of a game-defined synced-object shape.
Objects and arrays are deeply readonly in TypeScript. Date values retain the
standard Date type for its read methods, but the SDK makes their mutation
methods throw at runtime.
Type Parameters
T
T