UNPKG

@tdi2/di-core

Version:

TypeScript Dependency Injection 2 - Core DI framework

62 lines (61 loc) 2.61 kB
var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); // tools/functional-di-enhanced-transformer/__tests__/__fixtures__/inline-destructured.basic.input.tsx function InlineValueProps(props) { const { services } = props; return /* @__PURE__ */ React.createElement("div", null, services.api.getData(), "Mixed dependencies component"); } __name(InlineValueProps, "InlineValueProps"); function InlineValueFoo(foo) { const { services } = foo; return /* @__PURE__ */ React.createElement("div", null, services.api.getData(), "Mixed dependencies component"); } __name(InlineValueFoo, "InlineValueFoo"); function InlineDestructuredNested({ services }) { return /* @__PURE__ */ React.createElement("div", null, services.api.getData(), "Mixed dependencies component"); } __name(InlineDestructuredNested, "InlineDestructuredNested"); function InlineDestructured({ api }) { return /* @__PURE__ */ React.createElement("div", null, api.getData(), "Mixed dependencies component"); } __name(InlineDestructured, "InlineDestructured"); function InlineDestProps(props) { const { services: { api } } = props; return /* @__PURE__ */ React.createElement("div", null, api.getData(), "Mixed dependencies component"); } __name(InlineDestProps, "InlineDestProps"); function InlineDestructured2ndApi({ services }) { return /* @__PURE__ */ React.createElement("div", null, services.state.value, "Mixed dependencies component"); } __name(InlineDestructured2ndApi, "InlineDestructured2ndApi"); function TodoCard(props) { const { todo, services: { api } } = props; return /* @__PURE__ */ React.createElement("div", null, todo.completed ? "completed" : "not completed"); } __name(TodoCard, "TodoCard"); function TodoCard2(props) { const { todo, services: {} } = props; return /* @__PURE__ */ React.createElement("div", null, todo.completed ? "completed" : "not completed"); } __name(TodoCard2, "TodoCard2"); function TodoCard3({ todo, services: { api } }) { return /* @__PURE__ */ React.createElement("div", null, todo.completed ? "completed" : "not completed"); } __name(TodoCard3, "TodoCard3"); function TodoCard4({ todo, ...props }) { return /* @__PURE__ */ React.createElement("div", null, todo.completed ? "completed" : "not completed"); } __name(TodoCard4, "TodoCard4"); export { InlineDestProps, InlineDestructured, InlineDestructured2ndApi, InlineDestructuredNested, InlineValueFoo, InlineValueProps, TodoCard, TodoCard2, TodoCard3, TodoCard4 }; //# sourceMappingURL=inline-destructured.basic.input.js.map