@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
11 lines (10 loc) • 564 B
TypeScript
import { Extension, ExtensionDeclaration, CodeRef } from '../types';
export declare type TelemetryListener = ExtensionDeclaration<'console.telemetry/listener', {
/** Listen for telemetry events */
listener: CodeRef<TelemetryEventListener>;
}>;
export declare type TelemetryEventListener = <P = any>(eventType: string, properties?: P) => void;
export declare const isTelemetryListener: (e: Extension<any>) => e is ExtensionDeclaration<"console.telemetry/listener", {
/** Listen for telemetry events */
listener: CodeRef<TelemetryEventListener>;
}>;