Skip to content

Commit

Permalink
Fix issue with table generation related to the ColumnNames improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Pantic committed Nov 19, 2021
1 parent 371da1d commit 5b0e4c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pantas-net/zapatos",
"version": "5.0.9",
"version": "5.0.10",
"description": "Zero-Abstraction Postgres for TypeScript (temporary package until the main one is updated)",
"homepage": "https://jawj.github.io/zapatos/",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/generate/tables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export namespace ${rel.name} {
'never'};
export type Column = keyof Selectable;
export type OnlyCols<T extends readonly Column[]> = Pick<Selectable, T[number]>;
export type SQLExpression = db.GenericSQLExpression | db.ColumnNames<Updatable | (keyof Updatable)[]> | db.ColumnValues<Updatable> | Table | Whereable | Column;
export type SQLExpression = db.GenericSQLExpression | db.ColumnNames<Updatable | (keyof Updatable)[], Table> | db.ColumnValues<Updatable> | Table | Whereable | Column;
export type SQL = SQLExpression | SQLExpression[];
}`;
return tableDef;
Expand Down

0 comments on commit 5b0e4c5

Please sign in to comment.