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
|
Rev | Line | |
---|
[d565449] | 1 | export 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 | }
|
---|
| 8 | export interface Actions<K> extends StableActions<K> {
|
---|
| 9 | has: (key: K) => boolean;
|
---|
| 10 | }
|
---|
| 11 | declare const useSet: <K>(initialSet?: Set<K>) => [Set<K>, Actions<K>];
|
---|
| 12 | export default useSet;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.