@orpc/client 0.0.0-next.c59d67c → 0.0.0-next.d137cdf
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/dist/src/router.d.ts +2 -2
- package/package.json +6 -6
package/dist/src/router.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { ContractProcedure, ContractRouter, SchemaOutput } from '@orpc/contract';
|
2
|
-
import type { Procedure, Router } from '@orpc/server';
|
2
|
+
import type { Lazy, Procedure, Router } from '@orpc/server';
|
3
3
|
import type { Promisable } from '@orpc/shared';
|
4
4
|
import { type ProcedureClient } from './procedure';
|
5
5
|
export type RouterClientWithContractRouter<TRouter extends ContractRouter> = {
|
6
6
|
[K in keyof TRouter]: TRouter[K] extends ContractProcedure<infer UInputSchema, infer UOutputSchema> ? ProcedureClient<UInputSchema, UOutputSchema, SchemaOutput<UOutputSchema>> : TRouter[K] extends ContractRouter ? RouterClientWithContractRouter<TRouter[K]> : never;
|
7
7
|
};
|
8
8
|
export type RouterClientWithRouter<TRouter extends Router<any>> = {
|
9
|
-
[K in keyof TRouter]: TRouter[K] extends Procedure<any, any, infer UInputSchema, infer UOutputSchema, infer UFuncOutput> ? ProcedureClient<UInputSchema, UOutputSchema, UFuncOutput> : TRouter[K] extends Router<any> ? RouterClientWithRouter<TRouter[K]> : never;
|
9
|
+
[K in keyof TRouter]: TRouter[K] extends Procedure<any, any, infer UInputSchema, infer UOutputSchema, infer UFuncOutput> | Lazy<Procedure<any, any, infer UInputSchema, infer UOutputSchema, infer UFuncOutput>> ? ProcedureClient<UInputSchema, UOutputSchema, UFuncOutput> : TRouter[K] extends Router<any> ? RouterClientWithRouter<TRouter[K]> : never;
|
10
10
|
};
|
11
11
|
export interface CreateRouterClientOptions {
|
12
12
|
/**
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@orpc/client",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.0-next.
|
4
|
+
"version": "0.0.0-next.d137cdf",
|
5
5
|
"license": "MIT",
|
6
6
|
"homepage": "https://orpc.unnoq.com",
|
7
7
|
"repository": {
|
@@ -29,16 +29,16 @@
|
|
29
29
|
"dist"
|
30
30
|
],
|
31
31
|
"peerDependencies": {
|
32
|
-
"@orpc/
|
33
|
-
"@orpc/
|
32
|
+
"@orpc/server": "0.0.0-next.d137cdf",
|
33
|
+
"@orpc/contract": "0.0.0-next.d137cdf"
|
34
34
|
},
|
35
35
|
"dependencies": {
|
36
|
-
"@orpc/shared": "0.0.0-next.
|
37
|
-
"@orpc/transformer": "0.0.0-next.
|
36
|
+
"@orpc/shared": "0.0.0-next.d137cdf",
|
37
|
+
"@orpc/transformer": "0.0.0-next.d137cdf"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
40
|
"zod": "^3.23.8",
|
41
|
-
"@orpc/openapi": "0.0.0-next.
|
41
|
+
"@orpc/openapi": "0.0.0-next.d137cdf"
|
42
42
|
},
|
43
43
|
"scripts": {
|
44
44
|
"build": "tsup --clean --sourcemap --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
|