missing columns in typings?
second time ive had this issue now in a different project than the last, no answer on my last post
9 Replies
better first screenshot
Any columns with defaults or nullable, is not required during insert, because they have default they can be left blank
Problem is that it gives a typescript error when I try to insert with them
But runtime it’s fine
Can I see your tsconfig?
GitHub
files/tsconfig.json at main · mxz7/files
Contribute to mxz7/files development by creating an account on GitHub.
Now that I think about it, even columns with defaults should show as optional
What about ./.svelte-kit/tsconfig.json
?
apologies for late reply
There are seeral things in your tsconfig that catch my attention.
"strict": false,
and strictNullChecks not present. Can yo try first setting strict to true and then strictNullChecks?
I don't think strictNullChecks is the reason, but strict might beoh shit yeah strict works
thank you very much