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

12 lines (11 loc) 429 B
import { Extension, ExtensionDeclaration, CodeRef } from '../types'; export declare type AlertAction = ExtensionDeclaration<'console.alert-action', { alert: string; text: string; action: CodeRef<(alert: any) => void>; }>; export declare const isAlertAction: (e: Extension<any>) => e is ExtensionDeclaration<"console.alert-action", { alert: string; text: string; action: CodeRef<(alert: any) => void>; }>;