rhine-var
Version:
Variables that support multi-user collaboration and persistence, making collaboration and variable operations as simple as possible, with strict and well-defined type hints.
20 lines • 822 B
TypeScript
import RhineVarBase from "../rhine-var-base.class";
import { NativeType } from "../../native/native-type.enum";
import { InputItem } from "../rhine-var.type";
export default class RhineVarMap<T = any, N = any> extends RhineVarBase<{
[key: string]: T;
}> implements Iterable<[string, T]> {
_type: NativeType.Map;
size: number;
set(key: string, value: InputItem<N>): void;
get(key: string): T | undefined;
has(key: string): boolean;
forEach(callback: (value: T, key: string, map: this) => void, thisArg?: any): void;
delete(key: string): boolean;
clear(): void;
keys(): IterableIterator<string>;
values(): IterableIterator<T>;
entries(): IterableIterator<[string, T]>;
[Symbol.iterator](): IterableIterator<[string, T]>;
}
//# sourceMappingURL=rhine-var-map.class.d.ts.map