forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
redux-devtools.d.ts
109 lines (92 loc) · 2.74 KB
/
redux-devtools.d.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// Type definitions for redux-devtools 2.1.4
// Project: https://github.com/gaearon/redux-devtools
// Definitions by: Qubo <https://github.com/tkqubo>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../redux/redux.d.ts" />
/// <reference path="../react/react.d.ts" />
declare module "redux-devtools" {
export function devTools(): Function;
export function persistState(sessionId: any, stateDeserializer?: Function, actionDeserializer?: Function): Function;
}
declare module "redux-devtools/lib/react" {
import * as React from 'react';
export class DevTools extends React.Component<any, any> {
}
export interface DevToolsProps {
monitor: Function;
store: Store;
}
export interface Store {
devToolStore: DevToolStore;
}
export class DevToolStore extends React.Component<any, any> {
dispatch: Function;
}
export class DebugPanel extends React.Component<DebugPanelProps, any> { }
export interface DebugPanelProps {
position?: string;
zIndex?: number;
fontSize?: string;
overflow?: string;
opacity?: number;
color?: string;
left?: boolean|number;
right?: boolean|number;
top?: boolean|number;
bottom?: boolean|number;
maxHeight?: string;
maxWidth?: string;
wordWrap?: string;
boxSizing?: string;
boxShadow?: string;
getStyle?: () => DebugPanelProps;
}
export class LogMonitor extends React.Component<LogMonitorProps, any> { }
export interface LogMonitorProps {
computedStates?: ComputedState[];
currentStateIndex?: number;
monitorState?: MonitorState;
stagedActions?: Action[];
skippedActions?: boolean[];
reset?: Function;
commit?: Function;
rollback?: Function;
sweep?: Function;
toggleAction?: Function;
jumpToState?: Function;
setMonitorState?: Function;
select?: Function;
visibleOnLoad?: boolean;
theme?: Theme|string;
}
export interface ComputedState {
state?: any;
error?: string;
}
export interface MonitorState {
isViaible?: boolean;
}
export interface Action {
type: string;
}
export interface Theme {
scheme: string;
author: string;
base00: string;
base01: string;
base02: string;
base03: string;
base04: string;
base05: string;
base06: string;
base07: string;
base08: string;
base09: string;
base0A: string;
base0B: string;
base0C: string;
base0D: string;
base0E: string;
base0F: string;
}
}