UNPKG
stepdad
Version:
latest (1.0.2-3)
next (1.0.2-2)
1.0.2-3
1.0.2-2
1.0.2-1
1.0.2-0
1.0.1
Stupid simple and lightweight dependency injection
github.com/mikro/stepdad
mikro/stepdad
stepdad
/
src
/
decorators
/
Inject.ts
6 lines
(4 loc)
•
140 B
text/typescript
View Raw
1
2
3
4
5
6
import
{
Type
}
from
'../interfaces/Type'
export
const
Inject
= ():
(
(target: Type<
any
>) =>
void
) =>
{
return
(
target
:
Type
<
any
>
) =>
{} }