mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 02:23:31 -06:00
* Refactor: moves all the newVariables part to features/variables directory * Feature: adds datasource type * Tests: adds reducer tests * Tests: covers data source actions with tests * Chore: reduces strict null errors
20 lines
657 B
TypeScript
20 lines
657 B
TypeScript
import { combineReducers } from '@reduxjs/toolkit';
|
|
import { optionsPickerReducer, OptionsPickerState } from '../pickers/OptionsPicker/reducer';
|
|
import { variableEditorReducer, VariableEditorState } from '../editor/reducer';
|
|
import { variablesReducer } from './variablesReducer';
|
|
import { VariableModel } from '../../templating/variable';
|
|
|
|
export interface TemplatingState {
|
|
variables: Record<string, VariableModel>;
|
|
optionsPicker: OptionsPickerState;
|
|
editor: VariableEditorState;
|
|
}
|
|
|
|
export default {
|
|
templating: combineReducers({
|
|
optionsPicker: optionsPickerReducer,
|
|
editor: variableEditorReducer,
|
|
variables: variablesReducer,
|
|
}),
|
|
};
|