[F] createTypeSpecLibrary
Create a new TypeSpec library definition.
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.
Tutorial
Create the lib object with as const
to get the full typing.