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

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

## Deprecated

Use TypeSpecLibrary

## Type parameters

| Parameter | Value |
| :------ | :------ |
| `T` extends `Object` | - |
| `E` extends `Record`<`string`, `any`\> | `Record`<`string`, `never`\> |
