Spoof
Spoof
Explore posts from servers
DTDrizzle Team
Created by Martnart on 4/28/2023 in #help
TS Errors in Custom Type citext example
So to use citext would be as simple as:
import { customType } from "drizzle-orm/pg-core";

export const citext = customType<{ data: string }>({
dataType() {
return "citext";
},
});
import { customType } from "drizzle-orm/pg-core";

export const citext = customType<{ data: string }>({
dataType() {
return "citext";
},
});
Or would we need to more explicit with the driver types? Do they default to the data type?
4 replies