Skip to content

Commit

Permalink
fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Jun 18, 2020
1 parent 6f0bb56 commit dc6f73a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import React, { createContext, useContext } from 'react';
import { HttpSetup, DocLinksSetup, NotificationsSetup } from 'src/core/public';
import { HttpSetup, DocLinksStart, NotificationsSetup } from 'src/core/public';

import { getApi, getUseRequest, getSendRequest, getDocumentation } from './lib';

Expand All @@ -15,7 +15,7 @@ interface Props {
httpClient: HttpSetup;
apiBasePath: string;
trackMetric: (type: 'loaded' | 'click' | 'count', eventName: string) => void;
docLinks: DocLinksSetup;
docLinks: DocLinksStart;
toasts: NotificationsSetup['toasts'];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { DocLinksSetup } from 'src/core/public';
import { DocLinksStart } from 'src/core/public';

export const getDocumentation = ({ ELASTIC_WEBSITE_URL, DOC_LINK_VERSION }: DocLinksSetup) => {
export const getDocumentation = ({ ELASTIC_WEBSITE_URL, DOC_LINK_VERSION }: DocLinksStart) => {
const docsBase = `${ELASTIC_WEBSITE_URL}guide/en`;
const esDocsBase = `${docsBase}/elasticsearch/reference/${DOC_LINK_VERSION}`;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('ExpressionChart', () => {
groupBy?: string
) {
const mocks = coreMock.createSetup();
const startMocks = coreMock.createStart();
const [
{
application: { capabilities },
Expand All @@ -38,7 +39,7 @@ describe('ExpressionChart', () => {
toastNotifications: mocks.notifications.toasts,
actionTypeRegistry: actionTypeRegistryMock.create() as any,
alertTypeRegistry: alertTypeRegistryMock.create() as any,
docLinks: mocks.docLinks,
docLinks: startMocks.docLinks,
capabilities: {
...capabilities,
actions: {
Expand Down

0 comments on commit dc6f73a

Please sign in to comment.