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