mirror of
https://github.com/thepaperpilot/Advent-Incremental.git
synced 2024-11-24 09:21:48 +00:00
Tweak isPersistent typing
This commit is contained in:
parent
f0ce06e77d
commit
d982110bb3
1 changed files with 1 additions and 2 deletions
|
@ -133,8 +133,7 @@ export function persistent<T extends State>(defaultValue: T | Ref<T>): 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue