Rename type to kind
This commit is contained in:
@@ -367,7 +367,7 @@ type QueryCompareResult = RawQueryCompareResult | InterpretedQueryCompareResult;
|
||||
* to is the set of rows that have changes in the "to" query.
|
||||
*/
|
||||
export type RawQueryCompareResult = {
|
||||
type: "raw";
|
||||
kind: "raw";
|
||||
columns: readonly BqrsColumn[];
|
||||
from: ResultRow[];
|
||||
to: ResultRow[];
|
||||
@@ -378,7 +378,7 @@ export type RawQueryCompareResult = {
|
||||
* to is the set of results that have changes in the "to" query.
|
||||
*/
|
||||
type InterpretedQueryCompareResult = {
|
||||
type: "interpreted";
|
||||
kind: "interpreted";
|
||||
sourceLocationPrefix: string;
|
||||
from: sarif.Result[];
|
||||
to: sarif.Result[];
|
||||
|
||||
@@ -36,7 +36,7 @@ export default function resultsDiff(
|
||||
}
|
||||
|
||||
const results: RawQueryCompareResult = {
|
||||
type: "raw",
|
||||
kind: "raw",
|
||||
columns: fromResults.columns,
|
||||
from: arrayDiff(fromResults.tuples, toResults.tuples),
|
||||
to: arrayDiff(toResults.tuples, fromResults.tuples),
|
||||
|
||||
@@ -34,7 +34,7 @@ CompareTable.args = {
|
||||
commonResultSetNames: ["edges", "nodes", "subpaths", "#select"],
|
||||
currentResultSetName: "edges",
|
||||
result: {
|
||||
type: "raw",
|
||||
kind: "raw",
|
||||
columns: [
|
||||
{ name: "a", kind: "Entity" },
|
||||
{ name: "b", kind: "Entity" },
|
||||
|
||||
@@ -64,7 +64,7 @@ export default function CompareTable(props: Props) {
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{result.type === "raw" && (
|
||||
{result.kind === "raw" && (
|
||||
<RawCompareResultTable
|
||||
columns={result.columns}
|
||||
schemaName={comparison.currentResultSetName}
|
||||
@@ -75,7 +75,7 @@ export default function CompareTable(props: Props) {
|
||||
)}
|
||||
</td>
|
||||
<td>
|
||||
{result.type === "raw" && (
|
||||
{result.kind === "raw" && (
|
||||
<RawCompareResultTable
|
||||
columns={result.columns}
|
||||
schemaName={comparison.currentResultSetName}
|
||||
|
||||
Reference in New Issue
Block a user