react-store-input 0.2.1 → 0.2.3

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.
@@ -11,7 +11,7 @@ declare function useStoreInputWithName<TInputElement extends HTMLInputElement |
11
11
  name: string | undefined;
12
12
  defaultValue: string | number | readonly string[] | undefined;
13
13
  defaultChecked: boolean | undefined;
14
- onChange: (event: react.ChangeEvent<TInputElement>) => void;
14
+ onChange: (event: react.ChangeEvent<TInputElement, Element>) => void;
15
15
  };
16
16
 
17
17
  export { type InferNameFromProps, type StoreInputWithNameProps, useStoreInputWithName };
@@ -11,7 +11,7 @@ declare function useStoreInputWithName<TInputElement extends HTMLInputElement |
11
11
  name: string | undefined;
12
12
  defaultValue: string | number | readonly string[] | undefined;
13
13
  defaultChecked: boolean | undefined;
14
- onChange: (event: react.ChangeEvent<TInputElement>) => void;
14
+ onChange: (event: react.ChangeEvent<TInputElement, Element>) => void;
15
15
  };
16
16
 
17
17
  export { type InferNameFromProps, type StoreInputWithNameProps, useStoreInputWithName };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-store-input",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.mjs",
6
6
  "module": "./dist/index.js",
@@ -29,14 +29,14 @@
29
29
  "description": "",
30
30
  "devDependencies": {
31
31
  "@types/node": "^24.10.1",
32
- "@types/react": "^19",
33
- "@types/react-dom": "^19",
32
+ "@types/react": "^18.3.1 || ^19.2.1",
33
+ "@types/react-dom": "^18.3.1 || ^19.2.1",
34
34
  "tsup": "^8.5.1",
35
35
  "typescript": "^5.7.3"
36
36
  },
37
37
  "peerDependencies": {
38
- "react": "^19",
39
- "react-dom": "^19"
38
+ "react": "^18.3.1 || ^19.2.1",
39
+ "react-dom": "^18.3.1 || ^19.2.1"
40
40
  },
41
41
  "dependencies": {
42
42
  "date-fns": "^4.1.0",