UNPKG

@grafana/runtime

Version:
9 lines (8 loc) 802 B
import React from 'react'; import { DataSourceApi, DataSourceOptionsType, DataSourceQueryType, QueryEditorProps } from '@grafana/data'; import { DataQuery, DataSourceJsonData } from '@grafana/schema'; /** * @alpha Experimental: QueryEditorWithMigration is a higher order component that wraps the QueryEditor component * and ensures that the query is migrated before being passed to the QueryEditor. */ export declare function QueryEditorWithMigration<DSType extends DataSourceApi<TQuery, TOptions>, TQuery extends DataQuery = DataSourceQueryType<DSType>, TOptions extends DataSourceJsonData = DataSourceOptionsType<DSType>>(QueryEditor: React.ComponentType<QueryEditorProps<DSType, TQuery, TOptions>>): (props: QueryEditorProps<DSType, TQuery, TOptions>) => import("react/jsx-runtime").JSX.Element;