oxidejs 0.3.1 → 0.3.3

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.
@@ -1,13 +1,22 @@
1
- import { t as OxidejsActionHeaders } from "../types-BM4NAnzy.mjs";
1
+ import { t as OxidejsActionHeaders } from "../types-BaZeMYcP.mjs";
2
2
  import { Rpc, RpcGroup } from "effect/unstable/rpc";
3
3
  //#region src/rpc/client.d.ts
4
- type RpcClientOptions = {
5
- url: string;
6
- transport?: "http" | "ws";
4
+ interface RpcClientOptions {
7
5
  headers?: OxidejsActionHeaders;
8
- };
9
- type NestedClient = Record<string, Record<string, (...args: unknown[]) => Promise<unknown> | AsyncGenerator<unknown>>>;
6
+ transport?: "http" | "ws";
7
+ url: string;
8
+ }
9
+ interface CallOptions {
10
+ signal?: AbortSignal;
11
+ }
12
+ /** Opaque action argument values (JSON-ish plus call options bags). */
13
+ type ActionCallArg = string | number | boolean | null | ActionCallArg[] | {
14
+ [key: string]: ActionCallArg;
15
+ } | CallOptions | AbortSignal;
16
+ /** Values returned from an action call before nesting. */
17
+ type ActionCallResult = string | number | boolean | null | object | undefined | AsyncGenerator<ActionCallResult>;
18
+ type NestedClient = Record<string, Record<string, (...args: ActionCallArg[]) => Promise<ActionCallResult> | AsyncGenerator<ActionCallResult>>>;
10
19
  type ActionGroup = RpcGroup.RpcGroup<Rpc.Any>;
11
- declare function createClient(group: ActionGroup, options: RpcClientOptions): NestedClient;
20
+ declare const createClient: (group: ActionGroup, options: RpcClientOptions) => NestedClient;
12
21
  //#endregion
13
22
  export { RpcClientOptions, createClient };
@@ -1,2 +1,2 @@
1
- import { t as createClient } from "../client-C-s6XXpS.mjs";
1
+ import { t as createClient } from "../client-DOfB6wxk.mjs";
2
2
  export { createClient };