react-hook-form 7.52.2 → 7.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.mjs +41 -11
- package/dist/index.esm.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/logic/createFormControl.d.ts.map +1 -1
- package/dist/logic/hasPromiseValidation.d.ts +4 -0
- package/dist/logic/hasPromiseValidation.d.ts.map +1 -0
- package/dist/logic/iterateFieldsByAction.d.ts +1 -1
- package/dist/logic/iterateFieldsByAction.d.ts.map +1 -1
- package/dist/types/path/common.d.ts +2 -2
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createFormControl.d.ts","sourceRoot":"","sources":["../../src/logic/createFormControl.ts"],"names":[],"mappings":"AACA,OAAO,EAaL,WAAW,EAgBX,YAAY,EAIZ,aAAa,EASd,MAAM,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"createFormControl.d.ts","sourceRoot":"","sources":["../../src/logic/createFormControl.ts"],"names":[],"mappings":"AACA,OAAO,EAaL,WAAW,EAgBX,YAAY,EAIZ,aAAa,EASd,MAAM,UAAU,CAAC;AAmDlB,wBAAgB,iBAAiB,CAC/B,YAAY,SAAS,WAAW,GAAG,WAAW,EAC9C,QAAQ,GAAG,GAAG,EAEd,KAAK,GAAE,YAAY,CAAC,YAAY,EAAE,QAAQ,CAAM,GAC/C,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,QAAQ,CAAC,EAAE,WAAW,CAAC,CAm1C1D"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hasPromiseValidation.d.ts","sourceRoot":"","sources":["../../src/logic/hasPromiseValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAY,MAAM,UAAU,CAAC;yCAMX,KAAK,CAAC,IAAI,CAAC;AAA3C,wBAUI"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { FieldRefs, InternalFieldName, Ref } from '../types';
|
2
|
-
declare const iterateFieldsByAction: (fields: FieldRefs, action: (ref: Ref, name: string) => 1 | undefined | void, fieldsNames?: Set<InternalFieldName> | InternalFieldName[] | 0, abortEarly?: boolean) =>
|
2
|
+
declare const iterateFieldsByAction: (fields: FieldRefs, action: (ref: Ref, name: string) => 1 | undefined | void, fieldsNames?: Set<InternalFieldName> | InternalFieldName[] | 0, abortEarly?: boolean) => true | undefined;
|
3
3
|
export default iterateFieldsByAction;
|
4
4
|
//# sourceMappingURL=iterateFieldsByAction.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"iterateFieldsByAction.d.ts","sourceRoot":"","sources":["../../src/logic/iterateFieldsByAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI7D,QAAA,MAAM,qBAAqB,WACjB,SAAS,UACT,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,GAAG,IAAI,gBAC1C,GAAG,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,EAAE,GAAG,CAAC,eACjD,OAAO,
|
1
|
+
{"version":3,"file":"iterateFieldsByAction.d.ts","sourceRoot":"","sources":["../../src/logic/iterateFieldsByAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI7D,QAAA,MAAM,qBAAqB,WACjB,SAAS,UACT,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC,GAAG,SAAS,GAAG,IAAI,gBAC1C,GAAG,CAAC,iBAAiB,CAAC,GAAG,iBAAiB,EAAE,GAAG,CAAC,eACjD,OAAO,qBA0BrB,CAAC;AACF,eAAe,qBAAqB,CAAC"}
|
@@ -214,8 +214,8 @@ export type NumericKeys<T extends Traversable> = UnionToIntersection<T extends R
|
|
214
214
|
* @typeParam T - object type
|
215
215
|
* @example
|
216
216
|
* ```
|
217
|
-
* ObjectKeys<{foo: string, bar: string}
|
218
|
-
* ObjectKeys<{foo: string, bar: number}
|
217
|
+
* ObjectKeys<{foo: string, bar: string}> = 'foo' | 'bar'
|
218
|
+
* ObjectKeys<{foo: string, bar: number} | { foo: string }> = 'foo'
|
219
219
|
* ```
|
220
220
|
*/
|
221
221
|
export type ObjectKeys<T extends Traversable> = Exclude<ToKey<keyof T>, `${string}.${string}` | ''>;
|
package/package.json
CHANGED