@clickup/ent-framework
Version:
A PostgreSQL graph-database-alike library with microsharding and row-level security
17 lines • 449 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.VCHasFlavor = void 0;
/**
* Checks that the VC has some flavor.
*/
class VCHasFlavor {
constructor(Flavor) {
this.Flavor = Flavor;
this.name = this.constructor.name + ":" + this.Flavor.name;
}
async check(vc) {
return !!vc.flavor(this.Flavor);
}
}
exports.VCHasFlavor = VCHasFlavor;
//# sourceMappingURL=VCHasFlavor.js.map
;