Fix the export metrics format

Summary: Fix the format of the export. Due to unknown reason the changes done in the D14933499 was [reverted back](https://our.intern.facebook.com/intern/diff/D14933499/?src_number=80619316) on the same diff. Thus this diff fixes the format of the metrics export

Reviewed By: passy

Differential Revision: D15239653

fbshipit-source-id: b9416f89e1b0022000d6201eb08ca1f456d5ed2e
This commit is contained in:
Pritesh Nandgaonkar
2019-05-07 08:21:32 -07:00
committed by Facebook Github Bot
parent a89b732765
commit 38f3132b66
4 changed files with 29 additions and 24 deletions

View File

@@ -10,7 +10,7 @@ import type {App} from './App.js';
import type {Logger} from './fb-interfaces/Logger.js';
import type Client from './Client.js';
import type {Store, MiddlewareAPI} from './reducers/index.js';
import type {MetricType} from './utils/exportMetrics.js';
import React from 'react';
import type {Node} from 'react';
import BaseDevice from './devices/BaseDevice.js';
@@ -83,9 +83,9 @@ export class FlipperBasePlugin<
method: string,
data: Object,
) => $Shape<PersistedState>;
static exportMetrics: ?(
static metricsReducer: ?(
persistedState: PersistedState,
) => Promise<Map<string, number | string>>;
) => Promise<MetricType>;
static exportPersistedState: ?(
callClient: (string, ?Object) => Promise<Object>,
persistedState: ?PersistedState,