@orpc/client 2.0.0-beta.50 → 2.0.0-beta.51
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.
- package/README.md +10 -8
- package/dist/client-safe.d.ts +2 -1
- package/dist/client.d.ts +2 -1
- package/dist/error.d.ts +9 -0
- package/dist/index.d.ts +4 -4
- package/dist/types.d.ts +16 -10
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -78,13 +78,14 @@ Read the full documentation at [orpc.dev](https://orpc.dev), starting with the [
|
|
|
78
78
|
|
|
79
79
|
**Built-in features**
|
|
80
80
|
|
|
81
|
-
| Package
|
|
82
|
-
|
|
|
83
|
-
| [@orpc/publisher](https://www.npmjs.com/package/@orpc/publisher)
|
|
84
|
-
| [@orpc/ratelimit](https://www.npmjs.com/package/@orpc/ratelimit)
|
|
85
|
-
| [@orpc/experimental-lock](https://www.npmjs.com/package/@orpc/experimental-lock)
|
|
86
|
-
| [@orpc/
|
|
87
|
-
| [@orpc/
|
|
81
|
+
| Package | Purpose | Docs |
|
|
82
|
+
| ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
|
83
|
+
| [@orpc/publisher](https://www.npmjs.com/package/@orpc/publisher) | Pub/Sub with memory, Redis, and Upstash adapters. | [Publisher](https://orpc.dev/docs/helpers/publisher) |
|
|
84
|
+
| [@orpc/ratelimit](https://www.npmjs.com/package/@orpc/ratelimit) | Rate limiting with memory, Redis, and Upstash adapters. | [Rate Limit](https://orpc.dev/docs/helpers/ratelimit) |
|
|
85
|
+
| [@orpc/experimental-lock](https://www.npmjs.com/package/@orpc/experimental-lock) | Locking with memory, Redis, and Upstash adapters. | [Lock](https://orpc.dev/docs/helpers/lock) |
|
|
86
|
+
| [@orpc/experimental-openapi-inference](https://www.npmjs.com/package/@orpc/experimental-openapi-inference) | Generate OpenAPI specs from TypeScript types, no output schemas required. | [Type Inference](https://orpc.dev/docs/openapi/specification#type-inference) |
|
|
87
|
+
| [@orpc/hibernation](https://www.npmjs.com/package/@orpc/hibernation) | Leverage Hibernation APIs like [Cloudflare's Hibernation WebSocket](https://developers.cloudflare.com/durable-objects/best-practices/websockets/#durable-objects-hibernation-websocket-api). | [Hibernation](https://orpc.dev/docs/integrations/hibernation) |
|
|
88
|
+
| [@orpc/json-schema](https://www.npmjs.com/package/@orpc/json-schema) | Smart coercion for OpenAPI requests. | [Smart Coercion](https://orpc.dev/docs/plugins/smart-coercion) |
|
|
88
89
|
|
|
89
90
|
**Framework & ecosystem integrations**
|
|
90
91
|
|
|
@@ -192,9 +193,10 @@ Like what we build over at [middleapi](https://github.com/middleapi)? You can he
|
|
|
192
193
|
<td align="center"><a href="https://kellychan.im/?ref=middleapi&utm_source=middleapi&utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="Kelly Peilin Chan"><img src="https://avatars.githubusercontent.com/u/520852?u=6b0f7105f694e7b5cacf410a3f04c7044b469dc8&v=4" width="139" alt="Kelly Peilin Chan"/><br />Kelly Peilin Chan</a></td>
|
|
193
194
|
<td align="center"><a href="https://guyariely.com/?ref=middleapi&utm_source=middleapi&utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="Guy Ariely"><img src="https://avatars.githubusercontent.com/u/42813496?u=edb6b7f563bf28e160a290832e7da57c0506f8ca&v=4" width="139" alt="Guy Ariely"/><br />Guy Ariely</a></td>
|
|
194
195
|
<td align="center"><a href="https://paulsenon.com/?ref=middleapi&utm_source=middleapi&utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="PaulSenon"><img src="https://avatars.githubusercontent.com/u/19531087?u=6385741eb91d200b8c513ec6045482e301767ca6&v=4" width="139" alt="PaulSenon"/><br />PaulSenon</a></td>
|
|
195
|
-
<td align="center"><a href="https://
|
|
196
|
+
<td align="center"><a href="https://usagerail.com/?ref=middleapi&utm_source=middleapi&utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="UsageRail"><img src="https://avatars.githubusercontent.com/u/347653714?v=4" width="139" alt="UsageRail"/><br />UsageRail</a></td>
|
|
196
197
|
</tr>
|
|
197
198
|
<tr>
|
|
199
|
+
<td align="center"><a href="https://piscis.dev/?ref=middleapi&utm_source=middleapi&utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="Alex"><img src="https://avatars.githubusercontent.com/u/326163?u=b245f368bd940cf51d08c0b6bf55f8257f359437&v=4" width="139" alt="Alex"/><br />Alex</a></td>
|
|
198
200
|
<td align="center"><a href="https://opensource.gubanov.eu/?ref=middleapi&utm_source=middleapi&utm_medium=sponsor" target="_blank" rel="noopener sponsored" title="Andrey Gubanov"><img src="https://avatars.githubusercontent.com/u/1082083?u=c5f2daf7ebece498e85c83367bb37b4e10e2649d&v=4" width="139" alt="Andrey Gubanov"/><br />Andrey Gubanov</a></td>
|
|
199
201
|
</tr>
|
|
200
202
|
</table>
|
package/dist/client-safe.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AnyNestedClient, Client, ClientRest } from "./types.js";
|
|
2
2
|
import { SafeResult } from "./utils.js";
|
|
3
|
-
export type SafeClient<T extends AnyNestedClient> =
|
|
3
|
+
export type SafeClient<T extends AnyNestedClient> = SafeClientInternal<T>;
|
|
4
|
+
export type SafeClientInternal<T> = T extends Client<infer UContext, infer UInput, infer UOutput, infer UError> ? (...rest: ClientRest<UContext, UInput>) => Promise<SafeResult<UOutput, UError>> : { [K in keyof T]: SafeClientInternal<T[K] & {}>; };
|
|
4
5
|
/**
|
|
5
6
|
* Create a safe client that automatically wraps all procedure calls with the `safe` util.
|
|
6
7
|
*
|
package/dist/client.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ export interface ORPCClientScopedOptions<TClientContext extends ClientContext, T
|
|
|
11
11
|
*/
|
|
12
12
|
interceptors?: ORPCClientInterceptor<TClientContext, TInput, TOutput, TError>[] | undefined;
|
|
13
13
|
}
|
|
14
|
-
export type ORPCClientScoped<T extends AnyNestedClient> =
|
|
14
|
+
export type ORPCClientScoped<T extends AnyNestedClient> = ORPCClientScopedInternal<T>;
|
|
15
|
+
export type ORPCClientScopedInternal<T> = T extends Client<infer UClientContext, infer UInput, infer UOutput, infer UError> ? ORPCClientScopedOptions<UClientContext, UInput, UOutput, UError> : { [K in keyof T]?: ORPCClientScopedInternal<T[K] & {}> | undefined; };
|
|
15
16
|
export interface ORPCClientOptions<T extends AnyNestedClient> {
|
|
16
17
|
/**
|
|
17
18
|
* Use as base path for all procedure, useful when you only want to call a subset of the procedure.
|
package/dist/error.d.ts
CHANGED
|
@@ -32,6 +32,15 @@ export declare const COMMON_ERROR_STATUS_MAP: {
|
|
|
32
32
|
SERVICE_UNAVAILABLE: number;
|
|
33
33
|
GATEWAY_TIMEOUT: number;
|
|
34
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* Error codes accepted by `ORPCError`: common HTTP codes plus any string.
|
|
37
|
+
* Customize the suggested codes through `Registry['ORPCErrorCode']`.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* A custom `ORPCErrorCode` must keep `(string & {})`, since oRPC throws its own codes.
|
|
41
|
+
*
|
|
42
|
+
* @see {@link https://orpc.dev/docs/error-handling#orpc-error-codes | Error Handling - ORPC Error Codes}
|
|
43
|
+
*/
|
|
35
44
|
export type ORPCErrorCode = Registry extends {
|
|
36
45
|
ORPCErrorCode: infer T extends string;
|
|
37
46
|
} ? T : keyof typeof COMMON_ERROR_STATUS_MAP | (string & {});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { wrapAsyncIteratorPreservingEventMeta } from "./async-iterator-object.js";
|
|
2
|
-
import { ORPCClientInterceptor, ORPCClientInterceptorOptions, ORPCClientOptions, ORPCClientScoped, ORPCClientScopedOptions, createORPCClient } from "./client.js";
|
|
3
|
-
import { SafeClient, createSafeClient } from "./client-safe.js";
|
|
2
|
+
import { ORPCClientInterceptor, ORPCClientInterceptorOptions, ORPCClientOptions, ORPCClientScoped, ORPCClientScopedInternal, ORPCClientScopedOptions, createORPCClient } from "./client.js";
|
|
3
|
+
import { SafeClient, SafeClientInternal, createSafeClient } from "./client-safe.js";
|
|
4
4
|
import { RECURSIVE_CLIENT_UNWRAP_KEYS } from "./consts.js";
|
|
5
5
|
import { DynamicLink } from "./dynamic-link.js";
|
|
6
6
|
import { AnyORPCError, AnyORPCErrorJSON, COMMON_ERROR_STATUS_MAP, MalformedResponseError, MalformedResponseErrorOptions, ORPCError, ORPCErrorCode, ORPCErrorJSON, ORPCErrorOptions, ResponseError, ResponseErrorOptions } from "./error.js";
|
|
7
7
|
import { cloneORPCError, createORPCErrorFromJson, isDefinedError, isORPCErrorJson, toORPCError } from "./error-utils.js";
|
|
8
8
|
import { RPCJsonSerialization, RPCJsonSerializationMeta, RPCJsonSerializer, RPCJsonSerializerHandler, RPCJsonSerializerOptions } from "./rpc-json-serializer.js";
|
|
9
9
|
import { RPCSerializer, RPCSerializerOptions, RPCSerializerSerializeOptions } from "./rpc-serializer.js";
|
|
10
|
-
import { AnyNestedClient, Client, ClientContext, ClientLink, ClientOptions, ClientRest, FriendlyClientOptions, InferClientBodyInputs, InferClientBodyOutputs, InferClientContext, InferClientError, InferClientErrors, InferClientInputs, InferClientOutputs, NestedClient } from "./types.js";
|
|
10
|
+
import { AnyNestedClient, Client, ClientContext, ClientLink, ClientOptions, ClientRest, FriendlyClientOptions, InferClientBodyInputs, InferClientBodyInputsInternal, InferClientBodyOutputs, InferClientBodyOutputsInternal, InferClientContext, InferClientError, InferClientErrorInternal, InferClientErrors, InferClientErrorsInternal, InferClientInputs, InferClientInputsInternal, InferClientOutputs, InferClientOutputsInternal, NestedClient } from "./types.js";
|
|
11
11
|
import { SafeResult, resolveClientRest, safe } from "./utils.js";
|
|
12
12
|
import { AsyncCleanupFn, AsyncIteratorClass, AsyncIteratorClassNextFn, MaybeOptionalOptions, PromiseWithError, PromiseWithError as ClientPromiseResult, Registry, ThrowableError, asyncIteratorToStream, asyncIteratorToStream as eventIteratorToStream, asyncIteratorToUnproxiedDataStream, asyncIteratorToUnproxiedDataStream as eventIteratorToUnproxiedDataStream, consumeAsyncIterator, consumeAsyncIterator as consumeEventIterator, onAsyncIteratorObjectError, onError, onFinish, onReadableStreamError, onStart, onSuccess, streamToAsyncIteratorObject, streamToAsyncIteratorObject as streamToEventIterator } from "@orpc/shared";
|
|
13
13
|
import { EventMeta, EventStreamErrorEvent, EventStreamErrorEvent as ErrorEvent, StandardBody, StandardBodyHint, StandardHeaders, StandardLazyRequest, StandardLazyResponse, StandardMethod, StandardRequest, StandardResponse, StandardUrl, getEventMeta, unwrapEvent, withEventMeta } from "@standard-server/core";
|
|
14
|
-
export { AnyNestedClient, AnyORPCError, AnyORPCErrorJSON, type AsyncCleanupFn, AsyncIteratorClass, type AsyncIteratorClassNextFn, COMMON_ERROR_STATUS_MAP, Client, ClientContext, ClientLink, ClientOptions, type ClientPromiseResult, ClientRest, DynamicLink, ErrorEvent, type EventMeta, EventStreamErrorEvent, FriendlyClientOptions, InferClientBodyInputs, InferClientBodyOutputs, InferClientContext, InferClientError, type InferClientError as InferClientErrorUnion, InferClientErrors, InferClientInputs, InferClientOutputs, MalformedResponseError, MalformedResponseErrorOptions, type MaybeOptionalOptions, NestedClient, ORPCClientInterceptor, ORPCClientInterceptorOptions, ORPCClientOptions, ORPCClientScoped, ORPCClientScopedOptions, ORPCError, ORPCErrorCode, ORPCErrorJSON, ORPCErrorOptions, type PromiseWithError, RECURSIVE_CLIENT_UNWRAP_KEYS, RPCJsonSerialization, RPCJsonSerializationMeta, RPCJsonSerializer, RPCJsonSerializerHandler, RPCJsonSerializerOptions, RPCSerializer, RPCSerializerOptions, RPCSerializerSerializeOptions, type Registry, ResponseError, ResponseErrorOptions, SafeClient, type SafeResult, type StandardBody, type StandardBodyHint, type StandardHeaders, type StandardLazyRequest, type StandardLazyResponse, type StandardMethod, type StandardRequest, type StandardResponse, type StandardUrl, type ThrowableError, asyncIteratorToStream, asyncIteratorToUnproxiedDataStream, cloneORPCError, consumeAsyncIterator, consumeEventIterator, createORPCClient, createORPCErrorFromJson, createSafeClient, eventIteratorToStream, eventIteratorToUnproxiedDataStream, getEventMeta, isDefinedError, isORPCErrorJson, onAsyncIteratorObjectError, onError, onFinish, onReadableStreamError, onStart, onSuccess, resolveClientRest, safe, streamToAsyncIteratorObject, streamToEventIterator, toORPCError, unwrapEvent, withEventMeta, wrapAsyncIteratorPreservingEventMeta };
|
|
14
|
+
export { AnyNestedClient, AnyORPCError, AnyORPCErrorJSON, type AsyncCleanupFn, AsyncIteratorClass, type AsyncIteratorClassNextFn, COMMON_ERROR_STATUS_MAP, Client, ClientContext, ClientLink, ClientOptions, type ClientPromiseResult, ClientRest, DynamicLink, ErrorEvent, type EventMeta, EventStreamErrorEvent, FriendlyClientOptions, InferClientBodyInputs, InferClientBodyInputsInternal, InferClientBodyOutputs, InferClientBodyOutputsInternal, InferClientContext, InferClientError, InferClientErrorInternal, type InferClientError as InferClientErrorUnion, InferClientErrors, InferClientErrorsInternal, InferClientInputs, InferClientInputsInternal, InferClientOutputs, InferClientOutputsInternal, MalformedResponseError, MalformedResponseErrorOptions, type MaybeOptionalOptions, NestedClient, ORPCClientInterceptor, ORPCClientInterceptorOptions, ORPCClientOptions, ORPCClientScoped, ORPCClientScopedInternal, ORPCClientScopedOptions, ORPCError, ORPCErrorCode, ORPCErrorJSON, ORPCErrorOptions, type PromiseWithError, RECURSIVE_CLIENT_UNWRAP_KEYS, RPCJsonSerialization, RPCJsonSerializationMeta, RPCJsonSerializer, RPCJsonSerializerHandler, RPCJsonSerializerOptions, RPCSerializer, RPCSerializerOptions, RPCSerializerSerializeOptions, type Registry, ResponseError, ResponseErrorOptions, SafeClient, SafeClientInternal, type SafeResult, type StandardBody, type StandardBodyHint, type StandardHeaders, type StandardLazyRequest, type StandardLazyResponse, type StandardMethod, type StandardRequest, type StandardResponse, type StandardUrl, type ThrowableError, asyncIteratorToStream, asyncIteratorToUnproxiedDataStream, cloneORPCError, consumeAsyncIterator, consumeEventIterator, createORPCClient, createORPCErrorFromJson, createSafeClient, eventIteratorToStream, eventIteratorToUnproxiedDataStream, getEventMeta, isDefinedError, isORPCErrorJson, onAsyncIteratorObjectError, onError, onFinish, onReadableStreamError, onStart, onSuccess, resolveClientRest, safe, streamToAsyncIteratorObject, streamToEventIterator, toORPCError, unwrapEvent, withEventMeta, wrapAsyncIteratorPreservingEventMeta };
|
package/dist/types.d.ts
CHANGED
|
@@ -7,12 +7,12 @@ export interface ClientOptions<T extends ClientContext> {
|
|
|
7
7
|
lastEventId?: string | undefined;
|
|
8
8
|
context: T;
|
|
9
9
|
}
|
|
10
|
-
export type FriendlyClientOptions<T extends ClientContext> = Omit<ClientOptions<T>, "context"> & (
|
|
10
|
+
export type FriendlyClientOptions<T extends ClientContext> = Omit<ClientOptions<T>, "context"> & ({} extends T ? {
|
|
11
11
|
context?: T | undefined;
|
|
12
12
|
} : {
|
|
13
13
|
context: T;
|
|
14
14
|
});
|
|
15
|
-
export type ClientRest<TClientContext extends ClientContext, TInput> =
|
|
15
|
+
export type ClientRest<TClientContext extends ClientContext, TInput> = {} extends TClientContext ? undefined extends TInput ? [input?: TInput, options?: FriendlyClientOptions<TClientContext>] : [input: TInput, options?: FriendlyClientOptions<TClientContext>] : [input: TInput, options: FriendlyClientOptions<TClientContext>];
|
|
16
16
|
export interface Client<TClientContext extends ClientContext, TInput, TOutput, TError> {
|
|
17
17
|
(...rest: ClientRest<TClientContext, TInput>): PromiseWithError<TOutput, TError>;
|
|
18
18
|
}
|
|
@@ -36,7 +36,8 @@ export interface ClientLink<TClientContext extends ClientContext> {
|
|
|
36
36
|
*
|
|
37
37
|
* @see {@link https://orpc.dev/docs/client/client-side#infer-client-inputs | Client-Side Clients - Infer Client Inputs}
|
|
38
38
|
*/
|
|
39
|
-
export type InferClientInputs<T extends AnyNestedClient> =
|
|
39
|
+
export type InferClientInputs<T extends AnyNestedClient> = InferClientInputsInternal<T>;
|
|
40
|
+
export type InferClientInputsInternal<T> = T extends Client<any, infer U, any, any> ? U : { [K in keyof T]: InferClientInputsInternal<T[K] & {}>; };
|
|
40
41
|
/**
|
|
41
42
|
* Recursively infers the **body input types** from a client.
|
|
42
43
|
*
|
|
@@ -45,9 +46,10 @@ export type InferClientInputs<T extends AnyNestedClient> = T extends Client<any,
|
|
|
45
46
|
*
|
|
46
47
|
* @see {@link https://orpc.dev/docs/client/client-side#infer-client-body-inputs | Client-Side Clients - Infer Client Body Inputs}
|
|
47
48
|
*/
|
|
48
|
-
export type InferClientBodyInputs<T extends AnyNestedClient> = T
|
|
49
|
+
export type InferClientBodyInputs<T extends AnyNestedClient> = InferClientBodyInputsInternal<T>;
|
|
50
|
+
export type InferClientBodyInputsInternal<T> = T extends Client<any, infer U, any, any> ? U extends {
|
|
49
51
|
body: infer UBody;
|
|
50
|
-
} ? UBody : U : { [K in keyof T]:
|
|
52
|
+
} ? UBody : U : { [K in keyof T]: InferClientBodyInputsInternal<T[K] & {}>; };
|
|
51
53
|
/**
|
|
52
54
|
* Recursively infers the **output types** from a client.
|
|
53
55
|
*
|
|
@@ -55,7 +57,8 @@ export type InferClientBodyInputs<T extends AnyNestedClient> = T extends Client<
|
|
|
55
57
|
*
|
|
56
58
|
* @see {@link https://orpc.dev/docs/client/client-side#infer-client-outputs | Client-Side Clients - Infer Client Outputs}
|
|
57
59
|
*/
|
|
58
|
-
export type InferClientOutputs<T extends AnyNestedClient> =
|
|
60
|
+
export type InferClientOutputs<T extends AnyNestedClient> = InferClientOutputsInternal<T>;
|
|
61
|
+
export type InferClientOutputsInternal<T> = T extends Client<any, any, infer U, any> ? U : { [K in keyof T]: InferClientOutputsInternal<T[K] & {}>; };
|
|
59
62
|
/**
|
|
60
63
|
* Recursively infers the **body output types** from a client.
|
|
61
64
|
*
|
|
@@ -64,9 +67,10 @@ export type InferClientOutputs<T extends AnyNestedClient> = T extends Client<any
|
|
|
64
67
|
*
|
|
65
68
|
* @see {@link https://orpc.dev/docs/client/client-side#infer-client-body-outputs | Client-Side Clients - Infer Client Body Outputs}
|
|
66
69
|
*/
|
|
67
|
-
export type InferClientBodyOutputs<T extends AnyNestedClient> = T
|
|
70
|
+
export type InferClientBodyOutputs<T extends AnyNestedClient> = InferClientBodyOutputsInternal<T>;
|
|
71
|
+
export type InferClientBodyOutputsInternal<T> = T extends Client<any, any, infer U, any> ? U extends {
|
|
68
72
|
body: infer UBody;
|
|
69
|
-
} ? UBody : U : { [K in keyof T]:
|
|
73
|
+
} ? UBody : U : { [K in keyof T]: InferClientBodyOutputsInternal<T[K] & {}>; };
|
|
70
74
|
/**
|
|
71
75
|
* Recursively infers the **error types** from a client when you use [type-safe errors](https://orpc.dev/docs/error-handling#typesafe-errors).
|
|
72
76
|
*
|
|
@@ -74,7 +78,8 @@ export type InferClientBodyOutputs<T extends AnyNestedClient> = T extends Client
|
|
|
74
78
|
*
|
|
75
79
|
* @see {@link https://orpc.dev/docs/client/client-side#infer-client-errors | Client-Side Clients - Infer Client Errors}
|
|
76
80
|
*/
|
|
77
|
-
export type InferClientErrors<T extends AnyNestedClient> =
|
|
81
|
+
export type InferClientErrors<T extends AnyNestedClient> = InferClientErrorsInternal<T>;
|
|
82
|
+
export type InferClientErrorsInternal<T> = T extends Client<any, any, any, infer U> ? U : { [K in keyof T]: InferClientErrorsInternal<T[K] & {}>; };
|
|
78
83
|
/**
|
|
79
84
|
* Recursively infers a **union of all error types** from a client when you use [type-safe errors](https://orpc.dev/docs/error-handling#typesafe-errors).
|
|
80
85
|
*
|
|
@@ -82,4 +87,5 @@ export type InferClientErrors<T extends AnyNestedClient> = T extends Client<any,
|
|
|
82
87
|
*
|
|
83
88
|
* @see {@link https://orpc.dev/docs/client/client-side#infer-client-error | Client-Side Clients - Infer Client Error}
|
|
84
89
|
*/
|
|
85
|
-
export type InferClientError<T extends AnyNestedClient> =
|
|
90
|
+
export type InferClientError<T extends AnyNestedClient> = InferClientErrorInternal<T>;
|
|
91
|
+
export type InferClientErrorInternal<T> = T extends Client<any, any, any, infer U> ? U : { [K in keyof T]-?: InferClientErrorInternal<T[K] & {}>; }[keyof T];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orpc/client",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.51",
|
|
4
4
|
"description": "Consume oRPC and OpenAPI APIs with end-to-end type safety over HTTP, WebSocket, or message ports",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@orpc/shared": "2.0.0-beta.
|
|
66
|
+
"@orpc/shared": "2.0.0-beta.51",
|
|
67
67
|
"@standard-server/core": "~0.16.0",
|
|
68
68
|
"@standard-server/fetch": "~0.16.0",
|
|
69
69
|
"@standard-server/peer": "~0.16.0"
|