Files
grafana/public/app/stores/store.ts
Tobias Skarhed 8a99fa269d WIP Update tslint (#12922)
* Interface linting rule

* fix: changed model names in store files so that the interface names do not conflict with the model names
2018-08-24 16:48:47 +02:00

17 lines
320 B
TypeScript

import { RootStore, RootStoreInterface } from './RootStore/RootStore';
import config from 'app/core/config';
export let store: RootStoreInterface;
export function createStore(services) {
store = RootStore.create(
{},
{
...services,
navTree: config.bootData.navTree,
}
);
return store;
}