diff --git a/src/game/player.ts b/src/game/player.ts index aa4e789..6271629 100644 --- a/src/game/player.ts +++ b/src/game/player.ts @@ -42,7 +42,7 @@ export type Player = ProxiedWithState; /** A layer's save data. Automatically unwraps refs. */ export type LayerData = { [P in keyof T]?: T[P] extends (infer U)[] - ? LayerData[] + ? Record> : T[P] extends Record ? never : T[P] extends Ref