UNPKG

@elsikora/cladi

Version:

Zero-dependency TypeScript DI toolkit with typed tokens and scoped lifecycles.

10 lines 446 B
import type { Token } from '../../type/index'; export interface IDiResolver { resolve<T>(token: Token<T>): T; resolveAll<T>(token: Token<T>): Array<T>; resolveAllAsync<T>(token: Token<T>): Promise<Array<T>>; resolveAsync<T>(token: Token<T>): Promise<T>; resolveOptional<T>(token: Token<T>): T | undefined; resolveOptionalAsync<T>(token: Token<T>): Promise<T | undefined>; } //# sourceMappingURL=resolver.interface.d.ts.map