When using and and or, I get a TypeScript error if I supply different columns to the different WhereConditions.
const link = await tables.links(db).findOne(
or(
{ user_id: user.user_id, original_url: query.originalUrl },
{ user_id: user.user_id, url: query.url },
),
);
Object literal may only specify known properties, and 'url' does not exist in type
'WhereCondition<{ user_id: string & { readonly __brand?: "users_user_id" | undefined; }; original_url: string; }>'.ts(2353)
When using
andandor, I get a TypeScript error if I supply different columns to the differentWhereConditions.