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
I would like to call the patchUser method and pass null as an argument to remove email address from the user object, however the TS client does not recognise null as a valid parameter type, as it expects it to be either "string" | undefined.
The documentation does say that passing null is a way to remove the property and it works as well.
Can the types be adjusted to allow for null values?
The text was updated successfully, but these errors were encountered:
KristineTrona
changed the title
Patch user request types do not allow for removing a property
Patch user request types do not allow for removing a user property
Feb 5, 2024
Hello,
I would like to call the
patchUser
method and passnull
as an argument to remove email address from the user object, however the TS client does not recognisenull
as a valid parameter type, as it expects it to be either"string" | undefined
.The documentation does say that passing
null
is a way to remove the property and it works as well.Can the types be adjusted to allow for
null
values?The text was updated successfully, but these errors were encountered: