typedi
Version:
Dependency injection for TypeScript.
7 lines (6 loc) • 447 B
TypeScript
import { ServiceMetadata } from './service-metadata.interface';
/**
* The public ServiceOptions is partial object of ServiceMetadata and either one
* of the following is set: `type`, `factory`, `value` but not more than one.
*/
export declare type ServiceOptions<T = unknown> = Omit<Partial<ServiceMetadata<T>>, 'type' | 'factory'> | Omit<Partial<ServiceMetadata<T>>, 'value' | 'factory'> | Omit<Partial<ServiceMetadata<T>>, 'value' | 'type'>;