mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Refactor: Make SelectOptionItem a generic type to enable select value typing (#16718)
* Make SelectOptionItem a generic type to enable select value typing * TS ignores added because of optional value on Select items (it's no longer any)
This commit is contained in:
@@ -8,7 +8,7 @@ import { SelectOptionItem } from '@grafana/ui';
|
||||
export interface Props {
|
||||
onChange: (perSeriesAligner) => void;
|
||||
templateSrv: TemplateSrv;
|
||||
alignOptions: SelectOptionItem[];
|
||||
alignOptions: Array<SelectOptionItem<string>>;
|
||||
perSeriesAligner: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ export interface Props {
|
||||
}
|
||||
|
||||
interface State extends StackdriverQuery {
|
||||
alignOptions: SelectOptionItem[];
|
||||
alignOptions: Array<SelectOptionItem<string>>;
|
||||
lastQuery: string;
|
||||
lastQueryError: string;
|
||||
[key: string]: any;
|
||||
|
||||
Reference in New Issue
Block a user