Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@conform-to/yup

Package Overview
Dependencies
Maintainers
0
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@conform-to/yup - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

constraint.d.ts
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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc