forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathredux-devtools-log-monitor.d.ts
55 lines (47 loc) · 1.6 KB
/
redux-devtools-log-monitor.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
// Type definitions for redux-devtools-log-monitor 1.0.11
// Project: https://github.com/gaearon/redux-devtools-log-monitor
// Definitions by: Petryshyn Sergii <https://github.com/mc-petry>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../react/react.d.ts" />
/// <reference path="../base16/base16.d.ts" />
declare module "redux-devtools-log-monitor" {
import * as React from 'react'
import {ColorScheme} from 'base16'
interface ILogMonitorProps {
/**
* Either a string referring to one of the themes provided by
* redux-devtools-themes or a custom object of the same format.
*
* @see https://github.com/gaearon/redux-devtools-themes
*/
theme?: string | ColorScheme
/**
* A function that selects the slice of the state for DevTools to show.
*
* @example state => state.thePart.iCare.about.
* @default state => state.
*/
select?: (state: any) => any
/**
* When true, records the current scroll top every second so it
* can be restored on refresh. This only has effect when used together
* with persistState() enhancer from Redux DevTools.
*
* @default true
*/
preserveScrollTop?: boolean
/**
* When true, displays the action object expanded rather than collapsed.
*
* @default true
*/
expandActionRoot?: boolean
/**
* When true, displays the state object expanded rather than collapsed.
*
* @default true
*/
expandStateRoot?: boolean
}
export default class LogMonitor extends React.Component<ILogMonitorProps, any> {}
}