@trpc/next 10.28.0 → 10.28.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.
- package/app-dir/links/nextCache/index.d.ts +1 -0
- package/app-dir/links/nextCache/index.js +1 -0
- package/app-dir/links/nextHttp/index.d.ts +1 -0
- package/app-dir/links/nextHttp/index.js +1 -0
- package/dist/app-dir/client.d.ts +5 -5
- package/dist/app-dir/create-action-hook.d.ts +45 -45
- package/dist/app-dir/create-action-hook.d.ts.map +1 -1
- package/dist/app-dir/formDataToObject.d.ts +1 -1
- package/dist/app-dir/server.d.ts +23 -23
- package/dist/app-dir/server.d.ts.map +1 -1
- package/dist/app-dir/shared.d.ts +46 -46
- package/dist/app-dir/shared.d.ts.map +1 -1
- package/dist/createTRPCNext.d.ts +17 -17
- package/dist/createTRPCNext.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/{shared-bc6a2699.js → shared-7b422d72.js} +9 -9
- package/dist/withTRPC.d.ts +26 -26
- package/dist/withTRPC.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../../dist/app-dir/links/nextCache';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../../dist/app-dir/links/nextCache');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../../dist/app-dir/links/nextHttp';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../../dist/app-dir/links/nextHttp');
|
package/dist/app-dir/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CreateTRPCProxyClient } from '@trpc/client';
|
|
2
|
-
import { AnyRouter } from '@trpc/server';
|
|
3
|
-
import { CreateTRPCNextAppRouterOptions } from './shared';
|
|
4
|
-
export { experimental_createActionHook, experimental_serverActionLink, type UseTRPCActionResult, type inferActionResultProps, } from './create-action-hook';
|
|
5
|
-
export declare function experimental_createTRPCNextAppDirClient<TRouter extends AnyRouter>(opts: CreateTRPCNextAppRouterOptions<TRouter>): CreateTRPCProxyClient<TRouter>;
|
|
1
|
+
import { CreateTRPCProxyClient } from '@trpc/client';
|
|
2
|
+
import { AnyRouter } from '@trpc/server';
|
|
3
|
+
import { CreateTRPCNextAppRouterOptions } from './shared';
|
|
4
|
+
export { experimental_createActionHook, experimental_serverActionLink, type UseTRPCActionResult, type inferActionResultProps, } from './create-action-hook';
|
|
5
|
+
export declare function experimental_createTRPCNextAppDirClient<TRouter extends AnyRouter>(opts: CreateTRPCNextAppRouterOptions<TRouter>): CreateTRPCProxyClient<TRouter>;
|
|
6
6
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { CreateTRPCClientOptions, TRPCClientError, TRPCLink } from '@trpc/client';
|
|
2
|
-
import { AnyProcedure, AnyRouter, MaybePromise, ProcedureOptions, Simplify, inferHandlerInput } from '@trpc/server';
|
|
3
|
-
import { TRPCActionHandler } from './server';
|
|
4
|
-
import { ActionHandlerDef } from './shared';
|
|
5
|
-
|
|
6
|
-
interface UseTRPCActionBaseResult<TDef extends ActionHandlerDef> {
|
|
7
|
-
mutate: (...args: MutationArgs<TDef>) => void;
|
|
8
|
-
mutateAsync: (...args: MutationArgs<TDef>) => Promise<TDef['output']>;
|
|
9
|
-
}
|
|
10
|
-
interface UseTRPCActionSuccessResult<TDef extends ActionHandlerDef> extends UseTRPCActionBaseResult<TDef> {
|
|
11
|
-
data: TDef['output'];
|
|
12
|
-
error?: never;
|
|
13
|
-
status: 'success';
|
|
14
|
-
}
|
|
15
|
-
interface UseTRPCActionErrorResult<TDef extends ActionHandlerDef> extends UseTRPCActionBaseResult<TDef> {
|
|
16
|
-
data?: never;
|
|
17
|
-
error: TRPCClientError<TDef['errorShape']>;
|
|
18
|
-
status: 'error';
|
|
19
|
-
}
|
|
20
|
-
interface UseTRPCActionIdleResult<TDef extends ActionHandlerDef> extends UseTRPCActionBaseResult<TDef> {
|
|
21
|
-
data?: never;
|
|
22
|
-
error?: never;
|
|
23
|
-
status: 'idle';
|
|
24
|
-
}
|
|
25
|
-
interface UseTRPCActionLoadingResult<TDef extends ActionHandlerDef> extends UseTRPCActionBaseResult<TDef> {
|
|
26
|
-
data?: never;
|
|
27
|
-
error?: never;
|
|
28
|
-
status: 'loading';
|
|
29
|
-
}
|
|
30
|
-
export
|
|
31
|
-
export declare function experimental_serverActionLink<TRouter extends AnyRouter = AnyRouter>(): TRPCLink<TRouter>;
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
*/
|
|
35
|
-
export
|
|
36
|
-
input: inferHandlerInput<TProc>[0];
|
|
37
|
-
output: TProc['_def']['_output_out'];
|
|
38
|
-
errorShape: TProc['_def']['_config']['$types']['errorShape'];
|
|
39
|
-
};
|
|
40
|
-
interface UseTRPCActionOptions<TDef extends ActionHandlerDef> {
|
|
41
|
-
onSuccess?: (result: TDef['output']) => void | MaybePromise<void>;
|
|
42
|
-
onError?: (result: TRPCClientError<TDef['errorShape']>) => MaybePromise<void>;
|
|
43
|
-
}
|
|
44
|
-
export declare function experimental_createActionHook<TRouter extends AnyRouter>(opts: CreateTRPCClientOptions<TRouter>): <TDef extends ActionHandlerDef>(handler: TRPCActionHandler<TDef>, useActionOpts?: UseTRPCActionOptions<Simplify<TDef>> | undefined) => UseTRPCActionResult<TDef>;
|
|
45
|
-
export {};
|
|
1
|
+
import { CreateTRPCClientOptions, TRPCClientError, TRPCLink } from '@trpc/client';
|
|
2
|
+
import { AnyProcedure, AnyRouter, MaybePromise, ProcedureOptions, Simplify, inferHandlerInput } from '@trpc/server';
|
|
3
|
+
import { TRPCActionHandler } from './server';
|
|
4
|
+
import { ActionHandlerDef } from './shared';
|
|
5
|
+
type MutationArgs<TDef extends ActionHandlerDef> = TDef['input'] extends void ? [input?: undefined | void, opts?: ProcedureOptions] : [input: TDef['input'] | FormData, opts?: ProcedureOptions];
|
|
6
|
+
interface UseTRPCActionBaseResult<TDef extends ActionHandlerDef> {
|
|
7
|
+
mutate: (...args: MutationArgs<TDef>) => void;
|
|
8
|
+
mutateAsync: (...args: MutationArgs<TDef>) => Promise<TDef['output']>;
|
|
9
|
+
}
|
|
10
|
+
interface UseTRPCActionSuccessResult<TDef extends ActionHandlerDef> extends UseTRPCActionBaseResult<TDef> {
|
|
11
|
+
data: TDef['output'];
|
|
12
|
+
error?: never;
|
|
13
|
+
status: 'success';
|
|
14
|
+
}
|
|
15
|
+
interface UseTRPCActionErrorResult<TDef extends ActionHandlerDef> extends UseTRPCActionBaseResult<TDef> {
|
|
16
|
+
data?: never;
|
|
17
|
+
error: TRPCClientError<TDef['errorShape']>;
|
|
18
|
+
status: 'error';
|
|
19
|
+
}
|
|
20
|
+
interface UseTRPCActionIdleResult<TDef extends ActionHandlerDef> extends UseTRPCActionBaseResult<TDef> {
|
|
21
|
+
data?: never;
|
|
22
|
+
error?: never;
|
|
23
|
+
status: 'idle';
|
|
24
|
+
}
|
|
25
|
+
interface UseTRPCActionLoadingResult<TDef extends ActionHandlerDef> extends UseTRPCActionBaseResult<TDef> {
|
|
26
|
+
data?: never;
|
|
27
|
+
error?: never;
|
|
28
|
+
status: 'loading';
|
|
29
|
+
}
|
|
30
|
+
export type UseTRPCActionResult<TDef extends ActionHandlerDef> = UseTRPCActionSuccessResult<TDef> | UseTRPCActionErrorResult<TDef> | UseTRPCActionIdleResult<TDef> | UseTRPCActionLoadingResult<TDef>;
|
|
31
|
+
export declare function experimental_serverActionLink<TRouter extends AnyRouter = AnyRouter>(): TRPCLink<TRouter>;
|
|
32
|
+
/**
|
|
33
|
+
* @internal
|
|
34
|
+
*/
|
|
35
|
+
export type inferActionResultProps<TProc extends AnyProcedure> = {
|
|
36
|
+
input: inferHandlerInput<TProc>[0];
|
|
37
|
+
output: TProc['_def']['_output_out'];
|
|
38
|
+
errorShape: TProc['_def']['_config']['$types']['errorShape'];
|
|
39
|
+
};
|
|
40
|
+
interface UseTRPCActionOptions<TDef extends ActionHandlerDef> {
|
|
41
|
+
onSuccess?: (result: TDef['output']) => void | MaybePromise<void>;
|
|
42
|
+
onError?: (result: TRPCClientError<TDef['errorShape']>) => MaybePromise<void>;
|
|
43
|
+
}
|
|
44
|
+
export declare function experimental_createActionHook<TRouter extends AnyRouter>(opts: CreateTRPCClientOptions<TRouter>): <TDef extends ActionHandlerDef>(handler: TRPCActionHandler<TDef>, useActionOpts?: UseTRPCActionOptions<Simplify<TDef>> | undefined) => UseTRPCActionResult<TDef>;
|
|
45
|
+
export {};
|
|
46
46
|
//# sourceMappingURL=create-action-hook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-action-hook.d.ts","sourceRoot":"","sources":["../../src/app-dir/create-action-hook.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,QAAQ,EAGT,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAc,MAAM,UAAU,CAAC;AAExD,
|
|
1
|
+
{"version":3,"file":"create-action-hook.d.ts","sourceRoot":"","sources":["../../src/app-dir/create-action-hook.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,eAAe,EACf,QAAQ,EAGT,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAc,MAAM,UAAU,CAAC;AAExD,KAAK,YAAY,CAAC,IAAI,SAAS,gBAAgB,IAAI,IAAI,CAAC,OAAO,CAAC,S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,KAAK,CAAC;IACd,MAAM,EAAE,SAAS,CAAC;CACnB;AAGD,MAAM,MAAM,mBAAmB,CAAC,IAAI,SAAS,gBAAgB,IACzD,0BAA0B,CAAC,IAAI,CAAC,GAChC,wBAAwB,CAAC,IAAI,CAAC,GAC9B,uBAAuB,CAAC,IAAI,CAAC,GAC7B,0BAA0B,CAAC,IAAI,CAAC,CAAC;AAOrC,wBAAgB,6BAA6B,CAC3C,OAAO,SAAS,SAAS,GAAG,SAAS,KAClC,QAAQ,CAAC,OAAO,CAAC,CA2BrB;AAGD;;GAEG;AACH,MAAM,MAAM,sBAAsB,CAAC,KAAK,SAAS,YAAY,IAAI;IAC/D,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;IACrC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC;CAC9D,CAAC;AAEF,UAAU,oBAAoB,CAAC,IAAI,SAAS,gBAAgB;IAC1D,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAClE,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;CAC/E;AAGD,wBAAgB,6BAA6B,CAAC,OAAO,SAAS,SAAS,EACrE,IAAI,EAAE,uBAAuB,CAAC,OAAO,CAAC,oKA6FvC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function formDataToObject(formData: FormData): Record<string, unknown>;
|
|
1
|
+
export declare function formDataToObject(formData: FormData): Record<string, unknown>;
|
|
2
2
|
//# sourceMappingURL=formDataToObject.d.ts.map
|
package/dist/app-dir/server.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { CreateTRPCProxyClient } from '@trpc/client';
|
|
2
|
-
import { AnyProcedure, AnyRootConfig, AnyRouter, MaybePromise, Simplify } from '@trpc/server';
|
|
3
|
-
import { TRPCResponse } from '@trpc/server/rpc';
|
|
4
|
-
import { ActionHandlerDef, CreateTRPCNextAppRouterOptions, inferActionDef } from './shared';
|
|
5
|
-
export declare function experimental_createTRPCNextAppDirServer<TRouter extends AnyRouter>(opts: CreateTRPCNextAppRouterOptions<TRouter>): CreateTRPCProxyClient<TRouter>;
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
|
-
export
|
|
10
|
-
export declare function experimental_createServerActionHandler<TInstance extends {
|
|
11
|
-
_config: AnyRootConfig;
|
|
12
|
-
}>(t: TInstance, opts: {
|
|
13
|
-
createContext: () => MaybePromise<TInstance['_config']['$types']['ctx']>;
|
|
14
|
-
/**
|
|
15
|
-
* Transform form data to a `Record` before passing it to the procedure
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
normalizeFormData?: boolean;
|
|
19
|
-
}): <TProc extends AnyProcedure>(proc: TProc) => TRPCActionHandler<{
|
|
20
|
-
input: import("@trpc/server").ProcedureArgs<import("@trpc/server").inferProcedureParams<TProc>>[0];
|
|
21
|
-
output: TProc["_def"]["_output_out"];
|
|
22
|
-
errorShape: TProc["_def"]["_config"]["$types"]["errorShape"];
|
|
23
|
-
}>;
|
|
1
|
+
import { CreateTRPCProxyClient } from '@trpc/client';
|
|
2
|
+
import { AnyProcedure, AnyRootConfig, AnyRouter, MaybePromise, Simplify } from '@trpc/server';
|
|
3
|
+
import { TRPCResponse } from '@trpc/server/rpc';
|
|
4
|
+
import { ActionHandlerDef, CreateTRPCNextAppRouterOptions, inferActionDef } from './shared';
|
|
5
|
+
export declare function experimental_createTRPCNextAppDirServer<TRouter extends AnyRouter>(opts: CreateTRPCNextAppRouterOptions<TRouter>): CreateTRPCProxyClient<TRouter>;
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export type TRPCActionHandler<TDef extends ActionHandlerDef> = (input: TDef['input'] | FormData) => Promise<TRPCResponse<TDef['output'], TDef['errorShape']>>;
|
|
10
|
+
export declare function experimental_createServerActionHandler<TInstance extends {
|
|
11
|
+
_config: AnyRootConfig;
|
|
12
|
+
}>(t: TInstance, opts: {
|
|
13
|
+
createContext: () => MaybePromise<TInstance['_config']['$types']['ctx']>;
|
|
14
|
+
/**
|
|
15
|
+
* Transform form data to a `Record` before passing it to the procedure
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
normalizeFormData?: boolean;
|
|
19
|
+
}): <TProc extends AnyProcedure>(proc: TProc) => TRPCActionHandler<{
|
|
20
|
+
input: import("@trpc/server").ProcedureArgs<import("@trpc/server").inferProcedureParams<TProc>>[0];
|
|
21
|
+
output: TProc["_def"]["_output_out"];
|
|
22
|
+
errorShape: TProc["_def"]["_config"]["$types"]["errorShape"];
|
|
23
|
+
}>;
|
|
24
24
|
//# sourceMappingURL=server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/app-dir/server.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EAGtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,YAAY,EACZ,aAAa,EACb,SAAS,EAET,YAAY,EACZ,QAAQ,EAIT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAQhD,OAAO,EACL,gBAAgB,EAChB,8BAA8B,EAC9B,cAAc,EAEf,MAAM,UAAU,CAAC;AAGlB,wBAAgB,uCAAuC,CACrD,OAAO,SAAS,SAAS,EACzB,IAAI,EAAE,8BAA8B,CAAC,OAAO,CAAC,kCAkB9C;AAED;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/app-dir/server.ts"],"names":[],"mappings":"AACA,OAAO,EACL,qBAAqB,EAGtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,YAAY,EACZ,aAAa,EACb,SAAS,EAET,YAAY,EACZ,QAAQ,EAIT,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAQhD,OAAO,EACL,gBAAgB,EAChB,8BAA8B,EAC9B,cAAc,EAEf,MAAM,UAAU,CAAC;AAGlB,wBAAgB,uCAAuC,CACrD,OAAO,SAAS,SAAS,EACzB,IAAI,EAAE,8BAA8B,CAAC,OAAO,CAAC,kCAkB9C;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,CAAC,IAAI,SAAS,gBAAgB,IAAI,CAC7D,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,QAAQ,KAC5B,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;AAE/D,wBAAgB,sCAAsC,CACpD,SAAS,SAAS;IAChB,OAAO,EAAE,aAAa,CAAC;CACxB,EAED,CAAC,EAAE,SAAS,EACZ,IAAI,EAAE;IACJ,aAAa,EAAE,MAAM,YAAY,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IACzE;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;;;;GAgEF"}
|
package/dist/app-dir/shared.d.ts
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { CreateTRPCClientOptions, Resolver, TRPCUntypedClient } from '@trpc/client';
|
|
2
|
-
import { AnyProcedure, AnyQueryProcedure, AnyRouter, Filter, ProtectedIntersection, ThenArg, inferHandlerInput } from '@trpc/server';
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
export
|
|
7
|
-
[TKey in keyof Filter<TRouter['_def']['record'], AnyRouter | AnyQueryProcedure>]: TRouter['_def']['record'][TKey] extends AnyRouter ? UseProcedureRecord<TRouter['_def']['record'][TKey]> : Resolver<TRouter['_def']['record'][TKey]>;
|
|
8
|
-
};
|
|
9
|
-
export declare function createUseProxy<TRouter extends AnyRouter>(client: TRPCUntypedClient<TRouter>): UseProcedureRecord<TRouter>;
|
|
10
|
-
|
|
11
|
-
<TData extends Promise<unknown>[]>(cb: (t: UseProcedureRecord<TRouter>) => [...TData]): {
|
|
12
|
-
[TKey in keyof TData]: ThenArg<TData[TKey]>;
|
|
13
|
-
};
|
|
14
|
-
<TData extends Promise<unknown>>(cb: (t: UseProcedureRecord<TRouter>) => TData): ThenArg<TData>;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
use: NextAppRouterUse<TRouter>;
|
|
18
|
-
};
|
|
19
|
-
export
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
*/
|
|
23
|
-
export interface CreateTRPCNextAppRouterOptions<TRouter extends AnyRouter> {
|
|
24
|
-
config: () => CreateTRPCClientOptions<TRouter>;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
*/
|
|
29
|
-
export declare function isFormData(value: unknown): value is FormData;
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
export interface ActionHandlerDef {
|
|
34
|
-
input?: any;
|
|
35
|
-
output?: any;
|
|
36
|
-
errorShape: any;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
*/
|
|
41
|
-
export
|
|
42
|
-
input: inferHandlerInput<TProc>[0];
|
|
43
|
-
output: TProc['_def']['_output_out'];
|
|
44
|
-
errorShape: TProc['_def']['_config']['$types']['errorShape'];
|
|
45
|
-
};
|
|
46
|
-
export {};
|
|
1
|
+
import { CreateTRPCClientOptions, Resolver, TRPCUntypedClient } from '@trpc/client';
|
|
2
|
+
import { AnyProcedure, AnyQueryProcedure, AnyRouter, Filter, ProtectedIntersection, ThenArg, inferHandlerInput } from '@trpc/server';
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export type UseProcedureRecord<TRouter extends AnyRouter> = {
|
|
7
|
+
[TKey in keyof Filter<TRouter['_def']['record'], AnyRouter | AnyQueryProcedure>]: TRouter['_def']['record'][TKey] extends AnyRouter ? UseProcedureRecord<TRouter['_def']['record'][TKey]> : Resolver<TRouter['_def']['record'][TKey]>;
|
|
8
|
+
};
|
|
9
|
+
export declare function createUseProxy<TRouter extends AnyRouter>(client: TRPCUntypedClient<TRouter>): UseProcedureRecord<TRouter>;
|
|
10
|
+
type NextAppRouterUse<TRouter extends AnyRouter> = {
|
|
11
|
+
<TData extends Promise<unknown>[]>(cb: (t: UseProcedureRecord<TRouter>) => [...TData]): {
|
|
12
|
+
[TKey in keyof TData]: ThenArg<TData[TKey]>;
|
|
13
|
+
};
|
|
14
|
+
<TData extends Promise<unknown>>(cb: (t: UseProcedureRecord<TRouter>) => TData): ThenArg<TData>;
|
|
15
|
+
};
|
|
16
|
+
type CreateTRPCNextAppRouterBase<TRouter extends AnyRouter> = {
|
|
17
|
+
use: NextAppRouterUse<TRouter>;
|
|
18
|
+
};
|
|
19
|
+
export type CreateTRPCNextAppRouter<TRouter extends AnyRouter> = ProtectedIntersection<CreateTRPCNextAppRouterBase<TRouter>, UseProcedureRecord<TRouter>>;
|
|
20
|
+
/**
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateTRPCNextAppRouterOptions<TRouter extends AnyRouter> {
|
|
24
|
+
config: () => CreateTRPCClientOptions<TRouter>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare function isFormData(value: unknown): value is FormData;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
export interface ActionHandlerDef {
|
|
34
|
+
input?: any;
|
|
35
|
+
output?: any;
|
|
36
|
+
errorShape: any;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
export type inferActionDef<TProc extends AnyProcedure> = {
|
|
42
|
+
input: inferHandlerInput<TProc>[0];
|
|
43
|
+
output: TProc['_def']['_output_out'];
|
|
44
|
+
errorShape: TProc['_def']['_config']['$types']['errorShape'];
|
|
45
|
+
};
|
|
46
|
+
export {};
|
|
47
47
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/app-dir/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,QAAQ,EACR,iBAAiB,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,MAAM,EACN,qBAAqB,EACrB,OAAO,EACP,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAGtB;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/app-dir/shared.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,QAAQ,EACR,iBAAiB,EAClB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,SAAS,EACT,MAAM,EACN,qBAAqB,EACrB,OAAO,EACP,iBAAiB,EAClB,MAAM,cAAc,CAAC;AAGtB;;GAEG;AACH,MAAM,MAAM,kBAAkB,CAAC,OAAO,SAAS,SAAS,IAAI;KACzD,IAAI,IAAI,MAAM,MAAM,CACnB,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,EACzB,SAAS,GAAG,iBAAiB,CAC9B,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GACjD,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MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,UAAU,EAAE,GAAG,CAAC;CACjB;AAGD;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,YAAY,IAAI;IACvD,KAAK,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC;IACrC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC;CAC9D,CAAC"}
|
package/dist/createTRPCNext.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { CreateReactUtilsProxy, DecoratedProcedureRecord, TRPCUseQueries } from '@trpc/react-query/shared';
|
|
2
|
-
import { AnyRouter, ProtectedIntersection } from '@trpc/server';
|
|
3
|
-
import { NextPageContext } from 'next/types';
|
|
4
|
-
import { WithTRPCNoSSROptions, WithTRPCSSROptions, withTRPC } from './withTRPC';
|
|
5
|
-
/**
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export interface CreateTRPCNextBase<TRouter extends AnyRouter, TSSRContext extends NextPageContext> {
|
|
9
|
-
useContext(): CreateReactUtilsProxy<TRouter, TSSRContext>;
|
|
10
|
-
withTRPC: ReturnType<typeof withTRPC<TRouter, TSSRContext>>;
|
|
11
|
-
useQueries: TRPCUseQueries<TRouter>;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
export
|
|
17
|
-
export declare function createTRPCNext<TRouter extends AnyRouter, TSSRContext extends NextPageContext = NextPageContext, TFlags = null>(opts: WithTRPCNoSSROptions<TRouter> | WithTRPCSSROptions<TRouter>): CreateTRPCNext<TRouter, TSSRContext, TFlags>;
|
|
1
|
+
import { CreateReactUtilsProxy, DecoratedProcedureRecord, TRPCUseQueries } from '@trpc/react-query/shared';
|
|
2
|
+
import { AnyRouter, ProtectedIntersection } from '@trpc/server';
|
|
3
|
+
import { NextPageContext } from 'next/types';
|
|
4
|
+
import { WithTRPCNoSSROptions, WithTRPCSSROptions, withTRPC } from './withTRPC';
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export interface CreateTRPCNextBase<TRouter extends AnyRouter, TSSRContext extends NextPageContext> {
|
|
9
|
+
useContext(): CreateReactUtilsProxy<TRouter, TSSRContext>;
|
|
10
|
+
withTRPC: ReturnType<typeof withTRPC<TRouter, TSSRContext>>;
|
|
11
|
+
useQueries: TRPCUseQueries<TRouter>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export type CreateTRPCNext<TRouter extends AnyRouter, TSSRContext extends NextPageContext, TFlags> = ProtectedIntersection<CreateTRPCNextBase<TRouter, TSSRContext>, DecoratedProcedureRecord<TRouter['_def']['record'], TFlags>>;
|
|
17
|
+
export declare function createTRPCNext<TRouter extends AnyRouter, TSSRContext extends NextPageContext = NextPageContext, TFlags = null>(opts: WithTRPCNoSSROptions<TRouter> | WithTRPCSSROptions<TRouter>): CreateTRPCNext<TRouter, TSSRContext, TFlags>;
|
|
18
18
|
//# sourceMappingURL=createTRPCNext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTRPCNext.d.ts","sourceRoot":"","sources":["../src/createTRPCNext.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EACrB,wBAAwB,EACxB,cAAc,EAIf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,E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AAC,CAC5D,CAAC;AAEF,wBAAgB,cAAc,CAC5B,OAAO,SAAS,SAAS,EACzB,WAAW,SAAS,eAAe,GAAG,eAAe,EACrD,MAAM,GAAG,IAAI,EAEb,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,OAAO,CAAC,GAChE,cAAc,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,CAAC,CA2B9C"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './withTRPC';
|
|
2
|
-
export * from './createTRPCNext';
|
|
1
|
+
export * from './withTRPC';
|
|
2
|
+
export * from './createTRPCNext';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import '@trpc/server/shared';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
function isFormData(value) {
|
|
7
|
-
if (typeof FormData === 'undefined') {
|
|
8
|
-
// FormData is not supported
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
return value instanceof FormData;
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
function isFormData(value) {
|
|
7
|
+
if (typeof FormData === 'undefined') {
|
|
8
|
+
// FormData is not supported
|
|
9
|
+
return false;
|
|
10
|
+
}
|
|
11
|
+
return value instanceof FormData;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export { isFormData as i };
|
package/dist/withTRPC.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import type { CreateTRPCClientOptions } from '@trpc/client';
|
|
2
|
-
import { TRPCClientError } from '@trpc/react-query';
|
|
3
|
-
import { CreateTRPCReactOptions, CreateTRPCReactQueryClientConfig } from '@trpc/react-query/shared';
|
|
4
|
-
import type { AnyRouter } from '@trpc/server';
|
|
5
|
-
import type { ResponseMeta } from '@trpc/server/http';
|
|
6
|
-
import { NextComponentType, NextPageContext } from 'next/dist/shared/lib/utils';
|
|
7
|
-
export
|
|
8
|
-
abortOnUnmount?: boolean;
|
|
9
|
-
} & CreateTRPCReactQueryClientConfig;
|
|
10
|
-
interface WithTRPCOptions<TRouter extends AnyRouter> extends CreateTRPCReactOptions<TRouter> {
|
|
11
|
-
config: (info: {
|
|
12
|
-
ctx?: NextPageContext;
|
|
13
|
-
}) => WithTRPCConfig<TRouter>;
|
|
14
|
-
}
|
|
15
|
-
export interface WithTRPCSSROptions<TRouter extends AnyRouter> extends WithTRPCOptions<TRouter> {
|
|
16
|
-
ssr: true;
|
|
17
|
-
responseMeta?: (opts: {
|
|
18
|
-
ctx: NextPageContext;
|
|
19
|
-
clientErrors: TRPCClientError<TRouter>[];
|
|
20
|
-
}) => ResponseMeta;
|
|
21
|
-
}
|
|
22
|
-
export interface WithTRPCNoSSROptions<TRouter extends AnyRouter> extends WithTRPCOptions<TRouter> {
|
|
23
|
-
ssr?: false;
|
|
24
|
-
}
|
|
25
|
-
export declare function withTRPC<TRouter extends AnyRouter, TSSRContext extends NextPageContext = NextPageContext>(opts: WithTRPCNoSSROptions<TRouter> | WithTRPCSSROptions<TRouter>): (AppOrPage: NextComponentType<any, any, any>) => NextComponentType;
|
|
26
|
-
export {};
|
|
1
|
+
import type { CreateTRPCClientOptions } from '@trpc/client';
|
|
2
|
+
import { TRPCClientError } from '@trpc/react-query';
|
|
3
|
+
import { CreateTRPCReactOptions, CreateTRPCReactQueryClientConfig } from '@trpc/react-query/shared';
|
|
4
|
+
import type { AnyRouter } from '@trpc/server';
|
|
5
|
+
import type { ResponseMeta } from '@trpc/server/http';
|
|
6
|
+
import { NextComponentType, NextPageContext } from 'next/dist/shared/lib/utils';
|
|
7
|
+
export type WithTRPCConfig<TRouter extends AnyRouter> = CreateTRPCClientOptions<TRouter> & {
|
|
8
|
+
abortOnUnmount?: boolean;
|
|
9
|
+
} & CreateTRPCReactQueryClientConfig;
|
|
10
|
+
interface WithTRPCOptions<TRouter extends AnyRouter> extends CreateTRPCReactOptions<TRouter> {
|
|
11
|
+
config: (info: {
|
|
12
|
+
ctx?: NextPageContext;
|
|
13
|
+
}) => WithTRPCConfig<TRouter>;
|
|
14
|
+
}
|
|
15
|
+
export interface WithTRPCSSROptions<TRouter extends AnyRouter> extends WithTRPCOptions<TRouter> {
|
|
16
|
+
ssr: true;
|
|
17
|
+
responseMeta?: (opts: {
|
|
18
|
+
ctx: NextPageContext;
|
|
19
|
+
clientErrors: TRPCClientError<TRouter>[];
|
|
20
|
+
}) => ResponseMeta;
|
|
21
|
+
}
|
|
22
|
+
export interface WithTRPCNoSSROptions<TRouter extends AnyRouter> extends WithTRPCOptions<TRouter> {
|
|
23
|
+
ssr?: false;
|
|
24
|
+
}
|
|
25
|
+
export declare function withTRPC<TRouter extends AnyRouter, TSSRContext extends NextPageContext = NextPageContext>(opts: WithTRPCNoSSROptions<TRouter> | WithTRPCSSROptions<TRouter>): (AppOrPage: NextComponentType<any, any, any>) => NextComponentType;
|
|
26
|
+
export {};
|
|
27
27
|
//# sourceMappingURL=withTRPC.d.ts.map
|
package/dist/withTRPC.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withTRPC.d.ts","sourceRoot":"","sources":["../src/withTRPC.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,EAEL,eAAe,EAIhB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,sBAAsB,EACtB,gCAAgC,EAEjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,cAAc,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAGL,iBAAiB,EACjB,eAAe,EAChB,MAAM,4BAA4B,CAAC;AA2BpC,
|
|
1
|
+
{"version":3,"file":"withTRPC.d.ts","sourceRoot":"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ACrD,IAAI,EAAE,oBAAoB,CAAC,OAAO,CAAC,GAAG,kBAAkB,CAAC,OAAO,CAAC,eAU9C,kBAAkB,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,KAAG,iBAAiB,CA+KxE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trpc/next",
|
|
3
|
-
"version": "10.28.
|
|
3
|
+
"version": "10.28.1",
|
|
4
4
|
"description": "The tRPC Next.js library",
|
|
5
5
|
"author": "KATT",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
],
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@tanstack/react-query": "^4.18.0",
|
|
59
|
-
"@trpc/client": "10.28.
|
|
60
|
-
"@trpc/react-query": "10.28.
|
|
61
|
-
"@trpc/server": "10.28.
|
|
59
|
+
"@trpc/client": "10.28.1",
|
|
60
|
+
"@trpc/react-query": "10.28.1",
|
|
61
|
+
"@trpc/server": "10.28.1",
|
|
62
62
|
"next": "*",
|
|
63
63
|
"react": ">=16.8.0",
|
|
64
64
|
"react-dom": ">=16.8.0"
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@tanstack/react-query": "^4.18.0",
|
|
71
|
-
"@trpc/client": "10.28.
|
|
72
|
-
"@trpc/react-query": "10.28.
|
|
73
|
-
"@trpc/server": "10.28.
|
|
71
|
+
"@trpc/client": "10.28.1",
|
|
72
|
+
"@trpc/react-query": "10.28.1",
|
|
73
|
+
"@trpc/server": "10.28.1",
|
|
74
74
|
"@types/express": "^4.17.17",
|
|
75
|
-
"@types/node": "^18.
|
|
75
|
+
"@types/node": "^18.16.16",
|
|
76
76
|
"@types/react": "^18.2.6",
|
|
77
77
|
"@types/react-dom": "^18.2.4",
|
|
78
78
|
"eslint": "^8.40.0",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"funding": [
|
|
91
91
|
"https://trpc.io/sponsor"
|
|
92
92
|
],
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "ea70b1c33899b66f964a7d11f5a8710148f03f8e"
|
|
94
94
|
}
|