Skip to content

Commit 07a1e4c

Browse files
authored
fix: add integer to the list of numeric types (#642)
1 parent 893af73 commit 07a1e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/templates/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ const pgTypeToTsType = (
428428
): string => {
429429
if (pgType === 'bool') {
430430
return 'boolean'
431-
} else if (['int2', 'int4', 'int8', 'float4', 'float8', 'numeric'].includes(pgType)) {
431+
} else if (['int2', 'int4', 'int8', 'float4', 'float8', 'numeric', 'integer'].includes(pgType)) {
432432
return 'number'
433433
} else if (
434434
[

0 commit comments

Comments
 (0)