Skip to content

Commit

Permalink
[ML] Fix types.
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Sep 28, 2020
1 parent 98223eb commit f0148ff
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 @@ -6,8 +6,8 @@

import { createContext } from 'react';

import { GetSharedReturnType } from '../../shared_imports';
import { GetMlSharedImportsReturnType } from '../../shared_imports';

// This code is a workaround to provide dependencies that are
// loaded dynamically during runtime.
export const MlSharedContext = createContext({} as GetSharedReturnType);
export const MlSharedContext = createContext({} as GetMlSharedImportsReturnType);
4 changes: 2 additions & 2 deletions x-pack/plugins/transform/public/app/app_dependencies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ScopedHistory } from 'kibana/public';
import { useKibana } from '../../../../../src/plugins/kibana_react/public';
import { Storage } from '../../../../../src/plugins/kibana_utils/public';

import type { GetSharedReturnType } from '../shared_imports';
import type { GetMlSharedImportsReturnType } from '../shared_imports';

export interface AppDependencies {
chrome: CoreStart['chrome'];
Expand All @@ -25,7 +25,7 @@ export interface AppDependencies {
storage: Storage;
overlays: CoreStart['overlays'];
history: ScopedHistory;
ml: GetSharedReturnType;
ml: GetMlSharedImportsReturnType;
}

export const useAppDependencies = () => {
Expand Down

0 comments on commit f0148ff

Please sign in to comment.