UNPKG

@openshift-console/dynamic-plugin-sdk

Version:

Provides core APIs, types and utilities used by dynamic plugins at runtime.

18 lines (17 loc) 693 B
import { K8sModel } from '../api/common-types'; import { CodeRef, Extension, ExtensionDeclaration } from '../types'; export type DetailsPageBreadCrumbsHook = (kind: K8sModel, urlMatch: any) => { name: string; path: string; }[]; export type DetailPageBreadCrumbs = ExtensionDeclaration<'dev-console.detailsPage/breadcrumbs', { /** * array of models(kindObj) against which bread crumb is needed */ getModels: CodeRef<() => K8sModel[] | K8sModel>; /** * returns breadcrumb for the given kindref */ breadcrumbsProvider: CodeRef<DetailsPageBreadCrumbsHook>; }>; export declare const isDetailPageBreadCrumbs: (e: Extension) => e is DetailPageBreadCrumbs;