# useServices

Returns the services. Throws when called outside a [`ServicesProvider`](https://docs.mapcairn.com/api/map/ServicesProvider.md),
because a missing provider is a wiring bug, not a runtime condition.

This is a function exported by `@mapcairn/map`, checked against version 0.2.0.

## Signature

```ts
import { useServices } from "@mapcairn/map";
 
function useServices(): Services;
```

## Returns

`Services`

## See also

- [`Services`](https://docs.mapcairn.com/api/core/Services.md)

Source: [packages/map/src/services/ServicesProvider.tsx:42](https://github.com/MapCairn/mapcairn/blob/main/packages/map/src/services/ServicesProvider.tsx#L42)
