You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To Reproduce
Having one of the column type as varchar(255) should help reproduce it.
Expected behavior
Software version "@xata.io/client": "^0.29.3"
Additional context
I'm using knex for building schema and migration, this would be resolved if I switch to .text instead of .string which sets the column type to be varchar since that's what typescript understands.
The text was updated successfully, but these errors were encountered:
Update: I migrated to use text datatype for my table columns but knex adds two tables knex_migrations and knex_migrations_lock which contain column with data type varchar which I've no control over, so my questions
is there a way to ignore tables while pulling locally and generating types?
prvnbist
changed the title
Typescript | Type '"varchar(255)"' is not assignable to type inn xata.ts
Ignore selective tables while doing codegen for types locally
Mar 31, 2024
Describe the bug
Getting a type error in
xata.ts
Short Error
Full Error
The error is in generated types on second line at
SchemaTables
Here
tables
is typed as following where one of the columns have a typevarchar(255)
To Reproduce
Having one of the column type as
varchar(255)
should help reproduce it.Expected behavior
Software version
"@xata.io/client": "^0.29.3"
Additional context
I'm using
knex
for building schema and migration, this would be resolved if I switch to.text
instead of.string
which sets the column type to bevarchar
since that's what typescript understands.The text was updated successfully, but these errors were encountered: