UNPKG

backstage-plugin-techdocs-addon-sourcegraph

Version:

A module that extends Sourcegraph capabilities into Backstage TechDocs.

18 lines (14 loc) 645 B
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api'; declare type SourcegraphNotebookCallbackParameters = { container: HTMLDivElement; iframe: HTMLIFrameElement; id: string; url: string; }; declare type SourcegraphNotebookProps = { domain: string; callback?: ({ container, iframe, id, url }: SourcegraphNotebookCallbackParameters) => void; }; declare const techdocsAddonSourcegraphPlugin: _backstage_core_plugin_api.BackstagePlugin<{}, {}>; declare const SourcegraphNotebook: (props: SourcegraphNotebookProps) => JSX.Element | null; export { SourcegraphNotebook, techdocsAddonSourcegraphPlugin };