react-hook-core 0.4.17 → 0.4.18

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/search.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-hook-core",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "description": "react",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./src/index.ts",
package/src/search.ts CHANGED
@@ -141,7 +141,7 @@ export function initFilter<S extends Filter>(m: S, com: Searchable): S {
141
141
  return m
142
142
  }
143
143
 
144
- export function getFields(form?: HTMLFormElement, arr?: string[]): string[] | undefined {
144
+ export function getFields(form?: HTMLFormElement | null, arr?: string[]): string[] | undefined {
145
145
  if (arr && arr.length > 0) {
146
146
  return arr
147
147
  }