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
extendsRouter
<AnyRouterDef
<AnyRootConfig
,any
>,T
>
Parameters
Name | Type |
---|---|
trpcClientOptions | CreateTRPCClientOptions <T > |
svelteQueryOptions? | SvelteQueryProxyOptions |
Returns
TRPCSvelte
<T
>
Defined in: createTRPCSvelte.ts:68