Can't correctly type fields from a table to my NextTS application
This is more of a pure TS question than Convex, but at least it originates from the types of one of my convex function definitions. I'm getting this type error when trying to
build
my project (been fixing them by the dozens as we get ready for deployment) : Now obviously that is a huge mouthful.8 Replies
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!
It's coming from this definition : being read by this : being fed into this component : . DeleteDialog has the following interface & declaration that I've been muddling through : . I feel like I researched & put in all these XORs for nothing and I'm still getting the same result. Any help at all would be appreciated - thank you!
The XORs are from a package called
ts-essentials
FWIW - this code all works/worked perfectly in our development environment (before I went crazy with all this typing)
deleteFunction
@jamalsoueidan thanks for this, will try it out in the morning, appreciate the prompt response!
@jamalsoueidan oh, I just realized... orgId can't be optional... it is always present, and sometimes it is null, because that's what's needed for clerk
I suppose I could rework the concept of orgId but that would be a pretty big change to the application as a whole
Your code might be tightly coupled that's why big change,,,
@jamalsoueidan now I'm just getting a different build error instead : from my call of the function :