Effect CommunityEC
Effect Community2y ago
4 replies
Patrick Roza

Title: "HttpRouter.get Behavior with Scope in Router R"

isn't it weird that HttpRouter.get removes Scope etc from Router R, not just from the Route R?
  <R1, E1>(
    path: PathInput,
    handler: Route.Handler<R1, E1>
  ): <R, E>(
    self: Router<R, E>
  ) => Router<
    | Exclude<R1, RouteContext | ServerRequest.ServerRequest | Scope.Scope>
    | Exclude<R, RouteContext | ServerRequest.ServerRequest | Scope.Scope>,
    E1 | E
  >
Was this page helpful?