Skip to content

Commit

Permalink
allow undefined in rpc schemas (#1924)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Jan 15, 2024
1 parent 05c44b3 commit edb722d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/selfish-pets-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@effect/rpc": patch
---

allow undefined in rpc schemas
2 changes: 1 addition & 1 deletion packages/rpc/src/internal/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as Codec from "./codec.js"

type JsonArray = ReadonlyArray<Json>
type JsonObject = { readonly [key: string]: Json }
export type Json = null | boolean | number | string | JsonArray | JsonObject
export type Json = undefined | null | boolean | number | string | JsonArray | JsonObject

/** @internal */
export const RpcServiceId: schema.RpcServiceId = Symbol.for(
Expand Down

0 comments on commit edb722d

Please sign in to comment.