@mobx-ecosystem/mobx-form 2.3.24 → 2.3.25

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.
@@ -42,11 +42,11 @@ export declare class FormService<T extends Record<string, FieldService<unknown>
42
42
  /**
43
43
  * Set object to init values by form service keys
44
44
  */
45
- setInitValues: (values: FormValues<T>) => void;
45
+ setInitValues: (values: Partial<FormValues<T>>) => void;
46
46
  /**
47
47
  * Set object to values by form service keys
48
48
  */
49
- setValues: (values: FormValues<T>) => void;
49
+ setValues: (values: Partial<FormValues<T>>) => void;
50
50
  /**
51
51
  * Set field errors to undefined
52
52
  */
@@ -55,7 +55,7 @@ export declare class FormService<T extends Record<string, FieldService<unknown>
55
55
  * Set errors for fields
56
56
  * @param errors object of string which provides errors for fields
57
57
  */
58
- setErrors(error: FormErrors<T>): void;
58
+ setErrors(error: Partial<FormErrors<T>>): void;
59
59
  /**
60
60
  * Set field values to init values
61
61
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "name": "@mobx-ecosystem/mobx-form",
4
4
  "private": false,
5
- "version": "2.3.24",
5
+ "version": "2.3.25",
6
6
  "description": "provides the ability to use forms with validation in MobX stores",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.js",