---
jsApi: true
title: "[F] $service"

---
```ts
$service(ctx, target): void
```

Decorate an interface as a service, indicating that it represents a Protobuf `service` declaration.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `ctx` | `DecoratorContext` | decorator context |
| `target` | `Interface` | the decorated interface |

## Returns

`void`
