File tree Expand file tree Collapse file tree 4 files changed +20
-9
lines changed Expand file tree Collapse file tree 4 files changed +20
-9
lines changed Original file line number Diff line number Diff line change 66 * Side Public License, v 1.
77 */
88
9- export { ReportHTTP , Reporter , ReporterConfig } from './reporter' ;
10- export { UiCounterMetricType , METRIC_TYPE } from './metrics' ;
11- export { Report , ReportManager } from './report' ;
9+ // Export types separately to the actual run-time objects
10+ export type { ReportHTTP , ReporterConfig } from './reporter' ;
11+ export type { UiCounterMetricType } from './metrics' ;
12+ export type { Report } from './report' ;
13+ export type { Storage } from './storage' ;
14+
15+ export { Reporter } from './reporter' ;
16+ export { METRIC_TYPE } from './metrics' ;
17+ export { ReportManager } from './report' ;
1218export { ApplicationUsageTracker } from './application_usage_tracker' ;
13- export { Storage } from './storage' ;
Original file line number Diff line number Diff line change 66 * Side Public License, v 1.
77 */
88
9- import { UiCounterMetric } from './ui_counter' ;
10- import { UserAgentMetric } from './user_agent' ;
11- import { ApplicationUsageMetric } from './application_usage' ;
9+ import type { UiCounterMetric } from './ui_counter' ;
10+ import type { UserAgentMetric } from './user_agent' ;
11+ import type { ApplicationUsageMetric } from './application_usage' ;
1212
13- export { UiCounterMetric , createUiCounterMetric , UiCounterMetricType } from './ui_counter' ;
13+ // Export types separately to the actual run-time objects
14+ export type { ApplicationUsageMetric } from './application_usage' ;
15+ export type { UiCounterMetric , UiCounterMetricType } from './ui_counter' ;
16+
17+ export { createUiCounterMetric } from './ui_counter' ;
1418export { trackUsageAgent } from './user_agent' ;
15- export { createApplicationUsageMetric , ApplicationUsageMetric } from './application_usage' ;
19+ export { createApplicationUsageMetric } from './application_usage' ;
1620
1721export type Metric = UiCounterMetric | UserAgentMetric | ApplicationUsageMetric ;
1822export enum METRIC_TYPE {
Original file line number Diff line number Diff line change @@ -46,3 +46,4 @@ export const LodashFp = require('lodash/fp');
4646
4747// runtime deps which don't need to be copied across all bundles
4848export const TsLib = require ( 'tslib' ) ;
49+ export const KbnAnalytics = require ( '@kbn/analytics' ) ;
Original file line number Diff line number Diff line change @@ -57,5 +57,6 @@ exports.externals = {
5757 * runtime deps which don't need to be copied across all bundles
5858 */
5959 tslib : '__kbnSharedDeps__.TsLib' ,
60+ '@kbn/analytics' : '__kbnSharedDeps__.KbnAnalytics' ,
6061} ;
6162exports . publicPathLoader = require . resolve ( './public_path_loader' ) ;
You can’t perform that action at this time.
0 commit comments