forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathredux-devtools-dock-monitor.d.ts
59 lines (49 loc) · 1.55 KB
/
redux-devtools-dock-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
56
57
58
59
// Type definitions for redux-devtools-dock-monitor 1.0.1
// Project: https://github.com/gaearon/redux-devtools-dock-monitor
// Definitions by: Petryshyn Sergii <https://github.com/mc-petry>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../react/react.d.ts" />
declare module "redux-devtools-dock-monitor" {
import * as React from 'react'
interface IDockMonitorProps {
/**
* Any valid Redux DevTools monitor.
*/
children?: React.ReactNode
/**
* A key or a key combination that toggles the dock visibility.
* Must be recognizable by parse-key (for example, 'ctrl-h')
*/
toggleVisibilityKey: string
/**
* A key or a key combination that toggles the dock position.
* Must be recognizable by parse-key (for example, 'ctrl-w')
*/
changePositionKey: string
/**
* When true, the dock size is a fraction of the window size, fixed otherwise.
*
* @default true
*/
fluid?: boolean
/**
* Size of the dock. When fluid is true, a float (0.5 means half the window size).
* When fluid is false, a width in pixels
*
* @default 0.3 (3/10th of the window size)
*/
defaultSize?: number
/**
* Where the dock appears on the screen.
* Valid values: 'left', 'top', 'right', 'bottom'
*
* @default 'right'
*/
defaultPosition?: string
/**
* @default true
*/
defaultIsVisible?: boolean
}
export default class DockMonitor extends React.Component<IDockMonitorProps, any> {}
}