Shorten/simplify client type signature for readability #5021
Labels
domain/client
Issue in the "Client" domain: Prisma Client, Prisma Studio etc.
kind/improvement
An improvement to existing feature and code.
The Prisma Client for JS/TS provides an extremely powerful type-safe API which enables a great developer experience and robust applications. However, there's also currently a flip-side to this which is that the way the type signature (for most operations) is constructed/formatted makes the API type signature quite "intimidating" and hard to read. Additionally it also massively reduces the visible space for our generated JSDocs to be displayed in editors (e.g. VSCode) as seen here:
I'd love to explore whether there are "better" ways (i.e. simpler/less characters) for us to layout the type signature (e.g. by using type aliases).
The text was updated successfully, but these errors were encountered: