Fix LayerData typing for handling arrays
This commit is contained in:
parent
7d1346746f
commit
ba47847e39
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ export type Player = ProxiedWithState<PlayerData>;
|
|||
/** A layer's save data. Automatically unwraps refs. */
|
||||
export type LayerData<T> = {
|
||||
[P in keyof T]?: T[P] extends (infer U)[]
|
||||
? LayerData<U>[]
|
||||
? Record<string, LayerData<U>>
|
||||
: T[P] extends Record<string, never>
|
||||
? never
|
||||
: T[P] extends Ref<infer S>
|
||||
|
|
Loading…
Reference in a new issue