Skip to content

Commit

Permalink
Exporting rpc types
Browse files Browse the repository at this point in the history
  • Loading branch information
tuler committed Jul 21, 2024
1 parent b3bbe17 commit d297185
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/serious-items-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@deroll/rpc": patch
---

export types
1 change: 1 addition & 0 deletions packages/rpc/src/client.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { JSONRPCClient, TypedJSONRPCClient } from "json-rpc-2.0";
import { Methods } from "./methods";

export * from "./types";
export type ClientOptions = {
uri: string;
};
Expand Down
1 change: 1 addition & 0 deletions packages/rpc/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { createClient } from "./client";
export { createServer } from "./server";
export * from "./types";
1 change: 1 addition & 0 deletions packages/rpc/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
} from "./__generated__/graphql";
import { exceptionMiddleware, logMiddleware } from "./middlewares";

export * from "./types";
export type ServerOptions = {
graphqlUri: string;
};
Expand Down

0 comments on commit d297185

Please sign in to comment.