thebe-core
Version:
Typescript based core functionality for Thebe
12 lines (11 loc) • 569 B
TypeScript
import type * as nbformat from '@jupyterlab/nbformat';
/**
* Creates a compact random id for use in runtime objects
*
* @returns string
*/
export declare function shortId(): string;
export declare function ensureString(maybeString: string[] | string): string;
export declare function isMimeBundle({ output_type }: nbformat.IOutput): boolean;
export declare function placeholder(plainText?: string): string;
export declare function stripWidgets(outputs: nbformat.IOutput[], hideWidgets?: boolean, placeholderFn?: (plainText?: string) => string): nbformat.IOutput[];