Skip to content

Commit dc6f73a

Browse files
committed
fix type errors
1 parent 6f0bb56 commit dc6f73a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

x-pack/plugins/index_management/public/application/components/component_templates/component_templates_context.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import React, { createContext, useContext } from 'react';
8-
import { HttpSetup, DocLinksSetup, NotificationsSetup } from 'src/core/public';
8+
import { HttpSetup, DocLinksStart, NotificationsSetup } from 'src/core/public';
99

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

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

x-pack/plugins/index_management/public/application/components/component_templates/lib/documentation.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* you may not use this file except in compliance with the Elastic License.
55
*/
66

7-
import { DocLinksSetup } from 'src/core/public';
7+
import { DocLinksStart } from 'src/core/public';
88

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

x-pack/plugins/infra/public/alerting/metric_threshold/components/expression_chart.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ describe('ExpressionChart', () => {
2727
groupBy?: string
2828
) {
2929
const mocks = coreMock.createSetup();
30+
const startMocks = coreMock.createStart();
3031
const [
3132
{
3233
application: { capabilities },
@@ -38,7 +39,7 @@ describe('ExpressionChart', () => {
3839
toastNotifications: mocks.notifications.toasts,
3940
actionTypeRegistry: actionTypeRegistryMock.create() as any,
4041
alertTypeRegistry: alertTypeRegistryMock.create() as any,
41-
docLinks: mocks.docLinks,
42+
docLinks: startMocks.docLinks,
4243
capabilities: {
4344
...capabilities,
4445
actions: {

0 commit comments

Comments
 (0)