/
githubmirror
/
hyper
Обзор
Документация
Войти
/
githubmirror
/
hyper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v3.2.2
lib/actions/notifications.ts
18 строк
450 B
Labhansh Agrawal
add/update action creators types
02 янв 2020, 23:11
02 янв 2020, 23:11
9485b32
Код
Авторство
О чём код?
import {NOTIFICATION_MESSAGE, NOTIFICATION_DISMISS} from '../constants/notifications'; import {HyperActions} from '../hyper'; export function dismissNotification(id: string): HyperActions { return { type: NOTIFICATION_DISMISS, id }; } export function addNotificationMessage(text: string, url: string | null = null, dismissable = true): HyperActions { return { type: NOTIFICATION_MESSAGE, text, url, dismissable }; }