From 6266d6bd5ab6366f69dec17c1006a51818cdc392 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Fri, 23 Oct 2020 13:08:18 -0400 Subject: [PATCH] stash --- packages/redux-devtools-core/src/app/actions/index.ts | 4 ++++ .../redux-devtools-core/src/app/reducers/instances.ts | 9 +++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/packages/redux-devtools-core/src/app/actions/index.ts b/packages/redux-devtools-core/src/app/actions/index.ts index ab06015c..05546088 100644 --- a/packages/redux-devtools-core/src/app/actions/index.ts +++ b/packages/redux-devtools-core/src/app/actions/index.ts @@ -315,6 +315,10 @@ export function getReport(report: unknown): GetReportRequest { return { type: GET_REPORT_REQUEST, report }; } +export interface ActionCreator { + args: string[]; +} + interface LibConfig { actionCreators?: string; name?: string; diff --git a/packages/redux-devtools-core/src/app/reducers/instances.ts b/packages/redux-devtools-core/src/app/reducers/instances.ts index bb29e0f2..ba95f485 100644 --- a/packages/redux-devtools-core/src/app/reducers/instances.ts +++ b/packages/redux-devtools-core/src/app/reducers/instances.ts @@ -12,7 +12,12 @@ import { import { DISCONNECTED } from '../constants/socketActionTypes'; import parseJSON from '../utils/parseJSON'; import { recompute } from '../utils/updateState'; -import { LiftedActionDispatchAction, Request, StoreAction } from '../actions'; +import { + ActionCreator, + LiftedActionDispatchAction, + Request, + StoreAction, +} from '../actions'; export interface Features { lock?: boolean; @@ -33,7 +38,7 @@ export interface Options { connectionId?: string; explicitLib?: string; lib?: string; - actionCreators?: string; + actionCreators?: ActionCreator[]; features: Features; serialize?: boolean; }