Chore: Improve typings 🧹 (#74599)

* various type fixes

* candlestick panel type fixes

* few more fixes

* some fixes

* more :)

* moar!

* undo change to SilencesFilter

* undo change to configureStore
This commit is contained in:
Ashley Harrison
2023-09-13 09:17:07 +01:00
committed by GitHub
parent 5753024ad5
commit 0c44a6f9bb
62 changed files with 335 additions and 566 deletions
@@ -328,7 +328,7 @@ export function describeInterval(str: string) {
);
}
return {
sec: (intervals_in_seconds as any)[matches[2]] as number,
sec: intervals_in_seconds[matches[2] as keyof typeof intervals_in_seconds],
type: matches[2],
count: parseInt(matches[1], 10),
};