typing changes

This commit is contained in:
Peter Holmberg
2018-10-24 10:18:28 +02:00
parent bd2f9a38d9
commit 3e0a34ceca
5 changed files with 25 additions and 23 deletions

View File

@@ -1,11 +0,0 @@
export interface AppNotification {
id: number;
severity: string;
icon: string;
title: string;
text: string;
}
export interface AppNotificationsState {
appNotifications: AppNotification[];
}

View 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[];
}

View File

@@ -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 {