@tdi2/di-core
Version:
TypeScript Dependency Injection 2 - Core DI framework
19 lines (18 loc) • 582 B
TypeScript
import type { Inject, InjectOptional } from "@tdi2/di-core/markers";
import { CacheInterface, RepositoryInterface, LoggerInterface } from './shared-types';
interface UserData {
id: string;
name: string;
}
interface UserEntity {
userId: string;
profile: UserData;
}
export declare function ComplexGenerics(props: {
services: {
cache: Inject<CacheInterface<Map<string, UserData>>>;
repository: Inject<RepositoryInterface<UserEntity>>;
logger?: InjectOptional<LoggerInterface>;
};
}): import("react/jsx-runtime").JSX.Element;
export {};