UNPKG

react-obsidian

Version:

Dependency injection framework for React and React Native applications

14 lines 514 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.graph = graph; const GraphRegistry_1 = __importDefault(require("../graph/registry/GraphRegistry")); function graph({ subgraphs = [] } = {}) { return (Clazz) => { GraphRegistry_1.default.register(Clazz, subgraphs); return Clazz; }; } //# sourceMappingURL=Graph.js.map