Tweak isPersistent typing

This commit is contained in:
thepaperpilot 2022-12-26 23:14:12 -06:00
parent 345f8c1cd8
commit c1a66e6666

View file

@ -132,8 +132,7 @@ export function persistent<T extends State>(defaultValue: T | Ref<T>): Persisten
* Type guard for whether an arbitrary value is a persistent ref * Type guard for whether an arbitrary value is a persistent ref
* @param value The value that may or may not be 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: unknown): value is Persistent {
export function isPersistent(value: any): value is Persistent {
return value != null && typeof value === "object" && PersistentState in value; return value != null && typeof value === "object" && PersistentState in value;
} }