UNPKG

@openshift-console/dynamic-plugin-sdk

Version:

Based on the concept of [webpack module federation](https://webpack.js.org/concepts/module-federation/), dynamic plugins are loaded and interpreted from remote sources at runtime. The standard way to deliver and expose dynamic plugins to Console is throug

16 lines (15 loc) 867 B
import { Reducer } from 'redux'; import { Extension, ExtensionDeclaration, CodeRef } from '../types'; /** Adds new reducer to Console Redux store which operates on `plugins.<scope>` substate. */ export declare 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<any>) => e is 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<any, import("redux").AnyAction>>; }>;