@commodo/name
Version:
Decorates a function (and its instances) with a name, that can be used for various purposes.
22 lines (18 loc) • 436 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _repropose = require("repropose");
const withName = name => {
return function (fn) {
return (0, _repropose.withProps)({
__withName: name
})((0, _repropose.withStaticProps)({
__withName: name
})(fn));
};
};
var _default = withName;
exports.default = _default;
//# sourceMappingURL=withName.js.map