UNPKG

@tdi2/di-core

Version:

TypeScript Dependency Injection 2 - Core DI framework

58 lines (57 loc) 2.03 kB
import type { Inject } from "@tdi2/di-core/markers"; import { ApiInterface, TestStateInterface } from "./shared-types"; export declare function InlineValueProps(props: { services: { api: Inject<ApiInterface>; }; }): import("react/jsx-runtime").JSX.Element; export declare function InlineValueFoo(props: { services: { api: Inject<ApiInterface>; }; }): import("react/jsx-runtime").JSX.Element; export declare function InlineDestructuredNested(props: { services: { api: Inject<ApiInterface>; }; }): import("react/jsx-runtime").JSX.Element; export declare function InlineDestructured(props: { api: Inject<ApiInterface>; }): import("react/jsx-runtime").JSX.Element; export declare function InlineDestProps(props: { services: { api: Inject<ApiInterface>; }; }): import("react/jsx-runtime").JSX.Element; export declare function InlineDestructured2ndApi(props: { services: { api: Inject<ApiInterface>; state: Inject<TestStateInterface>; }; }): import("react/jsx-runtime").JSX.Element; export interface Todo { id: string; title: string; completed: boolean; createdAt: Date; updatedAt: Date; } interface TodoCardProps { todo: Todo; services: { api: Inject<ApiInterface>; }; } export declare function TodoCard(props: TodoCardProps): import("react/jsx-runtime").JSX.Element; export declare function TodoCard2(props: TodoCardProps): import("react/jsx-runtime").JSX.Element; /** * FIXME todo from function args too aggressivly removed with DI extract step * Note we already had a similar issue with function body destructuring */ export declare function TodoCard3(props: TodoCardProps): import("react/jsx-runtime").JSX.Element; /** * FIXME todo from function args too aggressivly removed with DI extract step * Note we already had a similar issue with function body destructuring */ export declare function TodoCard4(props: TodoCardProps): import("react/jsx-runtime").JSX.Element; export {};