keep as it was originally for now

This commit is contained in:
Ashley Harrison
2023-08-29 12:00:04 +01:00
parent 01a3078d64
commit 295125eacc
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -118,7 +118,9 @@ exports[`better eslint`] = {
[0, 0, 0, "Do not use any type assertions.", "5"],
[0, 0, 0, "Do not use any type assertions.", "6"],
[0, 0, 0, "Do not use any type assertions.", "7"],
[0, 0, 0, "Do not use any type assertions.", "8"]
[0, 0, 0, "Do not use any type assertions.", "8"],
[0, 0, 0, "Do not use any type assertions.", "9"],
[0, 0, 0, "Do not use any type assertions.", "10"]
],
"packages/grafana-data/src/datetime/parser.ts:5381": [
[0, 0, 0, "Do not use any type assertions.", "0"],
@@ -133,7 +133,7 @@ export const dateTimeForTimeZone = (
if (timezone && timezone !== 'browser') {
// TODO fix types here
//@ts-ignore
return moment.tz(dateTimeAsMoment(input), formatInput, timezone);
return moment.tz(input as MomentInput, formatInput, timezone) as DateTime;
}
return dateTime(input, formatInput);