From c1a66e6666503c5650d8cf8cd680ce7a6cb500df Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 26 Dec 2022 23:14:12 -0600 Subject: [PATCH] Tweak isPersistent typing --- src/game/persistence.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game/persistence.ts b/src/game/persistence.ts index 4f4714f..01e4c96 100644 --- a/src/game/persistence.ts +++ b/src/game/persistence.ts @@ -132,8 +132,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; }