Breaking change

pull/94544/head
Esteban Beltran 9 months ago
parent c41c8c2026
commit 8eb30ac110
No known key found for this signature in database
  1. 11
      packages/grafana-data/src/types/panel.ts

@ -102,9 +102,6 @@ export interface PanelProps<T = any> {
/** @internal */
renderCounter: number;
/** Panel title */
title: string;
/** Grafana EventBus */
eventBus: EventBus;
@ -154,13 +151,13 @@ export type PanelTypeChangedHandler<TOptions = any> = (
export type PanelOptionEditorsRegistry = Registry<PanelOptionsEditorItem>;
export interface PanelOptionsEditorProps<TValue> extends StandardEditorProps<TValue> {}
export interface PanelOptionsEditorProps<TValue> extends StandardEditorProps<TValue> { }
export interface PanelOptionsEditorItem<TOptions = any, TValue = any, TSettings = any>
extends OptionsEditorItem<TOptions, TSettings, PanelOptionsEditorProps<TValue>, TValue> {}
extends OptionsEditorItem<TOptions, TSettings, PanelOptionsEditorProps<TValue>, TValue> { }
export interface PanelOptionsEditorConfig<TOptions, TSettings = any, TValue = any>
extends OptionEditorConfig<TOptions, TSettings, TValue> {}
extends OptionEditorConfig<TOptions, TSettings, TValue> { }
/**
* @internal
@ -358,7 +355,7 @@ export class VisualizationSuggestionsListAppender<TOptions, TFieldConfig> {
constructor(
private list: VisualizationSuggestion[],
private defaults: VisualizationSuggestion<TOptions, TFieldConfig>
) {}
) { }
append(overrides: Partial<VisualizationSuggestion<TOptions, TFieldConfig>>) {
this.list.push(defaultsDeep(overrides, this.defaults));

Loading…
Cancel
Save