mobx-form 13.3.4 → 13.3.6

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/mobx-form.d.ts +3 -3
  2. package/package.json +1 -1
package/mobx-form.d.ts CHANGED
@@ -161,16 +161,16 @@ declare module 'mobx-form' {
161
161
 
162
162
  serializedData: T;
163
163
 
164
- addFields(descriptors: IValidatorDescriptor<T>[] | IValidatorDescriptorHash): void;
164
+ addFields(descriptors: Descriptors<T>, initialState: Partial<T>): void;
165
165
 
166
166
  new (descriptors: object, initialState: Partial<T>);
167
167
  }
168
168
 
169
169
  export interface ICreateModelOpts {
170
- throwIfMissingField?: boolean = true;
170
+ throwIfMissingField?: boolean;
171
171
  }
172
172
 
173
- export type Descriptors<T> = IValidatorDescriptor<T[keyof T]>[] | {
173
+ export type Descriptors<T> = IValidatorDescriptor<T[keyof T], T>[] | {
174
174
  [P in keyof T]: IValidatorDescriptor<T[P], T>;
175
175
  };
176
176
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobx-form",
3
- "version": "13.3.4",
3
+ "version": "13.3.6",
4
4
  "description": "A simple form helper for mobx",
5
5
  "main": "dist/mobx-form.cjs.js",
6
6
  "_browser": "dist/mobx-form.umd.js",