mobx-form 13.3.3 → 13.3.5
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
|
@@ -73,7 +73,7 @@ declare module 'mobx-form' {
|
|
|
73
73
|
|
|
74
74
|
disabled: boolean;
|
|
75
75
|
|
|
76
|
-
required: boolean;
|
|
76
|
+
required: boolean | string;
|
|
77
77
|
|
|
78
78
|
resetInteractedFlag(): void;
|
|
79
79
|
|
|
@@ -111,7 +111,7 @@ declare module 'mobx-form' {
|
|
|
111
111
|
|
|
112
112
|
originalErrorMessage: string;
|
|
113
113
|
|
|
114
|
-
setRequired(value:
|
|
114
|
+
setRequired(value: boolean | string): void;
|
|
115
115
|
|
|
116
116
|
setErrorMessage(message: string): void;
|
|
117
117
|
|
|
@@ -167,7 +167,7 @@ declare module 'mobx-form' {
|
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
export interface ICreateModelOpts {
|
|
170
|
-
throwIfMissingField?: boolean
|
|
170
|
+
throwIfMissingField?: boolean;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
export type Descriptors<T> = IValidatorDescriptor<T[keyof T]>[] | {
|