2
0
mirror of synced 2025-02-17 00:36:31 +00:00

feat(flow): prefer string over String

This commit is contained in:
Sibelius Seraphini 2018-04-19 12:01:40 -03:00 committed by GitHub
parent 63f85d2790
commit 3ca951184f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;