UNPKG

typedi

Version:

Dependency injection for TypeScript.

20 lines 926 B
/** * We have a hard dependency on reflect-metadata package. * Without the dependency lookup wont work. So we should warn the users * when it's not loaded. */ // if(!Reflect || !(Reflect as any).getMetadata) { // throw new Error('Reflect.getMetadata is not a function. Please import the "reflect-metadata" package at the first line of your application.'); // } import { Container } from './container.class'; export * from './decorators/inject-many.decorator'; export * from './decorators/inject.decorator'; export * from './decorators/service.decorator'; export * from './error/cannot-inject-value.error'; export * from './error/cannot-instantiate-value.error'; export * from './error/service-not-found.error'; export { ContainerInstance } from './container-instance.class'; export { Container } from './container.class'; export { Token } from './token.class'; export default Container; //# sourceMappingURL=index.js.map