Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/berhalak/overnew
Dependency injection library
https://github.com/berhalak/overnew
container dependency-injection ioc operators override typescript
Last synced: about 1 month ago
JSON representation
Dependency injection library
- Host: GitHub
- URL: https://github.com/berhalak/overnew
- Owner: berhalak
- License: mit
- Created: 2020-02-12T21:35:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-13T22:05:01.000Z (over 4 years ago)
- Last Synced: 2024-11-13T13:36:08.338Z (about 1 month ago)
- Topics: container, dependency-injection, ioc, operators, override, typescript
- Language: TypeScript
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-Ready--to--Code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/berhalak/overnew)
# overnew
npm install overnew
Simple dependency injection library
Sample:
``` ts
class Service {
}
class ConcreteService {
}
inject.for(Service).create(ConcreteService);
assert(inject(Service) instanceof ConcreteService);
```