-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typing issues on DataStore.save #4
Comments
^ Has this package been tested / used before with DataStore? |
@sbue No, unfortunately not. That's why I couldn't reply you. I don't know much about DateStore. I need to do some investigation if I want to solve the issue. And I'm not sure whether it's possible. |
Damn, just hit this one too. I can't see how this can be fixed within this package, the issue is when DataStore is generating the models (using |
Which means that as is this transformer can't be used with DataStore. |
Actually I'll take that back, the error I was caused by another bug in Amplify at the moment giving me a false negative. Will double check and report back. |
Consider this example:
It results in the following typing issue: "TS2345: ...Property 'createdAt' is missing in type..."
I am able to fix this by changing the createdAt field to
readonly createdAt?: string;
in the generated models file, but I am escalating this here in case it can be fixed from within this package.Thanks!
The text was updated successfully, but these errors were encountered: