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
src/db/kysely-helpers.ts:30:5 - error TS2322: Type 'AliasedRawBuilder<unknown, A>' is not assignable to type 'AliasedRawBuilder<R, A>'.
Type 'unknown' is not assignable to type 'R'.
'R' could be instantiated with an arbitrary type which could be unrelated to 'unknown'.
30 return sql`(values ${values})`.as<A>(aliasSql)
kysely 0.27.3
typescript 5.4.4
ts-node 10.9.2
This error can be fixed by replacing string return sql`(values ${values})`.as<A>(aliasSql) with return sql`(values ${values})`.as<A>(aliasSql) as as AliasedRawBuilder<R, A>
The text was updated successfully, but these errors were encountered:
Example https://kysely.dev/docs/recipes/extending-kysely#a-more-complex-example does not compile with error
kysely 0.27.3
typescript 5.4.4
ts-node 10.9.2
This error can be fixed by replacing string
return sql`(values ${values})`.as<A>(aliasSql)
withreturn sql`(values ${values})`.as<A>(aliasSql) as as AliasedRawBuilder<R, A>
The text was updated successfully, but these errors were encountered: