grammy-class-composer
Version:
A simple composer to use Grammy js in a more Object oriented way
19 lines • 667 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Inline = void 0;
const Registry_1 = require("./Registry");
function Inline(query = "") {
return function (target, propertyKey) {
const classInstance = (0, Registry_1.createOrFindClassEntry)(target);
if (classInstance == undefined) {
throw "No class Instance found for method: " + propertyKey;
}
classInstance.entries.push({
propertyKey: propertyKey,
query: query,
type: Registry_1.MethodType.INLINE,
});
};
}
exports.Inline = Inline;
//# sourceMappingURL=Inline.js.map