Skip to content

Commit

Permalink
fix: make tinyint a number (#10)
Browse files Browse the repository at this point in the history
while often used as a boolean application should convert it to a boolean if so desired, it is really a number

Signed-off-by: naseemkullah <naseem@transit.app>
  • Loading branch information
naseemkullah authored Feb 20, 2021
1 parent 2b31804 commit 126f169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/column-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function mapColumn(Table: Table, enumTypes: Enums): Table {
column.tsType = 'number'
return column
case 'tinyint':
column.tsType = 'boolean'
column.tsType = 'number'
return column
case 'json':
column.tsType = 'JSONValue'
Expand Down

0 comments on commit 126f169

Please sign in to comment.