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

ParameterTypeDescription
shapeProperties<Omit<T, 'toJSON'>>
errorMessagestring

Returns:

ObjectSchemaType<T>