# withViews

Package: `@threadplane/chat` · 0.3.4

Reference: /docs/api/chat/withViews

```typescript
import { withViews } from '@threadplane/chat';
```

## withViews · overload 1

Adds views to a registry without overwriting existing entries.
New keys are added; keys that already exist in `base` are preserved.

```typescript
export declare function withViews(base: ViewRegistry, additions: Record<string, Type<unknown> | RenderViewEntry>): ViewRegistry;
```

```ts
const extended = withViews(a2uiBasicCatalog(), { MyWidget: MyWidgetComponent });
```