Cannot access the "page" return type for pagination
I am working with the pagination function provided by convex and I was trying to make a messaging feature for the application I am working on but I cannot access the "page" return type for my application. I get the toString and toLocaleString options instead.
How can i make it work?
4 Replies
for more context I have implimented the paginate in my convex query function
Normally you infer values like that in Convex:
FunctionReturnType<typeof api.messages.getMessages>
Read more about it here: https://docs.convex.dev/production/best-practices/typescript#using-inferred-function-return-types
TypeScript | Convex Developer Hub
Move faster with end-to-end type safety.
yeah I read about it
though I found a way to fix it
now it's fixed
thanks for replying