source: imaps-frontend/node_modules/react-use/lib/useSet.d.ts@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 353 bytes
Line 
1export interface StableActions<K> {
2 add: (key: K) => void;
3 remove: (key: K) => void;
4 toggle: (key: K) => void;
5 reset: () => void;
6 clear: () => void;
7}
8export interface Actions<K> extends StableActions<K> {
9 has: (key: K) => boolean;
10}
11declare const useSet: <K>(initialSet?: Set<K>) => [Set<K>, Actions<K>];
12export default useSet;
Note: See TracBrowser for help on using the repository browser.