Type check help - Passing an Object of type Doc<"table_name"> but has partial values
I'm basically wondering if there's another way of Doing this type here? where the body is supposed to be of type Doc<"settings"> but partially has that type?
2 Replies
https://github.com/get-convex/convex-helpers/blob/10958f8f04dc1c86383b6562a5a697f8ad10dd66/packages/convex-helpers/validators.ts#L60 might be what you want?
GitHub
convex-helpers/packages/convex-helpers/validators.ts at 10958f8f04d...
A collection of useful code to complement the official packages. - get-convex/convex-helpers
hey, sorry I replied to this late, but yep this is what I had been looking for, thanks!