Skip to content

Commit d89ccec

Browse files
committed
Small typescript nits
1 parent c0c6444 commit d89ccec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/clients/DataTable.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ export class DataTable extends MosaicClient {
106106
/** @type {AsyncBatchReader<flech.StructRowProxy> | null} */
107107
#reader: AsyncBatchReader<TableRow> | null = null;
108108

109-
#sql = signal(undefined as string | undefined);
109+
/** The active SQL query */
110+
#sql: signals.Signal<string | undefined> = signal();
110111

111112
constructor(source: DataTableOptions) {
112113
super(Selection.crossfilter());
@@ -371,11 +372,11 @@ export class DataTable extends MosaicClient {
371372
}
372373
}
373374

374-
const TRUNCATE = /** @type {const} */ ({
375+
const TRUNCATE = {
375376
whiteSpace: "nowrap",
376377
overflow: "hidden",
377378
textOverflow: "ellipsis",
378-
});
379+
} as const;
379380

380381
function thcol(
381382
field: flech.Field,

0 commit comments

Comments
 (0)