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

rc-field-form

Package Overview
Dependencies
Maintainers
5
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-field-form - npm Package Compare versions

Comparing version 1.36.0 to 1.36.1

4

es/namePathType.d.ts

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

type BaseNamePath = string | number | boolean | (string | number | boolean)[];
/**

@@ -5,3 +6,3 @@ * Store: The store type from `FormInstance<Store>`

*/
export type DeepNamePath<Store = any, ParentNamePath extends any[] = []> = ParentNamePath['length'] extends 10 ? never : true extends (Store extends string | number | boolean ? true : false) ? ParentNamePath['length'] extends 0 ? Store : never : true extends (Store extends (string | number | boolean)[] ? true : false) ? ParentNamePath['length'] extends 0 ? Store : [...ParentNamePath, number] : Store extends any[] ? // Connect path. e.g. { a: { b: string }[] }
export type DeepNamePath<Store = any, ParentNamePath extends any[] = []> = ParentNamePath['length'] extends 10 ? never : true extends (Store extends BaseNamePath ? true : false) ? ParentNamePath['length'] extends 0 ? Store | BaseNamePath : Store extends any[] ? [...ParentNamePath, number] : never : Store extends any[] ? // Connect path. e.g. { a: { b: string }[] }
[

@@ -13,1 +14,2 @@ ...ParentNamePath,

}[keyof Store];
export {};

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

type BaseNamePath = string | number | boolean | (string | number | boolean)[];
/**

@@ -5,3 +6,3 @@ * Store: The store type from `FormInstance<Store>`

*/
export type DeepNamePath<Store = any, ParentNamePath extends any[] = []> = ParentNamePath['length'] extends 10 ? never : true extends (Store extends string | number | boolean ? true : false) ? ParentNamePath['length'] extends 0 ? Store : never : true extends (Store extends (string | number | boolean)[] ? true : false) ? ParentNamePath['length'] extends 0 ? Store : [...ParentNamePath, number] : Store extends any[] ? // Connect path. e.g. { a: { b: string }[] }
export type DeepNamePath<Store = any, ParentNamePath extends any[] = []> = ParentNamePath['length'] extends 10 ? never : true extends (Store extends BaseNamePath ? true : false) ? ParentNamePath['length'] extends 0 ? Store | BaseNamePath : Store extends any[] ? [...ParentNamePath, number] : never : Store extends any[] ? // Connect path. e.g. { a: { b: string }[] }
[

@@ -13,1 +14,2 @@ ...ParentNamePath,

}[keyof Store];
export {};
{
"name": "rc-field-form",
"version": "1.36.0",
"version": "1.36.1",
"description": "React Form Component",

@@ -5,0 +5,0 @@ "typings": "es/index.d.ts",

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