DeepReadonly
DeepReadonly<
T> =TextendsEntity?T:TextendsVector3?ReadonlyVector3:TextendsQuaternion?ReadonlyQuaternion:TextendsVector2?ReadonlyVector2:Textends (…args) =>unknown?T:TextendsReadonlyMap<infer Key, infer Value> ?ReadonlyMap<Key,DeepReadonly<Value>> :TextendsReadonlySet<infer Value> ?ReadonlySet<DeepReadonly<Value>> :Textends readonly …[] ? readonlyDeepReadonly<…>[] :Textendsobject?{ readonly [Key in keyof (...)]: DeepReadonly<(...)> }:T
T with no field a reader can change, at any depth, and three’s
vectors and quaternions as their read-only views. A mapped type leaves
a class’s own methods callable, so another class’s methods that write,
such as a Color’s set, stay callable: the type does not cover them.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |