UNPKG

soda-angular

Version:
20 lines (19 loc) 523 B
export class Between { constructor(column, from, to) { if (!column) { throw new Error("Column must be provided"); } if (!from) { throw new Error("From value must be provided"); } if (!to) { throw new Error("To value must be provided"); } this.Column = column; this.From = from; this.To = to; } toString() { return `${this.Column} between ${this.From} and ${this.To}`; } }