Skip to content

Commit

Permalink
fix: add integer to the list of numeric types (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
psteinroe authored Nov 2, 2023
1 parent 893af73 commit 07a1e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/templates/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ const pgTypeToTsType = (
): string => {
if (pgType === 'bool') {
return 'boolean'
} else if (['int2', 'int4', 'int8', 'float4', 'float8', 'numeric'].includes(pgType)) {
} else if (['int2', 'int4', 'int8', 'float4', 'float8', 'numeric', 'integer'].includes(pgType)) {
return 'number'
} else if (
[
Expand Down

0 comments on commit 07a1e4c

Please sign in to comment.