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

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

## Parameters

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

## Returns

`string` \| `undefined`
