forked from WorldBrain/Memex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
29 lines (25 loc) · 1.09 KB
/
types.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
import { ThunkAction } from 'redux-thunk'
import { State as BlacklistBtnState } from './blacklist-button/reducer'
import { State as BookmarkBtnState } from './bookmark-button/reducer'
import { State as TagsBtnState } from './tags-button/reducer'
import { State as CollectionsBtnState } from './collections-button/reducer'
import { State as PauseBtnState } from './pause-button/reducer'
import { State as NotifsBtnState } from './notif-button/reducer'
import { State as SidebarBtnState } from './sidebar-button/reducer'
import { State as TooltipBtnState } from './tooltip-button/reducer'
import { State as PopupState } from './reducer'
export interface RootState {
blacklistBtn?: BlacklistBtnState
bookmarkBtn?: BookmarkBtnState
tagsBtn: TagsBtnState
collectionsBtn: CollectionsBtnState
pauseBtn?: PauseBtnState
sidebarBtn?: SidebarBtnState
tooltipBtn?: TooltipBtnState
notifsBtn?: NotifsBtnState
popup?: PopupState
}
export type ClickHandler<T extends HTMLElement> = (
e: React.SyntheticEvent<T>,
) => void
export type Thunk<R = void> = ThunkAction<R, RootState, void, any>