Socket
Socket
Sign inDemoInstall

react-hook-form

Package Overview
Dependencies
3
Maintainers
1
Versions
1025
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.50.0 to 7.50.1

dist/utils/noop.d.ts

6

dist/types/form.d.ts

@@ -10,3 +10,3 @@ import React from 'react';

import { Resolver } from './resolvers';
import { DeepMap, DeepPartial, DeepPartialSkipArrayKey, Noop } from './utils';
import { DeepMap, DeepPartial, Noop } from './utils';
import { RegisterOptions } from './validator';

@@ -26,4 +26,2 @@ declare const $NestedValue: unique symbol;

} : T;
export type PartialFormValues<TFieldValues extends FieldValues> = DeepPartialSkipArrayKey<TFieldValues>;
export type WatchedForm<TFieldValues extends FieldValues> = PartialFormValues<TFieldValues>;
export type DefaultValues<TFieldValues> = TFieldValues extends AsyncDefaultValues<TFieldValues> ? DeepPartial<Awaited<TFieldValues>> : DeepPartial<TFieldValues>;

@@ -295,3 +293,3 @@ export type InternalNameSet = Set<InternalFieldName>;

*/
(): WatchedForm<TFieldValues>;
(): TFieldValues;
/**

@@ -298,0 +296,0 @@ * Watch and subscribe to an array of fields used outside of render.

@@ -1,2 +0,2 @@

import { Control, DeepPartialSkipArrayKey, FieldPath, FieldPathValue, FieldPathValues, FieldValues, WatchedForm } from './types';
import { Control, DeepPartialSkipArrayKey, FieldPath, FieldPathValue, FieldPathValues, FieldValues } from './types';
/**

@@ -28,3 +28,3 @@ * Subscribe to the entire form values change and re-render at the hook level.

exact?: boolean;
}): WatchedForm<TFieldValues>;
}): DeepPartialSkipArrayKey<TFieldValues>;
/**

@@ -31,0 +31,0 @@ * Custom hook to subscribe to field change and isolate re-rendering at the component level.

{
"name": "react-hook-form",
"description": "Performant, flexible and extensible forms library for React Hooks",
"version": "7.50.0",
"version": "7.50.1",
"main": "dist/index.cjs.js",

@@ -6,0 +6,0 @@ "module": "dist/index.esm.mjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc