mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
add partial
This commit is contained in:
parent
8221c4273f
commit
75710d0f2b
@ -30,10 +30,10 @@ export interface PanelEditorProps<T = any> {
|
|||||||
* Called before a panel is initalized
|
* Called before a panel is initalized
|
||||||
*/
|
*/
|
||||||
export type PanelTypeChangedHook<TOptions = any> = (
|
export type PanelTypeChangedHook<TOptions = any> = (
|
||||||
options: TOptions,
|
options: Partial<TOptions>,
|
||||||
prevPluginId?: string,
|
prevPluginId?: string,
|
||||||
prevOptions?: any
|
prevOptions?: any
|
||||||
) => TOptions;
|
) => Partial<TOptions>;
|
||||||
|
|
||||||
export class ReactPanelPlugin<TOptions = any> {
|
export class ReactPanelPlugin<TOptions = any> {
|
||||||
panel: ComponentClass<PanelProps<TOptions>>;
|
panel: ComponentClass<PanelProps<TOptions>>;
|
||||||
|
Loading…
Reference in New Issue
Block a user