Type Inference Issue with BetterAuthClient in Generator Function
i'm trying to integrate better-auth with effect, and i'm seeing some weird type inference behavior. when i
however, when i use the same client inside my service and do
i'm not sure whether this is an effect thing or better-auth thing, but seems strange to me that types are breaking simply by being inside of the generator function. will leave code in the thread
Effect.runPromise(BetterAuthClient), the property $ERROR_CODES resolves correctly to a record of inferred string literals keyshowever, when i use the same client inside my service and do
const client = yield* BetterAuthClient, the type inference seems to break and i just get { [x: string]: any; }i'm not sure whether this is an effect thing or better-auth thing, but seems strange to me that types are breaking simply by being inside of the generator function. will leave code in the thread
