Drizzle TeamDT
Drizzle Teamโ€ข3y agoโ€ข
3 replies
Martnart

TS Errors in Custom Type citext example

I want to include citext data type in my postgres schemas. I was delighted to see there's a complete example in the docs (https://github.com/drizzle-team/drizzle-orm/blob/main/docs/custom-types.md#citext-data-type-example)

However, it seems to be broken - see screenshot - because I'm getting a bunch of TS errors. Something on my side or is it outdated?

Edit: to give a bit more context, the errors all seem to be originating, for now at least, from this error on PgColumnBuilder:
Generic type 'PgColumnBuilder<THKT, T, TRuntimeConfig, TTypeConfig>' requires between 2 and 4 type arguments.ts(2707)
image.png
Was this page helpful?