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.
- package/mobx-form.d.ts +3 -3
- 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:
|
|
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
|
|
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
|
|