@qodalis/cli-core
Version:
Core Angular CLI for @qodalis extensions.
21 lines (20 loc) • 615 B
TypeScript
type MultiServices = {
/**
* When true, injector returns an array of instances. This is useful to allow multiple
* providers spread across many files to provide configuration information to a common token.
*/
multi?: boolean;
};
export type CliValueProvider = MultiServices & {
useValue: any;
};
export type CliTypeProvider = MultiServices & {
useClass: any;
};
export type CliFactoryProvider = MultiServices & {
useFactory: Function;
};
export type CliProvider = {
provide: any;
} & (CliValueProvider | CliTypeProvider | CliFactoryProvider) & Record<string, any>;
export {};