---
jsApi: true
title: "[T] CadlLibrary"

---
```ts
CadlLibrary: <T, E> TypeSpecLibrary< T, E >
```

## Deprecated

Use TypeSpecLibrary

## Type parameters

| Parameter | Default |
| :------ | :------ |
| `T` *extends* \{} | - |
| `E` *extends* `Record`< `string`, `any` \> | `Record`< `string`, `never` \> |
