grafana/public/app/features/variables/constant
Josh Hunt 081d6e9d3e
Typed variables pt5: Remove generics from getInstanceState (#53018)
* 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()

* Remove generic from getInstanceState

* update usages of getInstanceState

* fix lint
2022-08-10 16:06:49 +01:00
..
actions.test.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
actions.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
adapter.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
ConstantVariableEditor.tsx 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 Typed variables pt5: Remove generics from getInstanceState (#53018) 2022-08-10 16:06:49 +01:00