2
0
mirror of synced 2025-01-11 14:44:12 +00:00
This commit is contained in:
Salakar 2018-04-21 19:00:07 +01:00
commit e985d7f153

View File

@ -20,7 +20,7 @@ type OnMessageObserver = {
next: OnMessage,
};
type OnTokenRefresh = String => any;
type OnTokenRefresh = string => any;
type OnTokenRefreshObserver = {
next: OnTokenRefresh,
@ -101,7 +101,7 @@ export default class Messaging extends ModuleBase {
onTokenRefresh(
nextOrObserver: OnTokenRefresh | OnTokenRefreshObserver
): () => any {
let listener: String => any;
let listener: string => any;
if (isFunction(nextOrObserver)) {
// $FlowExpectedError: Not coping with the overloaded method signature
listener = nextOrObserver;