@conform-to/yup
Advanced tools
Comparing version
import { type Constraint } from '@conform-to/dom'; | ||
import type * as yup from 'yup'; | ||
export declare function getYupConstraint<Source extends yup.AnyObjectSchema>( | ||
source: Source, | ||
): Record<string, Constraint>; | ||
export declare function getYupConstraint<Source extends yup.AnyObjectSchema>(source: Source): Record<string, Constraint>; |
import { type Intent, type Submission } from '@conform-to/dom'; | ||
import * as yup from 'yup'; | ||
export { getYupConstraint } from './constraint'; | ||
export declare function parseWithYup<Schema extends yup.AnyObjectSchema>( | ||
payload: FormData | URLSearchParams, | ||
config: { | ||
schema: Schema | ((intent: Intent | null) => Schema); | ||
async?: false; | ||
}, | ||
): Submission<yup.InferType<Schema>, string[]>; | ||
export declare function parseWithYup<Schema extends yup.AnyObjectSchema>( | ||
payload: FormData | URLSearchParams, | ||
config: { | ||
schema: Schema | ((intent: Intent | null) => Schema); | ||
async: true; | ||
}, | ||
): Promise<Submission<yup.InferType<Schema>, string[]>>; | ||
export declare function parseWithYup<Schema extends yup.AnyObjectSchema>(payload: FormData | URLSearchParams, config: { | ||
schema: Schema | ((intent: Intent | null) => Schema); | ||
async?: false; | ||
}): Submission<yup.InferType<Schema>, string[]>; | ||
export declare function parseWithYup<Schema extends yup.AnyObjectSchema>(payload: FormData | URLSearchParams, config: { | ||
schema: Schema | ((intent: Intent | null) => Schema); | ||
async: true; | ||
}): Promise<Submission<yup.InferType<Schema>, string[]>>; |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"main": "index.js", | ||
@@ -29,3 +29,3 @@ "module": "index.mjs", | ||
"dependencies": { | ||
"@conform-to/dom": "1.2.0" | ||
"@conform-to/dom": "1.2.1" | ||
}, | ||
@@ -32,0 +32,0 @@ "peerDependencies": { |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
18600
-9.91%8
-11.11%501
-1.57%1
Infinity%0
-100%+ Added
- Removed
Updated