Skip to content

Commit 1e65dd1

Browse files
committed
Updates common data types.
1 parent 76fa30f commit 1e65dd1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

data-extraction/src/CommonDataTypes.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export type KnownVisualizationData =
99
| GridVisualizationData
1010
| ImageVisualizationData
1111
| MonacoTextVisualizationData
12+
| MonacoTextDiffVisualizationData
1213
| TableVisualizationData
1314
| PlotlyVisualizationData
1415
| SimpleTextVisualizationData
@@ -162,6 +163,24 @@ export type MonacoTextVisualizationData = {
162163
fileName?: string;
163164
};
164165

166+
export type MonacoTextDiffVisualizationData = {
167+
kind: {
168+
text: true;
169+
};
170+
/**
171+
* The text to show
172+
*/
173+
text: string;
174+
/**
175+
* The text to compare against
176+
*/
177+
otherText: string;
178+
/**
179+
* An optional filename that might be used for chosing a syntax highlighter
180+
*/
181+
fileName?: string;
182+
};
183+
165184
export type TableVisualizationData = {
166185
kind: {
167186
table: true;

0 commit comments

Comments
 (0)