Home > @xoram/core > useService
useService() function
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Signature:
typescript
export declare function useService<id extends keyof ServiceCollection>(serviceId: id): ServiceCollection[id];
1
Parameters
Parameter | Type | Description |
---|---|---|
serviceId | id | the id of the service to access |
Returns: