Skip to content

Commit

Permalink
Expose some types (#54)
Browse files Browse the repository at this point in the history
* Expose Table type

* wip
  • Loading branch information
dvdsgl authored Mar 9, 2024
1 parent 2c010f5 commit 4d0f887
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function rowID(row: RowIdentifiable<any>): RowID {
return typeof row === "string" ? row : row.$rowID;
}

export class Table<T extends ColumnSchema> {
export class Table<T extends ColumnSchema = {}> {
private displayNameToName: Record<keyof FullRow<T>, string>;

/**
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export const getApps = defaultClient.getApps.bind(defaultClient);
export const getAppNamed = defaultClient.getAppNamed.bind(defaultClient);
export const withConfig = defaultClient.with.bind(defaultClient);

export { RowOf, AppManifest } from "./types";
export { RowOf, AppManifest, ColumnType } from "./types";
export { type Table } from "./Table";

0 comments on commit 4d0f887

Please sign in to comment.