@elgato/utils 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,11 +8,11 @@ import { RpcServer } from "./server.js";
8
8
  * @param options the options.
9
9
  * @returns The RPC server-and-client.
10
10
  */
11
- export declare function createRpcServerClient(send: RpcSender, options?: RpcClientOptions): RpcClientServer;
11
+ export declare function createRpcServerClient(send: RpcSender, options?: RpcClientOptions): RpcServerClient;
12
12
  /**
13
13
  * An RPC server-and-client, capable of receiving and sending requests and notifications.
14
14
  */
15
- type RpcClientServer = Pick<RpcClient, "notify" | "request"> & Pick<RpcServer, "addMethod"> & {
15
+ export type RpcServerClient = Pick<RpcClient, "notify" | "request"> & Pick<RpcServer, "addMethod"> & {
16
16
  /**
17
17
  * Attempts to process the specified value as a request or response.
18
18
  * @param value Value to process.
@@ -20,4 +20,3 @@ type RpcClientServer = Pick<RpcClient, "notify" | "request"> & Pick<RpcServer, "
20
20
  */
21
21
  receive(value: JsonValue): Promise<boolean>;
22
22
  };
23
- export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elgato/utils",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Utilities used throughout the Elgato ecosystem.",
5
5
  "type": "module",
6
6
  "files": [