@openshift-console/dynamic-plugin-sdk
Version:
Provides core APIs, types and utilities used by dynamic plugins at runtime.
11 lines (10 loc) • 566 B
TypeScript
import { Reducer } from 'redux';
import { Extension, ExtensionDeclaration, CodeRef } from '../types';
/** Adds new reducer to Console Redux store which operates on `plugins.<scope>` substate. */
export type ReduxReducer = ExtensionDeclaration<'console.redux-reducer', {
/** The key to represent the reducer-managed substate within the Redux state object. */
scope: string;
/** The reducer function, operating on the reducer-managed substate. */
reducer: CodeRef<Reducer>;
}>;
export declare const isReduxReducer: (e: Extension) => e is ReduxReducer;