Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
iblancof committed Oct 25, 2024
1 parent 3a6dbfa commit 7a98daa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import type { SpacesPluginStart } from '@kbn/spaces-plugin/public';
import type { HttpStart } from '@kbn/core-http-browser';
import { action } from '@storybook/addon-actions';
import type { InventoryKibanaContext } from '../public/hooks/use_kibana';
import { TelemetryClient } from '../public/services/telemetry/telemetry_client';
import { ITelemetryClient } from '../public/services/telemetry/types';

export function getMockInventoryContext(): InventoryKibanaContext {
const coreStart = coreMock.createStart();
Expand All @@ -42,7 +42,7 @@ export function getMockInventoryContext(): InventoryKibanaContext {
},
},
} as unknown as SharePluginStart,
telemetry: {} as unknown as TelemetryClient,
telemetry: {} as unknown as ITelemetryClient,
unifiedSearch: {} as unknown as UnifiedSearchPublicPluginStart,
dataViews: {} as unknown as DataViewsPublicPluginStart,
data: {} as unknown as DataPublicPluginStart,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/

import type { InventoryAPIClient } from '../api';
import { TelemetryClient } from './telemetry/telemetry_client';
import { ITelemetryClient } from './telemetry/types';

export interface InventoryServices {
inventoryAPIClient: InventoryAPIClient;
telemetry: TelemetryClient;
telemetry: ITelemetryClient;
}

0 comments on commit 7a98daa

Please sign in to comment.