Documentation / @andrew_l/ioc / ioc
Function: ioc()
ioc<
Key
>(id
):IocMap
[Key
]
Get instance of service
Type Parameters
• Key extends never
Parameters
• id: Key
Returns
IocMap
[Key
]
Example
ts
const userService ioc('UserService');