mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
11 lines
284 B
TypeScript
11 lines
284 B
TypeScript
export interface Actions<K, V> {
|
|
get: (key: K) => any;
|
|
set: (key: K, value: V) => void;
|
|
remove: (key: K) => void;
|
|
reset: () => void;
|
|
}
|
|
declare const useMap: <T extends {
|
|
[key: string]: any;
|
|
}>(initialMap?: any) => [T, Actions<string, any>];
|
|
export default useMap;
|