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

---
```ts
type CadlLibraryDef<T, E>: TypeSpecLibraryDef<T, E>;
```

## Deprecated

Use TypeSpecLibraryDef

## Type parameters

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