UNPKG
@nteract/mythic-notifications
Version:
latest (0.2.11)
pre (0.1.8-alpha.0)
prerelease (0.2.8-alpha.0)
0.2.11
0.2.10
0.2.9
0.2.8
0.2.8-alpha.0
0.2.7-alpha.0
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.9
0.1.8
0.1.8-alpha.0
0.1.7-alpha.0
0.1.6
0.1.6-alpha.0
0.1.5-alpha.0
0.1.4-alpha.0
0.1.3-alpha.0
0.1.2-alpha.0
0.1.1-alpha.0
A notification system based on blueprintjs toasters and the myths redux framework
@nteract/mythic-notifications
/
src
/
myths
/
initialize-system.ts
9 lines
(7 loc)
•
273 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
{ notifications }
from
"../package"
;
import
{
NotificationSystem
}
from
"../types"
;
export
const
initializeSystem = notifications.
createMyth
(
"initializeSystem"
)<
NotificationSystem
>({
reduce
:
(
state, action
) =>
state.
set
(
"current"
, action.
payload
) });