@baizey/dependency-injection
Version:
A simple typescript dependency injection
10 lines (9 loc) • 399 B
TypeScript
import { Key } from '../ServiceCollection';
import { DependencyError } from './DependencyError';
import { DependencyErrorType } from './types';
export declare class CircularDependencyError extends Error implements DependencyError {
readonly type: DependencyErrorType;
readonly lifetime: string;
readonly provided: Key<any>[];
constructor(lifetime: Key<any>, provided: Key<any>[]);
}