From 9525cba0ebe17d02ec106d2c54532cc856bb0699 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Wed, 10 Jan 2024 00:27:47 +0100 Subject: [PATCH] newSchemable types fix --- src/newSchemable.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/newSchemable.ts b/src/newSchemable.ts index 69e0996..0166eb5 100644 --- a/src/newSchemable.ts +++ b/src/newSchemable.ts @@ -5,12 +5,12 @@ import { SchemableClass, SchemableClassInput } from "." import { parseZodTypeEffect } from "./util" -type ParamsArgs = [] | [Partial] +type ParamsArgs = [] | [params: Partial] type NewSchemableArgs = HasRequiredKeys extends true - ? [Input, ...ParamsArgs] - : [] | [Input, ...ParamsArgs] + ? [values: Input, ...args: ParamsArgs] + : [] | [values: Input, ...args: ParamsArgs] export const newSchemable = <