We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8840839 commit 7010660Copy full SHA for 7010660
src/server/templates/typescript.ts
@@ -396,6 +396,7 @@ const pgTypeToTsType = (
396
'timestamp',
397
'timestamptz',
398
'uuid',
399
+ 'vector',
400
].includes(pgType)
401
) {
402
return 'string'
@@ -405,8 +406,6 @@ const pgTypeToTsType = (
405
406
return 'undefined'
407
} else if (pgType === 'record') {
408
return 'Record<string, unknown>'
- } else if (pgType === 'vector') {
409
- return 'number[]'
410
} else if (pgType.startsWith('_')) {
411
return `(${pgTypeToTsType(pgType.substring(1), types, schemas)})[]`
412
} else {
0 commit comments