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.

4 lines (3 loc) 113 B
export function isDependencyKey(target) { return typeof target === 'symbol' || typeof target === 'string'; }