@conform-to/yup
Advanced tools
Comparing version 1.2.0 to 1.2.1
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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18600
8
501
1
0
+ Added@conform-to/dom@1.2.1(transitive)
- Removed@conform-to/dom@1.2.0(transitive)
Updated@conform-to/dom@1.2.1