Skip to main content

index/functions/createLimitSchema.md

createLimitSchema(maxLimit?): ZodDefault<ZodNumber>

Limit schema factory - creates limit schemas with custom max values

Parameters​

ParameterTypeDescription
maxLimit?numberMaximum items per page

Returns​

ZodDefault<ZodNumber>