UNPKG

@openshift-console/dynamic-plugin-sdk

Version:

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

11 lines (10 loc) 534 B
import { Extension, ExtensionDeclaration, CodeRef } from '../types'; /** This extension can be used to contribute a new storage provider to select, when attaching storage and a provider specific component. */ export type StorageProvider = ExtensionDeclaration<'console.storage-provider', { /** Displayed name of the provider. */ name: string; /** Provider specific component to render. */ Component: CodeRef<React.ComponentType>; }>; export declare const isStorageProvider: (e: Extension) => e is StorageProvider;