We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b15f11 commit 10f301cCopy full SHA for 10f301c
packages/vee-validate/src/types/forms.ts
@@ -20,6 +20,12 @@ export interface TypedSchema<TInput = any, TOutput = TInput> {
20
cast?(values: Partial<TInput>): TInput;
21
}
22
23
+export type InferOutput<TSchema extends TypedSchema> = TSchema extends TypedSchema<any, infer TOutput>
24
+ ? TOutput
25
+ : never;
26
+
27
+export type InferInput<TSchema extends TypedSchema> = TSchema extends TypedSchema<infer TInput, any> ? TInput : never;
28
29
// eslint-disable-next-line @typescript-eslint/no-unused-vars
30
export type YupSchema<TValues = any> = {
31
__isYupSchema__: boolean;
0 commit comments