UNPKG

weaviate-client

Version:
18 lines (17 loc) • 355 B
export 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]; } }