mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: More typescript improvements 💪 (#68699)
* fix some anys * some canvas/geomap improvements * some more panel type fixes * just omit the type in TagOption
This commit is contained in:
@@ -195,7 +195,7 @@ export const safeParseJson = (text?: string): any | undefined => {
|
||||
}
|
||||
};
|
||||
|
||||
export const safeStringifyValue = (value: any, space?: number) => {
|
||||
export const safeStringifyValue = (value: unknown, space?: number) => {
|
||||
if (value === undefined || value === null) {
|
||||
return '';
|
||||
}
|
||||
@@ -469,8 +469,8 @@ export const getTimeRangeFromUrl = (
|
||||
};
|
||||
|
||||
return {
|
||||
from: dateMath.parse(raw.from, false, timeZone as any)!,
|
||||
to: dateMath.parse(raw.to, true, timeZone as any)!,
|
||||
from: dateMath.parse(raw.from, false, timeZone)!,
|
||||
to: dateMath.parse(raw.to, true, timeZone)!,
|
||||
raw,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user