UNPKG

contentful-migration

Version:
32 lines 726 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Link = exports.default = void 0; class Link { constructor(element, field, locale, index = -1) { this._field = field; this._locale = locale; this._index = index; this._element = element; } get field() { return this._field; } get locale() { return this._locale; } get index() { return this._index; } get element() { return this._element; } isValid() { return this._field.length > 0; } isInArray() { return this._index !== -1; } } exports.default = Link; exports.Link = Link; //# sourceMappingURL=link.js.map