[F] createCadlLibrary
Type Parameters
Type Parameter | Default type |
---|---|
T extends object | - |
E extends Record <string , any > | - |
State extends string | never |
Parameters
Parameter | Type | Description |
---|---|---|
lib | Readonly <TypeSpecLibraryDef <T , E , State >> | Library definition. |
Returns
TypeSpecLibrary
<T
, E
, State
>
Library with utility functions.
Deprecated
use createTypeSpecLibrary
Tutorial
Create the lib object with as const
to get the full typing.