MonacoQueryFieldProps.ts 531 B

12345678910111213141516
  1. import { HistoryItem } from '@grafana/data';
  2. import type PromQlLanguageProvider from '../../language_provider';
  3. import { PromQuery } from '../../types';
  4. // we need to store this in a separate file,
  5. // because we have an async-wrapper around,
  6. // the react-component, and it needs the same
  7. // props as the sync-component.
  8. export type Props = {
  9. initialValue: string;
  10. languageProvider: PromQlLanguageProvider;
  11. history: Array<HistoryItem<PromQuery>>;
  12. onRunQuery: (value: string) => void;
  13. onBlur: (value: string) => void;
  14. };