UNPKG

@tdi2/di-core

Version:

TypeScript Dependency Injection 2 - Core DI framework

58 lines (57 loc) 2.08 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(foo: { services: { api: Inject<ApiInterface>; }; }): import("react/jsx-runtime").JSX.Element; export declare function InlineDestructuredNested({ services, }: { services: { api: Inject<ApiInterface>; }; }): import("react/jsx-runtime").JSX.Element; export declare function InlineDestructured({ api }: { 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({ services, }: { 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({ todo, services: { api } }: 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({ todo, ...props }: TodoCardProps): import("react/jsx-runtime").JSX.Element; export {};