sequelize-typescript
Version:
Decorators and some other features for sequelize
17 lines • 502 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseAssociation = void 0;
class BaseAssociation {
constructor(associatedClassGetter, options) {
this.associatedClassGetter = associatedClassGetter;
this.options = options;
}
getAssociatedClass() {
return this.associatedClassGetter();
}
getAs() {
return this.options.as;
}
}
exports.BaseAssociation = BaseAssociation;
//# sourceMappingURL=base-association.js.map
;