Effect CommunityEC
Effect Community6mo ago
6 replies
Patrick Roza

Issue with Generators in Rpc Middleware Implementations

why can't we use generators in Rpc MIddleware implementations?
Type 'Effect<symbol, never, never>' is not assignable to type 'Effect<unique symbol, never, never>' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties.
  Type 'symbol' is not assignable to type 'unique symbol'.ts(2375)
RpcMiddleware.ts(43, 18): The expected type comes from the return type of this signature.
Screenshot_2025-08-02_at_13.05.28.png
Was this page helpful?