/
githubmirror
/
hyper
Обзор
Документация
Войти
/
githubmirror
/
hyper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.2.2
lib/constants/notifications.ts
15 строк
455 B
Labhansh Agrawal
Add action types
29 дек 2019, 17:55
29 дек 2019, 17:55
38c534b
Код
Авторство
О чём код?
export const NOTIFICATION_MESSAGE = 'NOTIFICATION_MESSAGE'; export const NOTIFICATION_DISMISS = 'NOTIFICATION_DISMISS'; export interface NotificationMessageAction { type: typeof NOTIFICATION_MESSAGE; text: string; url: string | null; dismissable: boolean; } export interface NotificationDismissAction { type: typeof NOTIFICATION_DISMISS; id: string; } export type NotificationActions = NotificationMessageAction | NotificationDismissAction;