Merge pull request #1002 from sibelius/patch-2
feat(flow): prefer string over String
This commit is contained in:
commit
dd7d961b24
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue