UNPKG

ts-ioc-container

Version:
9 lines (8 loc) 458 B
import type { IRegistration } from '../registration/IRegistration'; import type { IProvider } from './IProvider'; export interface ProviderPipe<T = unknown> { mapProvider(p: IProvider<T>): IProvider<T>; mapRegistration(r: IRegistration<T>): IRegistration<T>; } export declare const isProviderPipe: <T>(obj: unknown) => obj is ProviderPipe<T>; export declare const registerPipe: <T>(mapProvider: (p: IProvider<T>) => IProvider<T>) => ProviderPipe<T>;