DefinitelyTyped/remote-redux-devtools/remote-redux-devtools.d.ts

32 lines
820 B
TypeScript

// Type definitions for remote-redux-devtools v0.3.2
// Project: https://github.com/zalmoxisus/remote-redux-devtools
// Definitions by: Colin Eberhardt <https://github.com/ColinEberhardt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "remote-redux-devtools" {
type StringOrArray = string | string[];
interface Config {
name?: string;
realtime?: boolean;
hostname?: string;
port?: number;
secure?: boolean;
filters?: {[key: string]: string[]};
maxAge?: number;
startOn?: StringOrArray;
stopOn?: StringOrArray;
sendOn?: StringOrArray;
sendOnError?: number;
sendTo?: string;
id?: string;
}
function devTools(config?: Config): Function;
namespace devTools {}
export = devTools;
}