Type 'null' is not assignable to type 'PropertyKey'. #64
Unanswered
boris-jenicek
asked this question in
Q&A
Replies: 1 comment 3 replies
-
The |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I got to the wall with this, as I see I should make a whole new interface just for the store entity because it can't be a null type as the entity interface in the project has. In the project, due the validation object is created with all null values then is populated with data. In the case of ID property, it is also null when it is created until it is saved through API and after API returns ID it is populated with type number and should be saved to the store/state.
The entity will never be sent to the store with a null value, but still, it is needed. Do you have any suggestions that are not turning of strict type from the project?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions