createSchema<T
>(descriptor
: Schema
<T
>): Readonly
<Schema
<T
>>
Utility function to create a schema descriptor.
Type Parameters
Type Parameter | Description |
---|
T
| The type of the schema data. |
Parameters
Parameter | Type | Description |
---|
descriptor
| Schema <T >
| The schema descriptor. |
Returns
Readonly
<Schema
<T
>>
The schema type.
Defined in
types/schema.ts:21