mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Types: Adds type safety to appEvents (#19418)
* Types: Add type safety to appEvents
This commit is contained in:
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user