UNPKG
@asuka/di
Version:
latest (0.3.4)
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.0
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Dependencies inject library
github.com/LeetCode-OpenSource/asuka
LeetCode-OpenSource/asuka
@asuka/di
/
esm
/
inject.d.ts
3 lines
(2 loc)
•
182 B
TypeScript
View Raw
1
2
3
import
{
Type
,
InjectionToken
}
from
'./type'
;
export
declare
function
Inject
<T>(
token
:
Type
<T> |
InjectionToken
<T>): <U>
(
target
:
Type
<U>,
_key
:
string
,
paramIndex
:
number
) =>
void
;