UNPKG

@renewx/core

Version:

Lightweight state management library with validation support

5 lines (4 loc) 311 B
import type { AnyActionStore, AnyStore } from "../types/any-store"; export declare const isStateChanged: (oldState: any, newState: any) => boolean; export declare const isAnyStore: (v: any) => v is AnyStore; export declare const isActionStore: <State>(store: AnyStore<State>) => store is AnyActionStore<State>;