rename react to solid

This commit is contained in:
OrJDev
2022-11-01 10:11:13 +02:00
parent f67748fe9d
commit cfd0a6c7a0
7 changed files with 22 additions and 22 deletions
+3 -3
View File
@@ -3,19 +3,19 @@ import { AnyRouter } from "@trpc/server";
import { CreateTRPCSolid, createHooksInternalProxy } from "./createTRPCSolid";
import { CreateTRPCSolidOptions } from "./shared";
import {
CreateReactQueryHooks,
CreateSolidQueryHooks,
createHooksInternal,
} from "./shared/hooks/createHooksInternal";
/**
* @deprecated use `createTRPCSolid` instead
*/
export function createReactQueryHooks<
export function createSolidQueryHooks<
TRouter extends AnyRouter,
TSSRContext = unknown
>(
opts?: CreateTRPCSolidOptions<TRouter>
): CreateReactQueryHooks<TRouter, TSSRContext> & {
): CreateSolidQueryHooks<TRouter, TSSRContext> & {
proxy: CreateTRPCSolid<TRouter, TSSRContext>;
} {
const trpc = createHooksInternal<TRouter, TSSRContext>(opts);