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

---
```ts
findBaseUri(program, target): string | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | `Program` |
| `target` | `Namespace` \| [`JsonSchemaDeclaration`](Type.JsonSchemaDeclaration.md) |

## Returns

`string` \| `undefined`
