Brendan Falk
Brendan Falk5d ago

Lint return validators

Hi there - we have noticed a lot of errors in production where a handler's return value does not exactly match the return validators. This is super frustrating and we would ideally like to catch with a linter as opposed to at runtime. Should the existing linter be doing this? Does anyone have suggestions for how we can enforce this? We use typescript
4 Replies
Convex Bot
Convex Bot5d ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Brendan Falk
Brendan FalkOP5d ago
Two examples of where the linter is catching something but there are errors at runtime:
No description
No description
Brendan Falk
Brendan FalkOP5d ago
Or more clear example
Brendan Falk
Brendan FalkOP5d ago
No description

Did you find this page helpful?