@stringsync/vexml
Version:
MusicXML to Vexflow
17 lines (16 loc) • 491 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Enum = void 0;
/** An enumeration of string values. */
class Enum {
values;
constructor(values) {
this.values = values;
}
/** Type predicate that returns whether or not the value is one of the choices. */
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
includes(value) {
return this.values.includes(value);
}
}
exports.Enum = Enum;