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:
Ashley Harrison
2023-05-22 11:53:58 +01:00
committed by GitHub
parent 623c014cda
commit e8ca3c0409
48 changed files with 187 additions and 298 deletions

View File

@@ -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,
};
};