mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-27 16:40:57 +00:00
4 lines
283 B
TypeScript
4 lines
283 B
TypeScript
export type UseSetStateCallback<T> = (state: Partial<T> | ((currentState: T) => Partial<T>)) => void;
|
|
export type UseSetStateReturnValue<T> = [T, UseSetStateCallback<T>];
|
|
export declare function useSetState<T extends Record<string, any>>(initialState: T): UseSetStateReturnValue<T>;
|