react-hook-core 0.1.20 → 0.1.21

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-hook-core",
3
- "version": "0.1.20",
3
+ "version": "0.1.21",
4
4
  "description": "react",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/components.ts CHANGED
@@ -952,7 +952,7 @@ export abstract class BaseEditComponent<T, P, S> extends BaseComponent<P, S> {
952
952
  } else {
953
953
  const result: T = x;
954
954
  if (isPatch) {
955
- const keys = Object.keys(result);
955
+ const keys = Object.keys(result as any);
956
956
  const a: any = origin;
957
957
  for (const k of keys) {
958
958
  a[k] = (result as any)[k];
package/src/useEdit.ts CHANGED
@@ -410,7 +410,7 @@ export const useCoreEdit = <T, ID, S, P>(
410
410
  } else {
411
411
  const result = r as T;
412
412
  if (isPatch) {
413
- const keys = Object.keys(result);
413
+ const keys = Object.keys(result as any);
414
414
  const a: any = origin;
415
415
  for (const k of keys) {
416
416
  a[k] = (result as any)[k];