Skip to content

Commit a841fd0

Browse files
authored
feat: Add deprecation warning on buggy pgtui types (#5)
* feat: Add deprecation warning on buggy pgtui types * Rename fields to columns
1 parent 3bbafee commit a841fd0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib/file-generators/generated/[schema_name]/[TableName].ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ export const createResultingTypeFile = (
8585
isExported: true,
8686
name: `${pascal_table_name}WithPgtuiBugs`,
8787
type: `ReproducePgtuiBugs<${pascal_table_name}>`,
88+
docs: [
89+
{
90+
description: `@deprecated Reproduces type bugs from the legacy \`pgtui\` library and should not be used in new code.\n\nSpecifically:\n- Columns ending in \`_id\` are incorrectly typed as \`string\`, regardless of their actual database type.\n- \`jsonb\` columns are typed as \`any\` instead of a more specific type.`,
91+
},
92+
],
8893
})
8994
}
9095

0 commit comments

Comments
 (0)