Adds table with type extractor.

This commit is contained in:
Henning Dieterichs
2020-08-24 17:04:45 +02:00
parent dc9b07a4b6
commit 0429eac23e

View File

@@ -34,5 +34,19 @@ export class TableDataExtractor implements DataExtractor {
});
},
});
collector.addExtraction({
id: "table-with-type-name",
name: "Table (With Type Name)",
priority: 950,
extractData() {
return expect<TableVisualizationData>({
kind: {
table: true,
},
rows: data.map(d => ({ type: d.constructor.name, ...d })),
});
},
});
}
}