mobx-form 13.3.2 → 13.3.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.
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
@@ -163,7 +163,7 @@ declare module 'mobx-form' {
163
163
 
164
164
  addFields(descriptors: IValidatorDescriptor<T>[] | IValidatorDescriptorHash): void;
165
165
 
166
- new (descriptors: object, initialState: T);
166
+ new (descriptors: object, initialState: Partial<T>);
167
167
  }
168
168
 
169
169
  export interface ICreateModelOpts {
@@ -176,11 +176,11 @@ declare module 'mobx-form' {
176
176
 
177
177
  export interface ICreateModelOptions<T> {
178
178
  descriptors: Descriptors<T>;
179
- initialState: T;
179
+ initialState: Partial<T>;
180
180
  options?: ICreateModelOpts;
181
181
  }
182
182
 
183
183
  export declare function createModel<T>(options: ICreateModelOptions<T>): IFormModel<T>;
184
184
 
185
- export declare function createModelFromState<T>(initialState: T, descriptors: Descriptors<T>): IFormModel<T>;
185
+ export declare function createModelFromState<T>(initialState: Partial<T>, descriptors: Descriptors<T>): IFormModel<T>;
186
186
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobx-form",
3
- "version": "13.3.2",
3
+ "version": "13.3.3",
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",