From 48152ead8d2c467dff18488f89e716da04380dcb Mon Sep 17 00:00:00 2001 From: Robert Soriano Date: Tue, 24 May 2022 06:43:42 -0700 Subject: [PATCH] refactor: remove some comments --- src/runtime/client.ts | 2 +- src/runtime/plugin.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/runtime/client.ts b/src/runtime/client.ts index 0c4f1ee..1c8e67f 100644 --- a/src/runtime/client.ts +++ b/src/runtime/client.ts @@ -9,7 +9,6 @@ import type { ProcedureRecord, inferHandlerInput, inferProcedureInput, inferProc import type { TRPCClient, TRPCClientErrorLike } from '@trpc/client' import { objectHash } from 'ohash' import { useAsyncData, useNuxtApp, useState } from '#app' -// @ts-expect-error: Resolved by Nuxt import type { router } from '~/server/trpc' type AppRouter = typeof router @@ -43,6 +42,7 @@ export async function useAsyncQuery< const { error, data, ...rest } = await useAsyncData( key, () => $client.query(...pathAndInput), + // @ts-expect-error: Internal options, ) diff --git a/src/runtime/plugin.ts b/src/runtime/plugin.ts index da05ed9..4874256 100644 --- a/src/runtime/plugin.ts +++ b/src/runtime/plugin.ts @@ -1,5 +1,4 @@ import * as trpc from '@trpc/client' -// @ts-expect-error: Resolved by Nuxt import { defineNuxtPlugin, useRequestHeaders, useRuntimeConfig } from '#app' import type { router } from '~/server/trpc'