Skip to content

Commit

Permalink
Fix TS bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Mar 23, 2020
1 parent 69631a4 commit 87a7f58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import React, { createContext, ReactNode, useState, useContext } from 'react';
import { HttpSetup } from 'src/core/public';
import { HttpSetup, ChromeStart } from 'src/core/public';

import { Links } from '../../links';
import { Store, Payload, Validation } from '../types';
Expand All @@ -16,6 +16,7 @@ interface AppContextProviderArgs {
value: {
http: HttpSetup;
links: Links;
chrome: ChromeStart;
};
}

Expand All @@ -24,6 +25,7 @@ interface ContextValue {
updatePayload: (changes: Partial<Payload>) => void;
services: {
http: HttpSetup;
chrome: ChromeStart;
};
links: Links;
}
Expand Down
5 changes: 3 additions & 2 deletions x-pack/plugins/painless_lab/public/application/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@
import React from 'react';
import { render, unmountComponentAtNode } from 'react-dom';
import { CoreSetup, CoreStart } from 'kibana/public';
import { HttpSetup, ChromeStart } from 'src/core/public';
import { createKibanaReactContext } from '../../../../../src/plugins/kibana_react/public';

import { Links } from '../links';
import { AppContextProvider } from './context';
import { Main } from './components/main';

interface AppDependencies {
http: CoreSetup['http'];
http: HttpSetup;
I18nContext: CoreStart['i18n']['Context'];
uiSettings: CoreSetup['uiSettings'];
links: Links;
chrome: CoreSetup['chrome'];
chrome: ChromeStart;
}

export function renderApp(
Expand Down

0 comments on commit 87a7f58

Please sign in to comment.