---
jsApi: true
title: "[F] addService"

---
```ts
addService(
  program,
  namespace,
  details = {}): void
```

Mark the given namespace as a service.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `program` | [`Program`](Interface.Program.md) | Program |
| `namespace` | [`Namespace`](Interface.Namespace.md) | Namespace |
| `details` | [`ServiceDetails`](Namespace.decorators.Interface.ServiceDetails.md) | Service details |

## Returns

`void`
