@tdi2/di-core
Version:
TypeScript Dependency Injection 2 - Core DI framework
16 lines (15 loc) • 559 B
TypeScript
import type { Inject, InjectOptional } from "@tdi2/di-core/markers";
import { ApiInterface, LoggerInterface, CacheInterface, UserServiceInterface } from './shared-types';
export declare function ComplexComponent(props: {
userId: string;
config: {
theme: string;
debug: boolean;
};
services: {
api: Inject<ApiInterface>;
logger: Inject<LoggerInterface>;
cache?: InjectOptional<CacheInterface<any>>;
user?: InjectOptional<UserServiceInterface>;
};
}): import("react/jsx-runtime").JSX.Element;