mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
11 lines
344 B
TypeScript
11 lines
344 B
TypeScript
|
import { StoreState } from '../../types';
|
||
|
import { actionCreatorFactory } from '../redux';
|
||
|
|
||
|
export type StateSelector<T extends object> = (state: StoreState) => T;
|
||
|
|
||
|
export interface CleanUp<T extends object> {
|
||
|
stateSelector: StateSelector<T>;
|
||
|
}
|
||
|
|
||
|
export const cleanUpAction = actionCreatorFactory<CleanUp<{}>>('CORE_CLEAN_UP_STATE').create();
|