diff --git a/src/game/persistence.ts b/src/game/persistence.ts index 1fa6d91..8122542 100644 --- a/src/game/persistence.ts +++ b/src/game/persistence.ts @@ -133,8 +133,7 @@ export function persistent(defaultValue: T | Ref): Persisten * Type guard for whether an arbitrary value is a persistent ref * @param value The value that may or may not be a persistent ref */ -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export function isPersistent(value: any): value is Persistent { +export function isPersistent(value: unknown): value is Persistent { return value != null && typeof value === "object" && PersistentState in value; }