@graffiticode/l0000-view 0.1.1 → 0.1.2
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/dist/index.d.ts +14 -5
- package/dist/index.js +404 -402
- package/dist/index.js.map +1 -1
- package/package.json +9 -3
package/dist/index.d.ts
CHANGED
|
@@ -15,15 +15,24 @@ export declare interface FormProps {
|
|
|
15
15
|
state: {
|
|
16
16
|
data: any;
|
|
17
17
|
errors: CompileError[];
|
|
18
|
-
apply: (action:
|
|
19
|
-
type: string;
|
|
20
|
-
args?: any;
|
|
21
|
-
}) => void;
|
|
18
|
+
apply: (action: StateAction) => void;
|
|
22
19
|
};
|
|
23
20
|
}
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
/**
|
|
23
|
+
* A language's extra reducer cases. Return the next data model to claim an action, or
|
|
24
|
+
* `undefined` to fall through to the generic handling below.
|
|
25
|
+
*/
|
|
26
|
+
export declare type LanguageReducer = (data: any, action: StateAction) => any | undefined;
|
|
27
|
+
|
|
28
|
+
export declare interface StateAction {
|
|
29
|
+
type: string;
|
|
30
|
+
args?: any;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export declare const View: ({ Form, reduce }: {
|
|
26
34
|
Form: FormComponent;
|
|
35
|
+
reduce?: LanguageReducer;
|
|
27
36
|
}) => JSX_2.Element;
|
|
28
37
|
|
|
29
38
|
export { }
|