From d297185262baa4de2431f3f47e4b8e9f4ab029f1 Mon Sep 17 00:00:00 2001 From: Danilo Tuler Date: Sun, 21 Jul 2024 19:33:25 -0300 Subject: [PATCH] Exporting rpc types --- .changeset/serious-items-roll.md | 5 +++++ packages/rpc/src/client.ts | 1 + packages/rpc/src/index.ts | 1 + packages/rpc/src/server.ts | 1 + 4 files changed, 8 insertions(+) create mode 100644 .changeset/serious-items-roll.md diff --git a/.changeset/serious-items-roll.md b/.changeset/serious-items-roll.md new file mode 100644 index 0000000..310186a --- /dev/null +++ b/.changeset/serious-items-roll.md @@ -0,0 +1,5 @@ +--- +"@deroll/rpc": patch +--- + +export types diff --git a/packages/rpc/src/client.ts b/packages/rpc/src/client.ts index 1637052..7c99357 100644 --- a/packages/rpc/src/client.ts +++ b/packages/rpc/src/client.ts @@ -1,6 +1,7 @@ import { JSONRPCClient, TypedJSONRPCClient } from "json-rpc-2.0"; import { Methods } from "./methods"; +export * from "./types"; export type ClientOptions = { uri: string; }; diff --git a/packages/rpc/src/index.ts b/packages/rpc/src/index.ts index 6ece934..39694bf 100644 --- a/packages/rpc/src/index.ts +++ b/packages/rpc/src/index.ts @@ -1,2 +1,3 @@ export { createClient } from "./client"; export { createServer } from "./server"; +export * from "./types"; diff --git a/packages/rpc/src/server.ts b/packages/rpc/src/server.ts index 26be657..cc59428 100644 --- a/packages/rpc/src/server.ts +++ b/packages/rpc/src/server.ts @@ -14,6 +14,7 @@ import { } from "./__generated__/graphql"; import { exceptionMiddleware, logMiddleware } from "./middlewares"; +export * from "./types"; export type ServerOptions = { graphqlUri: string; };