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
The Translator type is an overloaded function. While the current type considers the 'defaultMessage' to be either 'string' or 'undefined' it does not handle the case where it could be 'string | undefined' while the implementation obviously handles this fine. This change adds this additional case to the 'Translator' type and optionalizes the 'defaultMessage' parameter. This allows a more convenient use of this type by adopters.
0 commit comments