Skip to content

Commit 7010660

Browse files
gregnrsoedirgo
authored andcommitted
fix: change vector gen type to string
1 parent 8840839 commit 7010660

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/server/templates/typescript.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ const pgTypeToTsType = (
396396
'timestamp',
397397
'timestamptz',
398398
'uuid',
399+
'vector',
399400
].includes(pgType)
400401
) {
401402
return 'string'
@@ -405,8 +406,6 @@ const pgTypeToTsType = (
405406
return 'undefined'
406407
} else if (pgType === 'record') {
407408
return 'Record<string, unknown>'
408-
} else if (pgType === 'vector') {
409-
return 'number[]'
410409
} else if (pgType.startsWith('_')) {
411410
return `(${pgTypeToTsType(pgType.substring(1), types, schemas)})[]`
412411
} else {

0 commit comments

Comments
 (0)