-
-
Notifications
You must be signed in to change notification settings - Fork 310
/
layout.ts
32 lines (22 loc) · 909 Bytes
/
layout.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { Action } from '@ngrx/store';
export const START_LOADING = 'START_LOADING';
export const STOP_LOADING = 'STOP_LOADING';
export const SET_WINDOW_NAME = 'SET_WINDOW_NAME';
export const NOTIFY_EXPERIMENTAL = 'NOTIFY_EXPERIMENTAL';
export class StartLoadingAction implements Action {
readonly type = START_LOADING;
constructor(public windowId: string) {}
}
export class StopLoadingAction implements Action {
readonly type = STOP_LOADING;
constructor(public windowId: string) {}
}
export class SetWindowNameAction implements Action {
readonly type = SET_WINDOW_NAME;
constructor(public windowId: string, public payload: string) {}
}
export class NotifyExperimentalAction implements Action {
readonly type = NOTIFY_EXPERIMENTAL;
constructor(public windowId: string) {}
}
export type Action = StartLoadingAction | StopLoadingAction | SetWindowNameAction | NotifyExperimentalAction;