mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 04:04:00 -06:00
1d689888b0
* Updated package json but not updated source files * Update eslint plugin * updated files
10 lines
527 B
TypeScript
10 lines
527 B
TypeScript
import { getFilteredVariables, getVariables, getVariableWithName } from '../../app/features/variables/state/selectors';
|
|
import { StoreState } from '../../app/types';
|
|
import { TemplateSrvDependencies } from 'app/features/templating/template_srv';
|
|
|
|
export const getTemplateSrvDependencies = (state: StoreState): TemplateSrvDependencies => ({
|
|
getFilteredVariables: (filter) => getFilteredVariables(filter, state),
|
|
getVariableWithName: (name) => getVariableWithName(name, state),
|
|
getVariables: () => getVariables(state),
|
|
});
|