rc-field-form
Advanced tools
Comparing version 1.36.0 to 1.36.1
@@ -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", |
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
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
6337
262909