Renamed Functions in `@effect/platform-node` Library
Where did all the functions go in
import { HttpServer } from "@effect/platform-node";
import { HttpServer } from "@effect/platform-node";
(including the server itself)? I figured that it was renamed to
NodeHttpServer
NodeHttpServer
but my code no longer compiles:
import { NodeHttpServer as Server } from "@effect/platform-node";import { Root, Users } from "./routes";export const serve = Server.router.empty.pipe( // ^^^--- Property 'router' does not exist Server.router.concat(Root.route), Server.router.mount("/users", Users.route), Server.server.serve(), // ^^^--- Property 'serve' does not exist);
import { NodeHttpServer as Server } from "@effect/platform-node";import { Root, Users } from "./routes";export const serve = Server.router.empty.pipe( // ^^^--- Property 'router' does not exist Server.router.concat(Root.route), Server.router.mount("/users", Users.route), Server.server.serve(), // ^^^--- Property 'serve' does not exist);