From 4dddb2489d57144b47ae1253da0ea3518e6e6d77 Mon Sep 17 00:00:00 2001 From: Aaron Date: Sat, 9 Mar 2024 12:54:15 -0600 Subject: [PATCH] chore: Fix typos --- src/defineNitroTRPCEventHandler.ts | 4 ++-- src/internals/utils.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/defineNitroTRPCEventHandler.ts b/src/defineNitroTRPCEventHandler.ts index bc6b882..b6ac2d1 100644 --- a/src/defineNitroTRPCEventHandler.ts +++ b/src/defineNitroTRPCEventHandler.ts @@ -110,7 +110,7 @@ export const defineNitroTRPCEventHandler: NitroRequestHandler = { const params = event.context.params if (!params) { - // Throw an error if the trpc paramater is not a string or an array: + // Throw an error if the trpc parameter is not a string or an array: throw new TRPCError({ code: 'INTERNAL_SERVER_ERROR', message: - 'Please ensure that the trpc paramater is defined in your routes file e.g., ./routes/[trpc].ts', + 'Please ensure that the trpc parameter is defined in your routes file e.g., ./routes/[trpc].ts', cause: 'Nitro Routing Configuration' }) } @@ -33,11 +33,11 @@ export const getPath = (event: H3Event): string => { return params.trpc } - // Throw an error if the trpc paramater is not a string or an array: + // Throw an error if the trpc parameter is not a string or an array: throw new TRPCError({ code: 'INTERNAL_SERVER_ERROR', message: - 'Please ensure that the trpc paramater is defined in your routes file e.g., ./routes/[trpc].ts', + 'Please ensure that the trpc parameter is defined in your routes file e.g., ./routes/[trpc].ts', cause: 'Nitro Routing Configuration' }) }