Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
plugins
/
datasource
/
tempo
/
_importedDependencies
/
File Content:
store.ts
import { Store } from 'redux'; export let store: Store<StoreState>; export const initialKeyedVariablesState: any = { keys: {} }; type StoreState = ReturnType<ReturnType<any>>; export function setStore(newStore: Store<StoreState>) { store = newStore; } export function getState(): StoreState { if (!store || !store.getState) { return { templating: { ...initialKeyedVariablesState, lastKey: 'key' } } as StoreState; // used by tests } return store.getState(); } // This was `any` before export function dispatch(action: any) { if (!store || !store.getState) { return; } return store.dispatch(action); }
Edit
Rename
Chmod
Delete
FILE
FOLDER
INFO
Name
Size
Permission
Action
actions
---
0755
components
---
0755
core
---
0755
datasources
---
0755
test
---
0755
types
---
0755
README.md
395 bytes
0644
store.ts
630 bytes
0644
N4ST4R_ID | Naxtarrr