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

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

## Deprecated

Use TypeSpecLibraryDef

## Type parameters

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