1.8.0 • Published 4 months 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
4 months ago
1.7.0
4 months ago
1.6.0
4 months ago
1.5.6
4 months ago
1.5.5
5 months ago
1.5.3
5 months ago
1.5.2
5 months ago
1.5.1
5 months ago
1.5.0
5 months ago
1.4.0
5 months ago
1.3.0
5 months ago
1.2.0
6 months ago
1.0.2
7 months ago
1.0.1
8 months ago
0.8.0
8 months ago
0.1.0
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago
0.0.0
1 year ago