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.
- package/mobx-form.d.ts +3 -3
- 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
|
|
185
|
+
export declare function createModelFromState<T>(initialState: Partial<T>, descriptors: Descriptors<T>): IFormModel<T>;
|
|
186
186
|
}
|