Added initial typings for remote-redux-devtools (#9357)

This commit is contained in:
Colin Eberhardt
2016-05-21 08:18:32 -07:00
committed by Masahiro Wakame
parent c59e98d3ee
commit 668ab30824
2 changed files with 44 additions and 0 deletions
@@ -0,0 +1,13 @@
/// <reference path="remote-redux-devtools.d.ts" />
import * as devTools from "remote-redux-devtools";
// example configuration from: https://github.com/zalmoxisus/remote-redux-devtools
devTools({
name: 'Android app',
realtime: true,
hostname: 'localhost',
port: 8000,
maxAge: 30,
filters: { blacklist: ['EFFECT_RESOLVED'] }
});
+31
View File
@@ -0,0 +1,31 @@
// 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;
}