-
Notifications
You must be signed in to change notification settings - Fork 342
/
types.ts
29 lines (25 loc) · 1.13 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 BookmarkBtnState } from './bookmark-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 RibbonBtnState } from './sidebar-open-button/reducer'
import { State as TooltipBtnState } from './tooltip-button/reducer'
import { State as PopupState } from './reducer'
import type { Props as ActivityIndicatorProps } from 'src/activity-indicator/ui'
export interface RootState {
bookmarkBtn?: BookmarkBtnState
collectionsBtn: CollectionsBtnState
pauseBtn?: PauseBtnState
sidebarBtn?: SidebarBtnState
sidebarOpenBtn?: RibbonBtnState
tooltipBtn?: TooltipBtnState
notifsBtn?: NotifsBtnState
popup?: PopupState
activityIndicator: ActivityIndicatorProps
}
export type ClickHandler<T extends HTMLElement> = (
e: React.SyntheticEvent<T>,
) => void
export type Thunk<R = void> = ThunkAction<R, RootState, void, any>