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 = <