@adpt/core
Version:
AdaptJS core library
7 lines • 422 B
TypeScript
import { AnyState } from "../jsx";
export declare type CombinedState = AnyState;
export declare type HookStateUpdater<S> = (prev: S) => S | Promise<S>;
export declare type SetState<S> = (s: S | HookStateUpdater<S>) => void;
export declare type UseStateInit<S> = S | (() => S);
export declare function useState<ItemState>(init: UseStateInit<ItemState>): [ItemState, SetState<ItemState>];
//# sourceMappingURL=state.d.ts.map