input validation type for paginationOpts?
What type should I use for input validation for paginationOpts?
1 Reply
Copying this from another thread. If you're using input validation on an endpoint that takes in
paginationOpts
for paginating data, you have two options for types:
Or paginationOpts: v.any()
As long as you're just passing the pagination options into paginate
, it's safe to not type check it, as paginate
will throw an error if it's a bad format.
Vote with a ➕ if you'd like us to provide v.paginationOpts()