devagrD
Convex Community7mo ago
52 replies
devagr

Confect: Branded types don't work

cc @RJ
I am using effect's branded types for certain ids like this
const CompanyId = Schema.String.pipe(Schema.brand("CompanyId"));

But these get converted back into a regular string in the type definitions when returned from a query or mutation.
I want to reuse the type definitions I get out of the schemas, but the type definitions have branded types, and the confect functions don't
Was this page helpful?