UNPKG

210 BTypeScriptView Raw
1declare function useSet<K>(initialValue?: Iterable<K>): readonly [Set<K>, {
2 readonly add: (key: K) => void;
3 readonly remove: (key: K) => void;
4 readonly reset: () => void;
5}];
6export default useSet;