Socket
Socket
Sign inDemoInstall

react-hook-form

Package Overview
Dependencies
Maintainers
1
Versions
1030
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hook-form - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

13

dist/index.d.ts
declare type Validate = (data: string | number) => boolean;
declare type NumberOrDate = number | Date;
export interface RegisterInput {
ref: HTMLInputElement | HTMLSelectElement | null;
required?: boolean;
min?: number | Date;
max?: number | Date;
min?: NumberOrDate;
max?: NumberOrDate;
maxLength?: number;
pattern?: RegExp;
validate?: Validate;
validate?: Validate | {
[key: string]: Validate;
};
minLength?: number;

@@ -15,4 +18,4 @@ }

required?: boolean;
min?: number | Date;
max?: number | Date;
min?: NumberOrDate;
max?: NumberOrDate;
maxLength?: number;

@@ -19,0 +22,0 @@ pattern?: RegExp;

{
"name": "react-hook-form",
"version": "0.1.4",
"version": "0.1.5",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "module": "dist/index.es.js",

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