mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-22 15:53:09 +00:00
fix: remove messages 'Using strings as events are deprecated'
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import {AppEvent} from './appEvents';
|
||||
|
||||
export interface GraphHoverPayload {
|
||||
pos: any;
|
||||
panel: {
|
||||
id: number;
|
||||
};
|
||||
}
|
||||
|
||||
export var graphHover:(AppEvent<GraphHoverPayload>|string) = {name: 'graph-hover'};
|
||||
export var graphHoverClear:(AppEvent<any>|string) = {name: 'graph-hover-clear'};
|
||||
|
||||
export function fallbackToStringEvents() {
|
||||
graphHover = 'graph-hover';
|
||||
graphHoverClear = 'graph-hover-clear';
|
||||
}
|
||||
Reference in New Issue
Block a user