UNPKG

@tdi2/di-core

Version:

TypeScript Dependency Injection 2 - Core DI framework

12 lines (11 loc) 491 B
import type { Inject, InjectOptional } from "@tdi2/di-core/markers"; import { ApiInterface, LoggerInterface, CacheInterface, UserServiceInterface } from "./shared-types"; export declare function ComplexComponent(props: { userId: string; services: { api: Inject<ApiInterface>; logger: Inject<LoggerInterface>; cache?: InjectOptional<CacheInterface<any>>; user?: InjectOptional<UserServiceInterface>; }; }): import("react/jsx-runtime").JSX.Element;