Skip to content

Commit 766191f

Browse files
committed
fix(utils): update table function type to use unknown for improved type safety
1 parent 8b37901 commit 766191f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sdk/utils/src/terminal/table.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Table } from "console-table-printer";
2-
import type { Dictionary } from "console-table-printer/dist/src/models/common.js";
32
import { whiteBright } from "yoctocolors";
43
import { camelCaseToWords } from "@/string.js";
54
import { note } from "./note.js";
@@ -19,7 +18,7 @@ import { shouldPrint } from "./should-print.js";
1918
*
2019
* table("My Table", data);
2120
*/
22-
export function table(title: string, data: Dictionary[]): void {
21+
export function table(title: string, data: unknown[]): void {
2322
if (!shouldPrint()) {
2423
return;
2524
}

0 commit comments

Comments
 (0)