mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
Added initial typings for remote-redux-devtools (#9357)
This commit is contained in:
committed by
Masahiro Wakame
parent
c59e98d3ee
commit
668ab30824
@@ -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'] }
|
||||
});
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user