mod-arch-shared
Version:
Shared library for modular architecture micro-frontend projects
28 lines • 1.81 kB
TypeScript
import { DeploymentMode, PlatformMode } from '../utilities';
declare global {
interface Window {
centraldashboard: any;
}
}
export declare const asEnumMember: <T extends object>(member: T[keyof T] | string | number | undefined | null, e: T) => T[keyof T] | null;
export declare const isEnumMember: <T extends object>(member: T[keyof T] | string | number | undefined | unknown | null, e: T) => member is T[keyof T];
/**
* Utility function to load the Kubeflow dashboard script for integrated deployments
* @param deploymentMode - The current deployment mode
* @param platformMode - The current platform mode
* @param onSuccess - Callback function to execute when script loads successfully
* @param onError - Callback function to execute when script fails to load
*/
export declare const kubeflowScriptLoader: (deploymentMode: DeploymentMode, platformMode: PlatformMode, onSuccess: () => void, onError?: (error?: Error) => void) => void;
/**
* Utility function to initialize Kubeflow namespace selection integration
* @param deploymentMode - The current deployment mode
* @param platformMode - The current platform mode
* @param scriptLoaded - Whether the Kubeflow dashboard script is loaded
* @param onNamespaceSelected - Callback function when a namespace is selected
* @param onError - Callback function to execute when initialization fails
* @param mandatoryNamespace - Optional mandatory namespace that disables selection
* @returns boolean - Whether initialization was attempted
*/
export declare const kubeflowNamespaceLoader: (deploymentMode: DeploymentMode, platformMode: PlatformMode, scriptLoaded: boolean, onNamespaceSelected: (namespace: string) => void, onError?: (error: Error) => void, mandatoryNamespace?: string) => boolean;
//# sourceMappingURL=utils.d.ts.map