@maif/react-forms 1.3.1-rc.3 → 1.3.1-rc.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/lib/index.d.ts +3 -3
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ declare const test: (name: string, message: string | undefined, test: TestFuncti
|
|
|
58
58
|
declare const when: (ref: string, test: TestFunction<any, object>, then?: Constraint[], otherwise?: Constraint[]) => (r: AnySchema, key: string, dependencies: any[]) => yup.AnySchema<any, any, any>;
|
|
59
59
|
declare const oneOf: (arrayOfValues: any[], message?: string) => (r: AnySchema) => yup.AnySchema<any, any, any>;
|
|
60
60
|
declare const blacklist: (arrayOfValues: any[], message?: string) => (r: AnySchema) => yup.AnySchema<any, any, any>;
|
|
61
|
-
declare const ref: (ref: string) => Reference<
|
|
61
|
+
declare const ref: <T>(ref: string) => Reference<T>;
|
|
62
62
|
declare const jsonConstraints: Record<string, any>;
|
|
63
63
|
declare type TConstraintType = keyof typeof jsonConstraints;
|
|
64
64
|
|
|
@@ -400,7 +400,7 @@ interface SchemaEntry {
|
|
|
400
400
|
interface FlowObject {
|
|
401
401
|
label: string;
|
|
402
402
|
flow: Flow;
|
|
403
|
-
|
|
403
|
+
collapsed: boolean;
|
|
404
404
|
}
|
|
405
405
|
declare type Flow = Array<string | FlowObject>;
|
|
406
406
|
interface Informations {
|
|
@@ -412,7 +412,7 @@ interface Informations {
|
|
|
412
412
|
|
|
413
413
|
declare const Form: React$1.ForwardRefExoticComponent<{
|
|
414
414
|
schema: Schema;
|
|
415
|
-
flow
|
|
415
|
+
flow?: (string | FlowObject)[] | undefined;
|
|
416
416
|
value?: object | undefined;
|
|
417
417
|
inputWrapper?: ((props: object) => JSX.Element) | undefined;
|
|
418
418
|
onSubmit: (obj: {
|