You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which implies at least id, creator_id, name, metadata should be not marked as nullable. Is there something I am missing (e.g. partial requests etc)? If not, I can figure a way to update the .d.ts files to take this into account.
The text was updated successfully, but these errors were encountered:
@orta Thanks for the feedback. You're right I think we've been a little loose with the nullable types in the Type definition file. Would appreciate a pull request on it if you get the chance 🙏
I've dug into this a bit, while the .d.ts generator doesn't account for whether something is optional in its code that is more of a downstream problem I believe.
The .d.ts file is generated from the swagger doc, which doesn't contain the info about the nullability of a property (and so my first attempt at looking at it in this repo isn't really enough.) we'd need to figure out how to get it represented in the json files in the nakama repo first
Hey folks, I was going through some of the d.ts files and spotted that the types don't necessarily match the nullability in the db, for example:
vs
Which implies at least
id
,creator_id
,name
,metadata
should be not marked as nullable. Is there something I am missing (e.g. partial requests etc)? If not, I can figure a way to update the .d.ts files to take this into account.The text was updated successfully, but these errors were encountered: