Chore: Update and enforce usage of typed react-redux hooks (#55349)

* Chore: Update and enforce usage of typed react-redux hooks
This commit is contained in:
kay delaney
2022-09-19 10:49:35 +01:00
committed by GitHub
parent a3ff758874
commit 64bbb7a7ce
85 changed files with 207 additions and 247 deletions

View File

@@ -21,9 +21,14 @@ export interface ExploreTracePanelState {
spanId?: string;
}
export interface SplitOpenOptions<T> {
datasourceUid: string;
query: T;
range?: TimeRange;
panelsState?: ExplorePanelsState;
}
/**
* SplitOpen type is used in Explore and related components.
*/
export type SplitOpen = <T extends DataQuery = any>(
options?: { datasourceUid: string; query: T; range?: TimeRange; panelsState?: ExplorePanelsState } | undefined
) => void;
export type SplitOpen = <T extends DataQuery = any>(options?: SplitOpenOptions<T> | undefined) => void;