UNPKG

weaviate-client

Version:
22 lines (21 loc) • 490 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CommandBase = void 0; class CommandBase { _errors; client; constructor(client) { this.client = client; this._errors = []; } get errors() { return this._errors; } addError(error) { this._errors = [...this.errors, error]; } addErrors(errors) { this._errors = [...this.errors, ...errors]; } } exports.CommandBase = CommandBase;