Skip to content

Commit 48954c7

Browse files
committed
Rename TRow -> Row
1 parent 9a0699f commit 48954c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extensions/ql-vscode/src/view/compare-performance/ComparePerformance.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ function HighLevelStats(props: HighLevelStatsProps) {
297297
);
298298
}
299299

300-
interface TRow {
300+
interface Row {
301301
name: string;
302302
before: Optional<PredicateInfo>;
303303
after: Optional<PredicateInfo>;
@@ -306,9 +306,9 @@ interface TRow {
306306

307307
function getSortOrder(sortOrder: "delta" | "absDelta") {
308308
if (sortOrder === "absDelta") {
309-
return orderBy((row: TRow) => -Math.abs(row.diff));
309+
return orderBy((row: Row) => -Math.abs(row.diff));
310310
}
311-
return orderBy((row: TRow) => row.diff);
311+
return orderBy((row: Row) => row.diff);
312312
}
313313

314314
interface Metric {
@@ -410,7 +410,7 @@ function ComparePerformanceWithData(props: {
410410

411411
const hasCacheHitMismatch = useRef(false);
412412

413-
const rows: TRow[] = useMemo(() => {
413+
const rows: Row[] = useMemo(() => {
414414
hasCacheHitMismatch.current = false;
415415
return Array.from(nameSet)
416416
.map((name) => {
@@ -433,7 +433,7 @@ function ComparePerformanceWithData(props: {
433433
const diff =
434434
(isPresent(afterValue) ? afterValue : 0) -
435435
(isPresent(beforeValue) ? beforeValue : 0);
436-
return { name, before, after, diff } satisfies TRow;
436+
return { name, before, after, diff } satisfies Row;
437437
})
438438
.filter((x) => !!x)
439439
.sort(getSortOrder(sortOrder));
@@ -542,7 +542,7 @@ function ComparePerformanceWithData(props: {
542542

543543
interface PredicateRowProps {
544544
renderedName: React.ReactNode;
545-
row: TRow;
545+
row: Row;
546546
comparison: boolean;
547547
metric: Metric;
548548
}

0 commit comments

Comments
 (0)