Pierre A. Duchateau
Pierre A. Duchateau
Hello @jansedlon `fromPromise` acts as an interface between value-typed world `Promise` to the value- and error-typed world `ResultAsync`. It is there that you should provide the error types ‘`E`. if...
@jansedlon I don't think 99% of cases are of type Error quite the contrary. Here's an example taken from [the prisma documentation](https://www.prisma.io/docs/orm/prisma-client/debugging-and-troubleshooting/handling-exceptions-and-errors): ```ts import { PrismaClient, Prisma } from '@prisma/client'...
Hello @tmcw ! Thank you for this proposal. Could you provide an example of what you resort to doing with the current API ?