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

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

## Deprecated

Use TypeSpecLibrary

## Type parameters

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