Skip to main content

createTRPCSvelte()

Create a proxy that will provide access to all other tRPC + svelte-query proxies.

Signature

createTRPCSvelte<T>(trpcClientOptions: CreateTRPCClientOptions<T>, svelteQueryOptions?: SvelteQueryProxyOptions): TRPCSvelte<T>;

Type parameters

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

Parameters

NameType
trpcClientOptionsCreateTRPCClientOptions<T>
svelteQueryOptions?SvelteQueryProxyOptions

Returns

TRPCSvelte<T>

Defined in: createTRPCSvelte.ts:68