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.

39 lines (38 loc) 1.04 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const native_type_enum_1 = require("../../native/native-type.enum"); const rhine_var_base_class_1 = __importDefault(require("../rhine-var-base.class")); class RhineVarObject extends rhine_var_base_class_1.default { constructor() { super(...arguments); this._type = native_type_enum_1.NativeType.Object; } set(key, value) { } // WARNING: Cannot calculate the corresponding value type based on the key on its own. get(key) { return undefined; } has(key) { return false; } forEach(callback, thisArg) { } delete(key) { return false; } keys() { return {}; } values() { return {}; } entries() { return {}; } [Symbol.iterator]() { return {}; } } exports.default = RhineVarObject;