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
Currently even with the nulls attribute set to false, the return type of all model methods indicates that non-nullable attribute is: AttributeType | undefined | null.
Would be great to have AttributeType | undefined in those cases.
The idea would be to have : type Entity<T extends OneModel> = Flatten<Merge<Required<T>, Optional<T>>> instead of type Entity<T extends OneModel> = Flatten<Merge<Required<T>, OptionalOrNull<T>>>
wdyt? happy to help if I can!
The text was updated successfully, but these errors were encountered:
Hello again!
Currently even with the
nulls
attribute set to false, the return type of all model methods indicates that non-nullable attribute is:AttributeType | undefined | null
.Would be great to have
AttributeType | undefined
in those cases.The idea would be to have :
type Entity<T extends OneModel> = Flatten<Merge<Required<T>, Optional<T>>>
instead oftype Entity<T extends OneModel> = Flatten<Merge<Required<T>, OptionalOrNull<T>>>
wdyt? happy to help if I can!
The text was updated successfully, but these errors were encountered: