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

---
```ts
setTypeSpecNamespace(namespace, ...functions): void
```

Set the TypeSpec namespace for that function.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `namespace` | `string` | Namespace string (e.g. "Foo.Bar") |
| ...`functions` | (...`args`) => `any`[] | Functions |

## Returns

`void`
