Skip to content

Commit dbcc254

Browse files
author
Corey Robertson
committed
fix types
1 parent dbfd7ee commit dbcc254

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

x-pack/plugins/canvas/public/application.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ import { CanvasStartDeps, CanvasSetupDeps } from './plugin';
1818
// @ts-ignore Untyped local
1919
import { App } from './components/app';
2020
import { KibanaContextProvider } from '../../../../src/plugins/kibana_react/public';
21-
import { initInterpreter, resetInterpreter } from './lib/run_interpreter';
21+
import { initInterpreter } from './lib/run_interpreter';
2222
import { registerLanguage } from './lib/monaco_language_def';
2323
import { SetupRegistries } from './plugin_api';
2424
import { initRegistries, populateRegistries, destroyRegistries } from './registries';
2525
import { getDocumentationLinks } from './lib/documentation_links';
2626
// @ts-ignore untyped component
2727
import { HelpMenu } from './components/help_menu/help_menu';
28-
import { createStore, destroyStore } from './store';
28+
import { createStore } from './store';
2929

3030
import { VALUE_CLICK_TRIGGER, ActionByType } from '../../../../src/plugins/ui_actions/public';
3131
/* eslint-disable */
@@ -35,12 +35,13 @@ import { init as initStatsReporter } from './lib/ui_metric';
3535

3636
import { CapabilitiesStrings } from '../i18n';
3737

38-
import { startServices, stopServices, services } from './services';
38+
import { startServices, services } from './services';
3939
// @ts-ignore Untyped local
4040
import { destroyHistory } from './lib/history_provider';
4141
// @ts-ignore Untyped local
4242
import { stopRouter } from './lib/router_provider';
43-
import { unloadApp } from './state/actions/app';
43+
// @ts-ignore Untyped local
44+
import { appUnload } from './state/actions/app';
4445

4546
import './style/index.scss';
4647

@@ -82,7 +83,7 @@ export const renderApp = (
8283
);
8384
return () => {
8485
ReactDOM.unmountComponentAtNode(element);
85-
canvasStore.dispatch(unloadApp());
86+
canvasStore.dispatch(appUnload());
8687
};
8788
};
8889

x-pack/plugins/canvas/public/state/middleware/workpad_autoplay.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { getFullscreen } from '../selectors/app';
1010
import { getInFlight } from '../selectors/resolved_args';
1111
import { getWorkpad, getPages, getSelectedPageIndex, getAutoplay } from '../selectors/workpad';
1212
// @ts-ignore untyped local
13-
import { unloadApp } from '../actions/app';
13+
import { appUnload } from '../actions/app';
1414
// @ts-ignore Untyped Local
1515
import { routerProvider } from '../../lib/router_provider';
1616
import { setAutoplayInterval } from '../../lib/app_state';
@@ -86,7 +86,7 @@ export const workpadAutoplay: Middleware<{}, State> = ({ getState }) => next =>
8686
stopAutoUpdate();
8787
}
8888

89-
if (action.type === unloadApp.toString()) {
89+
if (action.type === appUnload.toString()) {
9090
stopAutoUpdate();
9191
}
9292
};

x-pack/plugins/canvas/public/state/middleware/workpad_refresh.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { fetchAllRenderables } from '../actions/elements';
1111
// @ts-ignore Untyped Local
1212
import { setRefreshInterval } from '../actions/workpad';
1313
// @ts-ignore Untyped Local
14-
import { unloadApp } from '../actions/app';
14+
import { appUnload } from '../actions/app';
1515
import { inFlightComplete } from '../actions/resolved_args';
1616
import { getInFlight } from '../selectors/resolved_args';
1717
import { getRefreshInterval } from '../selectors/workpad';
@@ -84,7 +84,7 @@ export const workpadRefresh: Middleware<{}, State> = ({ dispatch, getState }) =>
8484
}
8585
}
8686

87-
if (action.type === unloadApp.toString()) {
87+
if (action.type === appUnload.toString()) {
8888
cancelDelayedUpdate();
8989
}
9090
};

0 commit comments

Comments
 (0)