UNPKG

react-obsidian

Version:

Dependency injection framework for React and React Native applications

14 lines 619 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.lateInject = lateInject; const decorators_1 = require("../../utils/decorators"); const lateInject_legacy_1 = require("./lateInject.legacy"); const lateInject_modern_1 = require("./lateInject.modern"); function lateInject(name) { return (...args) => { return (0, decorators_1.shouldUseModernDecorator)(args) ? (0, lateInject_modern_1.modernDecorator)(name, args[0], args[1]) : (0, lateInject_legacy_1.legacyDecorator)(name, args[0], args[1], args[2]); }; } //# sourceMappingURL=LateInject.js.map