@effect/rpc
Advanced tools
Comparing version 0.39.3 to 0.39.4
{ | ||
"name": "@effect/rpc", | ||
"version": "0.39.3", | ||
"version": "0.39.4", | ||
"description": "Functional programming in TypeScript", | ||
@@ -13,4 +13,4 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"@effect/platform": "^0.65.3", | ||
"@effect/schema": "^0.73.2", | ||
"@effect/platform": "^0.65.4", | ||
"@effect/schema": "^0.73.3", | ||
"effect": "^3.8.2" | ||
@@ -17,0 +17,0 @@ }, |
@@ -78,3 +78,3 @@ # Introduction | ||
// router.ts | ||
import { Router, Rpc } from "@effect/rpc" | ||
import { RpcRouter, Rpc } from "@effect/rpc" | ||
import { Effect, Ref } from "effect" | ||
@@ -116,3 +116,3 @@ import { User, UserById, UserCreate, UserList } from "./request.js" | ||
export const appRouter = Router.make( | ||
export const appRouter = RpcRouter.make( | ||
Rpc.effect(UserList, () => db.user.findMany()), | ||
@@ -119,0 +119,0 @@ Rpc.effect(UserById, ({ id }) => db.user.findById(id)), |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198177