DataStore - TypeScript - Type inconsistency #4809
Labels
DataStore
Related to DataStore category
to-be-reproduced
Used in order for Amplify to reproduce said issue
Hi
Here is my types
I am using CRA with typescript template on client side.
I observe Report in order to add it to my list when I create a new one:
Generated models are
It does not work because msg.element is not a Report with a project key. When I log the element received in msg, I have
I can cast the type to read
reportProjectId
but it would be more convenient to have correct type.Thanks
The text was updated successfully, but these errors were encountered: