Chore: Improve some types (#64675)
* some type fixes * few more * more type fixes * fix the majority of (window as any) calls * don't make new variable for event * few more * MOAR
This commit is contained in:
@@ -10,7 +10,7 @@ type WithGrafanaRuntime<T> = T & {
|
||||
};
|
||||
|
||||
const hasGrafanaRuntime = <T>(obj: T): obj is WithGrafanaRuntime<T> => {
|
||||
return typeof (obj as any)?.grafanaRuntime === 'object';
|
||||
return 'grafanaRuntime' in obj;
|
||||
};
|
||||
|
||||
e2e.benchmark({
|
||||
|
||||
Reference in New Issue
Block a user