Skip to main content

createTRPCHandle()

Create a handle function for SvelteKit hooks.server.

Signature

createTRPCHandle<T>(options: TRPCHandleOptions<T, Partial<Record<string, string>>, null | string>): Handle;

Type parameters

  • T extends Router<AnyRouterDef<AnyRootConfig, any>, T>

Parameters

NameType
optionsTRPCHandleOptions<T, Partial<Record<string, string>>, null | string>

Returns

Handle

Defined in: handle.ts:11