UNPKG

@analog-tools/inject

Version:

Dependency injection for AnalogJS server-side applications

11 lines (10 loc) 259 B
export interface InjectOptions { /** * Whether to throw an error if the service is not found * @default true */ required?: boolean; } export interface InjectionServiceClass<T, Args extends any[] = any[]> { new (...args: Args): T; }