UNPKG

@tdi2/di-core

Version:

TypeScript Dependency Injection 2 - Core DI framework

30 lines (29 loc) 1.05 kB
var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); // tools/functional-di-enhanced-transformer/__tests__/__fixtures__/inline-mixed-deps.basic.transformed.snap.tsx import React from "react"; function InlineMixedDeps(props) { const api = props.api; if (!api) { throw new Error("Could not find implementation for 'ApiInterface'"); } const cache = props.services?.cache; const { config } = props; if (!cache) { throw new Error("Could not find implementation for 'CacheInterface<any>'"); } const user = props.services?.user; if (!user) { throw new Error("Could not find implementation for 'UserServiceInterface'"); } api.getData(); logger.log(""); user.processData([]); cache?.get("foo"); return /* @__PURE__ */ React.createElement("div", null, "Mixed dependencies component", config); } __name(InlineMixedDeps, "InlineMixedDeps"); export { InlineMixedDeps }; //# sourceMappingURL=inline-mixed-deps.basic.transformed.snap.js.map