Skip to content

Commit e26a2d4

Browse files
committed
Add ts-ignore for grafana/data APIs
1 parent abf356e commit e26a2d4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

grafana/flamegraph/src/module.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
// @ts-ignore
23
import { ExplorePanelProps, PanelPlugin, PanelProps } from '@grafana/data';
34
import FlameGraphContainer from './components/FlameGraphContainer';
45

@@ -10,4 +11,9 @@ export const FlameExploreGraphPanel: React.FunctionComponent<ExplorePanelProps>
1011
return <FlameGraphContainer data={props.data[0]} />;
1112
};
1213

14+
// We use ts-ignore here because setExplorePanel and ExplorePanelProps are part of a draft PR that isn't yet merged.
15+
// We could solve this by linking but that has quite a bit of issues with regard of resolving dependencies downstream
16+
// in grafana/data and also needs some custom modification in grafana repo so for now this seems to be easier as the
17+
// there is not that much to the API.
18+
// @ts-ignore
1319
export const plugin = new PanelPlugin(FlameGraphPanel).setExplorePanel(FlameExploreGraphPanel, ['profile']);

0 commit comments

Comments
 (0)