0.15.2 • Published 4 days ago
@wendellhu/redi v0.15.2
redi
A dependency library for TypeScript and JavaScript, along with a binding for React.
Overview
import { Inject } from '@wendellhu/redi'
class AuthService {
public getCurrentUserInfo(): UserInfo {}
}
class FileListService {
constructor(@Inject(AuthService) private readonly authService: AuthService) {}
public getUserFiles(): Promise<Files> {
const currentUser = this.authService.getCurrentUserInfo()
}
}
const injector = new Injector([[AuthService], [FileListService]])
injector.get(AuthService)
View full documentation on redi.wendell.fun.
Links
Users
- Univer
- Team Lark at ByteDance
License
MIT. Copyright 2021-present Wenzhao Hu.
0.15.2
4 days ago
0.15.0
7 days ago
0.15.1
7 days ago
0.14.0
10 days ago
0.13.4
21 days ago
0.13.2
27 days ago
0.13.3
27 days ago
0.13.1
28 days ago
0.13.0
3 months ago
0.12.13
5 months ago
0.12.12
5 months ago
0.12.10
7 months ago
0.12.11
6 months ago
0.12.7
9 months ago
0.12.8
8 months ago
0.12.9
7 months ago
0.11.0
9 months ago
0.12.0
9 months ago
0.12.1
9 months ago
0.12.2
9 months ago
0.12.3
9 months ago
0.12.4
9 months ago
0.12.6
9 months ago
0.10.0
10 months ago
0.9.0
10 months ago
0.8.0
10 months ago
0.6.5
11 months ago
0.7.0
10 months ago
0.6.1-hotfix.0
1 year ago
0.6.3
1 year ago
0.6.2
1 year ago
0.6.4
1 year ago
0.5.0
2 years ago
0.6.1
1 year ago
0.5.2
2 years ago
0.6.0
2 years ago
0.5.1
2 years ago
0.3.2
3 years ago
0.4.0
2 years ago
0.3.1
3 years ago
0.3.0
3 years ago
0.2.1
3 years ago
0.2.0
3 years ago
0.2.6
3 years ago
0.2.3
3 years ago
0.2.2
3 years ago
0.2.4
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago