Types: Adds type safety to appEvents (#19418)

* Types: Add type safety to appEvents
This commit is contained in:
kay delaney
2019-10-14 09:27:47 +01:00
committed by GitHub
parent e7c37cc316
commit 99411bf37a
138 changed files with 991 additions and 508 deletions

View File

@@ -9,6 +9,7 @@ import { store } from 'app/store/store';
import { ContextSrv } from 'app/core/services/context_srv';
import { provideTheme } from 'app/core/utils/ConfigProvider';
import { ErrorBoundaryAlert } from '@grafana/ui';
import { GrafanaRootScope } from './GrafanaCtrl';
function WrapInProvider(store: any, Component: any, props: any) {
return (
@@ -21,7 +22,13 @@ function WrapInProvider(store: any, Component: any, props: any) {
}
/** @ngInject */
export function reactContainer($route: any, $location: any, $injector: any, $rootScope: any, contextSrv: ContextSrv) {
export function reactContainer(
$route: any,
$location: any,
$injector: any,
$rootScope: GrafanaRootScope,
contextSrv: ContextSrv
) {
return {
restrict: 'E',
template: '',