grafana/public/app/features/variables/query
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.tsx Chore: Enable useUnknownInCatchVariables for stricter type checking in catch blocks (#50591) 2022-06-15 08:59:29 +01:00
actions.ts Typed variables pt4: Remove generics from getVariable (#53017) 2022-08-05 13:44:52 +01:00
adapter.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
operators.test.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
operators.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
queryRunners.test.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
queryRunners.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
QueryVariableEditor.test.tsx Typed variables pt1: Use discriminated union for variable model (#52981) 2022-08-02 10:15:25 +01:00
QueryVariableEditor.tsx Variables: allow Regex tooltip links to be clickable (#48560) 2022-05-02 17:44:23 +00:00
QueryVariableRefreshSelect.tsx Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
QueryVariableSortSelect.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
variableQueryObserver.test.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
variableQueryObserver.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
VariableQueryRunner.test.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
VariableQueryRunner.ts Typed variables pt4: Remove generics from getVariable (#53017) 2022-08-05 13:44:52 +01:00