Home > @websublime/schema > ObjectType
ObjectType() function
Creates instance ObjectType
Signature:
export declare function ObjectType<T>(shape?: Properties<Omit<T, 'toJSON'>>, errorMessage?: string): ObjectSchemaType<T>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| shape | Properties<Omit<T, 'toJSON'>> | |
| errorMessage | string |
Returns: