UNPKG

@trpc/next

Version:

The tRPC Next.js library

12 lines 714 B
import type { TRPCLink } from '@trpc/client'; import { type TransformerOptions } from '@trpc/client/unstable-internals'; import type { AnyRouter, inferClientTypes, inferRouterContext } from '@trpc/server/unstable-core-do-not-import'; type NextCacheLinkOptions<TRouter extends AnyRouter> = { router: TRouter; createContext: () => Promise<inferRouterContext<TRouter>>; /** how many seconds the cache should hold before revalidating */ revalidate?: number | false; } & TransformerOptions<inferClientTypes<TRouter>>; export declare function experimental_nextCacheLink<TRouter extends AnyRouter>(opts: NextCacheLinkOptions<TRouter>): TRPCLink<TRouter>; export {}; //# sourceMappingURL=nextCache.d.ts.map