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
This is quite weird and it has to do with the CheckEntityIntegrity type utils that seems not to be able to properly infer the entity shape properly if we inline that model directly in the createApi.models.entity field.
lakardion
changed the title
Inlining an entity shape errors on missing id field
Inlining an entity shape errors on missing id field (even though it's there)
Oct 7, 2023
Might end up removing this check altogether, however I feel it is a good typecheck to make sure that people include id in entity since it is used in built-ins
This is quite weird and it has to do with the
CheckEntityIntegrity
type utils that seems not to be able to properly infer the entity shape properly if we inline that model directly in thecreateApi.models.entity
field.Something like this fails the typecheck:
But this one doesn't:
The text was updated successfully, but these errors were encountered: