grafana/public/app/features/variables/textbox
Josh Hunt 4b4d546e32
Typed variables pt4: Remove generics from getVariable (#53017)
* wip

* make diff easier to read

* Update template_srv getVariables to return new TypedVariableModel

* update VariableType to use the type from TypedVariableModel

* tidy things up

* Chore: Use type-accurate mock variables in tests

* Chore: Type VariableState to use TypedVariableModel

* fix typo

* remove type assertion from template_srv.getVariables

* use typescript/no-redeclare for compatibility with ts overloads

* remove generics from getVariable() and overload it to only return undefined based on arguments

* update usages of getVariable()

* Fix Interval variable options picker not working
2022-08-05 13:44:52 +01:00
..
actions.test.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
actions.ts Typed variables pt4: Remove generics from getVariable (#53017) 2022-08-05 13:44:52 +01:00
adapter.test.ts Incremental improvements to dashboard schema (#48977) 2022-05-17 12:11:09 +01:00
adapter.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
reducer.test.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
reducer.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
TextBoxVariableEditor.tsx Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
TextBoxVariablePicker.tsx Dashboards: Disable variable pickers for snapshots (#52827) 2022-07-29 16:29:55 +01:00