From f7532cce19a6efe06b41cd1ad24e303a92d21a2b Mon Sep 17 00:00:00 2001 From: Timon Jurschitsch Date: Sun, 8 Oct 2023 18:02:49 +0200 Subject: [PATCH] feat (app dir): use query pararms for revalidate in experimental_createTRPCNextAppDirServer --- packages/next/src/app-dir/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/next/src/app-dir/types.ts b/packages/next/src/app-dir/types.ts index 40a52885227..a27f6281e77 100644 --- a/packages/next/src/app-dir/types.ts +++ b/packages/next/src/app-dir/types.ts @@ -5,6 +5,7 @@ import { AnyQueryProcedure, AnyRouter, AnySubscriptionProcedure, + ProcedureArgs, ProcedureRouterRecord, } from '@trpc/server'; @@ -13,7 +14,7 @@ export type DecorateProcedureServer = ? { query: Resolver; revalidate: ( - input?: unknown, + input?: ProcedureArgs[0], ) => Promise< { revalidated: false; error: string } | { revalidated: true } >;