UNPKG

ern-api-gen

Version:

Electrode Native API generator

30 lines 861 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); /* tslint:disable:variable-name */ const Property_1 = require("./Property"); const factory_1 = __importDefault(require("../factory")); class ArrayProperty extends Property_1.Property { items(items) { this.setItems(items); return this; } getItems() { return this._items; } setItems(items) { this._items = factory_1.default(items, this); } } ArrayProperty.TYPE = 'array'; ArrayProperty.allowedProps = [ ...Property_1.Property.allowedProps, 'uniqueItems', 'items', 'maxItems', 'minItems', ]; exports.ArrayProperty = ArrayProperty; //# sourceMappingURL=ArrayProperty.js.map