mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Update redux devtools to v3
This commit is contained in:
Vendored
+13
-100
@@ -1,109 +1,22 @@
|
||||
// Type definitions for redux-devtools 2.1.4
|
||||
// Type definitions for redux-devtools 3.0.0
|
||||
// Project: https://github.com/gaearon/redux-devtools
|
||||
// Definitions by: Qubo <https://github.com/tkqubo>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
// Definitions by: Petryshyn Sergii <https://github.com/mc-petry>
|
||||
// Definitions: https://github.com/DefinitelyTyped/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;
|
||||
}
|
||||
import * as React from 'react'
|
||||
|
||||
declare module "redux-devtools/lib/react" {
|
||||
import * as React from 'react';
|
||||
interface IDevTools {
|
||||
new (): JSX.ElementClass
|
||||
instrument(): Function
|
||||
}
|
||||
|
||||
export class DevTools extends React.Component<any, any> {
|
||||
export function createDevTools(el: React.ReactElement<any>): IDevTools
|
||||
export function persistState(debugSessionKey: () => string): Function
|
||||
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
var factory: { instrument(): Function }
|
||||
|
||||
export default factory;
|
||||
}
|
||||
Reference in New Issue
Block a user