From ca20be531eabc8d5a9eb26e907ff86211398d07c Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Wed, 18 Nov 2020 11:41:20 +0100 Subject: [PATCH] simplify ITransformedDisplayOutputDto type --- .../contrib/notebook/common/notebookCommon.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/vs/workbench/contrib/notebook/common/notebookCommon.ts b/src/vs/workbench/contrib/notebook/common/notebookCommon.ts index 2e9b810641a..6b8d3ec0126 100644 --- a/src/vs/workbench/contrib/notebook/common/notebookCommon.ts +++ b/src/vs/workbench/contrib/notebook/common/notebookCommon.ts @@ -184,27 +184,14 @@ export interface IOrderedMimeType { rendererId: string; } -export interface ITransformedDisplayOutputDto { - outputKind: CellOutputKind.Rich; +export interface ITransformedDisplayOutputDto extends IDisplayOutput { outputId: string; - data: { [key: string]: unknown; } - metadata?: NotebookCellOutputMetadata; - - // orderedMimeTypes?: IOrderedMimeType[]; - // pickedMimeTypeIndex?: number; } export function isTransformedDisplayOutput(thing: unknown): thing is ITransformedDisplayOutputDto { return (thing as ITransformedDisplayOutputDto).outputKind === CellOutputKind.Rich && !!(thing as ITransformedDisplayOutputDto).outputId; } -export interface IGenericOutput { - outputKind: CellOutputKind; - pickedMimeType?: string; - pickedRenderer?: number; - transformedOutput?: { [key: string]: IDisplayOutput }; -} - export const addIdToOutput = (output: IRawOutput, id = UUID.generateUuid()): IProcessedOutput => output.outputKind === CellOutputKind.Rich ? ({ ...output, outputId: id }) : output;