@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
20 lines (19 loc) • 915 B
TypeScript
import { ExtensionK8sModel } from '../api/common-types';
import { Extension, ExtensionDeclaration, CodeRef } from '../types';
/** YAML templates for editing resources via the yaml editor. */
export declare type YAMLTemplate = ExtensionDeclaration<'console.yaml-template', {
/** Model associated with the template. */
model: ExtensionK8sModel;
/** The YAML template. */
template: CodeRef<string>;
/** The name of the template. Use the name `default` to mark this as the default template. */
name: string | 'default';
}>;
export declare const isYAMLTemplate: (e: Extension<any>) => e is ExtensionDeclaration<"console.yaml-template", {
/** Model associated with the template. */
model: ExtensionK8sModel;
/** The YAML template. */
template: CodeRef<string>;
/** The name of the template. Use the name `default` to mark this as the default template. */
name: string;
}>;