UNPKG

@tdi2/di-core

Version:

TypeScript Dependency Injection 2 - Core DI framework

17 lines (16 loc) 484 B
import type { Inject, InjectOptional } from "@tdi2/di-core/markers"; import { ApiInterface, LoggerInterface, CacheInterface } from "./shared-types"; export interface SeparateComponentProps { userId: string; services: { api: Inject<ApiInterface>; logger: Inject<LoggerInterface>; cache?: InjectOptional<CacheInterface<any>>; }; } export interface SimpleComponentProps { title: string; services: { api: Inject<ApiInterface>; }; }