rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
21 lines • 760 B
TypeScript
import type { ExcludeFunction } from "./utils";
export declare type UseUndoStateOptions = {
maxSize: number;
};
declare type UseUndoStatePushFunctionArgumentsCallback<T> = (currentValue: T) => T;
export declare type UseUndoStatePushFunction<T> = (argument: T | UseUndoStatePushFunctionArgumentsCallback<T>) => void;
declare type UndoFunction = () => void;
export declare type UseUndoStateReturnValue<T> = [
ExcludeFunction<T>,
UseUndoStatePushFunction<ExcludeFunction<T>>,
UndoFunction
];
export declare type CallbackWithNoArguments = () => void;
export declare type UseGeolocationReturnType = {
isError: boolean;
lat?: number;
lng?: number;
message: string;
};
export {};
//# sourceMappingURL=types.d.ts.map