From 3ca951184fef15d9ed73c1d9488f6c8c7a2a04d0 Mon Sep 17 00:00:00 2001 From: Sibelius Seraphini Date: Thu, 19 Apr 2018 12:01:40 -0300 Subject: [PATCH] feat(flow): prefer string over String --- lib/modules/messaging/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/messaging/index.js b/lib/modules/messaging/index.js index cf163087..52aad936 100644 --- a/lib/modules/messaging/index.js +++ b/lib/modules/messaging/index.js @@ -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;