@nestjs/common
Version:
Nest - modern, fast, powerful node.js web framework (@common)
15 lines (14 loc) • 432 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Binds parameters decorators to the method
* Useful when the language doesn't provide a 'Parameter Decorators' feature
* @param {} ...decorators
*/
function Bind(...decorators) {
return (target, key, descriptor) => {
decorators.forEach((fn, index) => fn(target, key, index));
return descriptor;
};
}
exports.Bind = Bind;