1.8.0 • Published 1 year ago
@viness/core v1.8.0
@viness/di
A lightweight di framework base on vscode instantiation.
Installation
npm install --save @viness/core
Get Start
import { Container, createDecorator } from '@viness/core'
const container = new Container();
const ITestService = createDecorator('ITestService')
interface ITestService {
hello(): void
}
class TestService implements ITestService {
hello(): void {
console.log('hello world');
}
}
container.register(ITestService, TestService)
Todo
- support initialize mult-isntances of a service
- support complex hierarchical DI systems: one container can have multiple parents or children
1.8.0
1 year ago
1.7.0
1 year ago
1.6.0
1 year ago
1.5.6
2 years ago
1.5.5
2 years ago
1.5.3
2 years ago
1.5.2
2 years ago
1.5.1
2 years ago
1.5.0
2 years ago
1.4.0
2 years ago
1.3.0
2 years ago
1.2.0
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
0.8.0
2 years ago
0.1.0
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago
0.0.0
2 years ago