kysely-org / kysely

A type-safe typescript SQL query builder
https://kysely.dev
MIT License
9.82k stars 250 forks source link

May anyone help me with the short version of selectAll type? #997

Closed iceleo-com closed 1 month ago

iceleo-com commented 1 month ago

I'm writing the function "findMany" in a Abstract Class. But the final result type seem to be mismatch. I tried tracing the type, but no luck. May anyone take a look and give me some advice? I appreciate everything!

ksnip_20240521-192931

koskimas commented 1 month ago

There is no short version. If there were, we'd use it.

You should avoid trying to create generic helpers like this. Super strict (Kysely) and generic don't work well together.