-
-
Couldn't load subscription status.
- Fork 126
feat(trpc): support client helpers for Nuxt #1762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| /* eslint-disable */ | ||
|
|
||
| import type { AnyRouter } from '@trpc/server'; | ||
| import { createTRPCNuxtClient as _createTRPCNuxtClient } from 'trpc-nuxt/client'; | ||
| import type { DeepOverrideAtPath } from './utils'; | ||
|
|
||
| export function createTRPCNuxtClient<TRouter extends AnyRouter, TPath extends string | undefined = undefined>( | ||
| opts: Parameters<typeof _createTRPCNuxtClient<TRouter>>[0] | ||
| ) { | ||
| const r = _createTRPCNuxtClient<TRouter>(opts); | ||
| return r as DeepOverrideAtPath<typeof r, ClientType<TRouter>, TPath>; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| /* eslint-disable */ | ||
|
|
||
| import type { AnyTRPCRouter as AnyRouter } from '@trpc/server'; | ||
| import { createTRPCNuxtClient as _createTRPCNuxtClient } from 'trpc-nuxt/client'; | ||
| import type { DeepOverrideAtPath } from './utils'; | ||
|
|
||
| export function createTRPCNuxtClient<TRouter extends AnyRouter, TPath extends string | undefined = undefined>( | ||
| opts: Parameters<typeof _createTRPCNuxtClient<TRouter>>[0] | ||
| ) { | ||
| const r = _createTRPCNuxtClient<TRouter>(opts); | ||
| return r as DeepOverrideAtPath<typeof r, ClientType<TRouter>, TPath>; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing import of The type Apply this diff to import import type { AnyTRPCRouter as AnyRouter } from '@trpc/server';
import { createTRPCNuxtClient as _createTRPCNuxtClient } from 'trpc-nuxt/client';
import type { DeepOverrideAtPath } from './utils';
+import type { ClientType } from './types'; // Adjust the import path accordingly
|
||
| } | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ../v10/utils.ts |
Uh oh!
There was an error while loading. Please reload this page.