@kui-shell/core
Version:
An Electron-based shell for cloud-native development
14 lines (13 loc) • 850 B
TypeScript
import { MenuItemConstructorOptions } from 'electron';
import { NotebooksMenu } from './load';
interface OpenNotebookItem {
label: string;
click: () => void;
}
/** Open a new window or tab and replay the contents of the given `filepath` */
export declare function replay(filepath: string, createWindow: (executeThisArgvPlease?: string[]) => void): void;
/** @return a menu item that opens the given notebook */
export declare function openNotebook(createWindow: (executeThisArgvPlease?: string[]) => void, label: string, filepath: string): OpenNotebookItem;
/** We only need to replace the NotebookDefinitionMenuItem with calls to our `notebook` helper */
export declare function clientNotebooksDefinitionToElectron(defn: NotebooksMenu, notebook: (label: string, filepath: string) => OpenNotebookItem): MenuItemConstructorOptions;
export {};