UNPKG

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.

16 lines 937 B
import { NativeType } from "../../native/native-type.enum"; import RhineVarBase from "../rhine-var-base.class"; import { InputItem, OutputItem } from "../rhine-var.type"; export default class RhineVarObject<T extends object = any> extends RhineVarBase<T> implements Iterable<[keyof T, OutputItem<T[keyof T]>]> { _type: NativeType.Object; set(key: keyof T, value: InputItem<T[keyof T]>): void; get(key: keyof T): OutputItem<T[keyof T]> | undefined; has(key: keyof T): boolean; forEach(callback: (value: OutputItem<T[keyof T]>, key: keyof T, map: RhineVarObject<T>) => void, thisArg?: any): void; delete(key: keyof T): boolean; keys(): IterableIterator<keyof T>; values(): IterableIterator<OutputItem<T[keyof T]>>; entries(): IterableIterator<[keyof T, OutputItem<T[keyof T]>]>; [Symbol.iterator](): Iterator<[keyof T, OutputItem<T[keyof T]>]>; } //# sourceMappingURL=rhine-var-object.class.d.ts.map