mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
typing changes
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
export interface AppNotification {
|
||||
id: number;
|
||||
severity: string;
|
||||
icon: string;
|
||||
title: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
export interface AppNotificationsState {
|
||||
appNotifications: AppNotification[];
|
||||
}
|
||||
18
public/app/types/appNotifications.ts
Normal file
18
public/app/types/appNotifications.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
export interface AppNotification {
|
||||
id?: number;
|
||||
severity: AppNotificationSeverity;
|
||||
icon: string;
|
||||
title: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
export enum AppNotificationSeverity {
|
||||
Success = 'success',
|
||||
Warning = 'warning',
|
||||
Error = 'error',
|
||||
Info = 'info',
|
||||
}
|
||||
|
||||
export interface AppNotificationsState {
|
||||
appNotifications: AppNotification[];
|
||||
}
|
||||
@@ -9,7 +9,7 @@ import { ApiKey, ApiKeysState, NewApiKey } from './apiKeys';
|
||||
import { Invitee, OrgUser, User, UsersState } from './user';
|
||||
import { DataSource, DataSourcesState } from './datasources';
|
||||
import { PluginDashboard, PluginMeta, Plugin, PluginsState } from './plugins';
|
||||
import { AppNotification, AppNotificationsState } from './alerts';
|
||||
import { AppNotification, AppNotificationSeverity, AppNotificationsState } from './appNotifications';
|
||||
|
||||
export {
|
||||
Team,
|
||||
@@ -49,6 +49,7 @@ export {
|
||||
PluginDashboard,
|
||||
AppNotification,
|
||||
AppNotificationsState,
|
||||
AppNotificationSeverity,
|
||||
};
|
||||
|
||||
export interface StoreState {
|
||||
|
||||
Reference in New Issue
Block a user