0.1.1 #2
@@ -5,12 +5,12 @@ import { SchemableClass, SchemableClassInput } from "."
|
||||
import { parseZodTypeEffect } from "./util"
|
||||
|
||||
|
||||
type ParamsArgs = [] | [Partial<z.ParseParams>]
|
||||
type ParamsArgs = [] | [params: Partial<z.ParseParams>]
|
||||
|
||||
type NewSchemableArgs<Input extends object> =
|
||||
HasRequiredKeys<Input> extends true
|
||||
? [Input, ...ParamsArgs]
|
||||
: [] | [Input, ...ParamsArgs]
|
||||
? [values: Input, ...args: ParamsArgs]
|
||||
: [] | [values: Input, ...args: ParamsArgs]
|
||||
|
||||
|
||||
export const newSchemable = <
|
||||
|
||||
Reference in New Issue
Block a user