From 218598c777089825e148995441ebba47a8a5c7fc Mon Sep 17 00:00:00 2001 From: Stein Setvik Date: Wed, 27 Sep 2023 09:31:39 -0700 Subject: [PATCH] fix: change LoaderArgs to DataFunctionArgs to support Remix V2 --- src/parsers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parsers.ts b/src/parsers.ts index e15f204..4b148cc 100644 --- a/src/parsers.ts +++ b/src/parsers.ts @@ -1,6 +1,6 @@ import { z } from 'zod'; import { createErrorResponse } from './errors'; -import type { LoaderArgs } from '@remix-run/server-runtime'; +import type { DataFunctionArgs } from '@remix-run/server-runtime'; import type { output, SafeParseReturnType, @@ -9,7 +9,7 @@ import type { ZodTypeAny, } from 'zod'; -type Params = LoaderArgs['params']; +type Params = DataFunctionArgs['params']; type Options = { /** Custom error message for when the validation fails. */