mutative
Version:
A JavaScript library for efficient immutable updates
25 lines (24 loc) • 941 B
TypeScript
export declare const setHandler: {
[x: string]: number | (() => void) | ((callback: any, thisArg?: any) => void);
readonly size: number;
has(value: any): boolean;
add(value: any): {
[x: string]: number | (() => void) | ((callback: any, thisArg?: any) => void);
readonly size: number;
has(value: any): boolean;
add(value: any): any;
delete(value: any): boolean;
clear(): void;
values(): IterableIterator<any>;
entries(): IterableIterator<[any, any]>;
keys(): IterableIterator<any>;
forEach(callback: any, thisArg?: any): void;
};
delete(value: any): boolean;
clear(): void;
values(): IterableIterator<any>;
entries(): IterableIterator<[any, any]>;
keys(): IterableIterator<any>;
forEach(callback: any, thisArg?: any): void;
};
export declare const setHandlerKeys: (string | number | symbol)[];