UNPKG

ts-ioc-container

Version:

Fast, lightweight TypeScript dependency injection container with a clean API, scoped lifecycles, decorators, tokens, hooks, lazy injection, customizable providers, and no global container objects.

8 lines (7 loc) 195 B
export class ContainerError extends Error { name = 'ContainerError'; constructor(message) { super(message); Object.setPrototypeOf(this, ContainerError.prototype); } }