@reactables/forms 0.7.0-alpha.4 → 0.7.0-alpha.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/dist/RxForm/RxForm.d.ts
CHANGED
|
@@ -28,12 +28,13 @@ export interface FormReducers {
|
|
|
28
28
|
markControlAsUntouched: <T>(state: BaseFormState<T>, payload: ControlRef) => BaseFormState<T>;
|
|
29
29
|
resetControl: <T>(state: BaseFormState<T>, payload: ControlRef) => BaseFormState<T>;
|
|
30
30
|
}
|
|
31
|
-
export type
|
|
31
|
+
export type CustomReducerFunc = (reducers: FormReducers, state: BaseFormState<unknown>, action: Action<unknown>) => BaseFormState<unknown>;
|
|
32
|
+
export type CustomReducer = CustomReducerFunc | {
|
|
33
|
+
reducer: CustomReducerFunc;
|
|
34
|
+
effects?: ((payload?: unknown) => ScopedEffects<unknown>) | Effect<unknown, unknown>[];
|
|
35
|
+
};
|
|
32
36
|
export interface CustomReducers {
|
|
33
|
-
[key: string]: CustomReducer
|
|
34
|
-
reducer: CustomReducer;
|
|
35
|
-
effects?: ((payload?: unknown) => ScopedEffects<unknown>) | Effect<unknown, unknown>[];
|
|
36
|
-
};
|
|
37
|
+
[key: string]: CustomReducer;
|
|
37
38
|
}
|
|
38
39
|
export interface RxFormOptions<T extends CustomReducers> extends EffectsAndSources {
|
|
39
40
|
reducers?: T;
|
package/dist/RxForm/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { build, load, group, array, control, RxFormActions, CustomReducer, FormReducers, RxFormOptions, RxFormProviders, } from './RxForm';
|
|
1
|
+
export { build, load, group, array, control, RxFormActions, CustomReducer, CustomReducers, FormReducers, RxFormOptions, RxFormProviders, } from './RxForm';
|
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"author": "David Lai",
|
|
15
15
|
"license": "ISC",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@reactables/core": "^0.7.0-alpha.
|
|
17
|
+
"@reactables/core": "^0.7.0-alpha.5",
|
|
18
18
|
"lodash.isequal": "^4.5.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"lodash.clonedeep": "^4.5.0"
|
|
25
25
|
},
|
|
26
|
-
"version": "0.7.0-alpha.
|
|
26
|
+
"version": "0.7.0-alpha.5"
|
|
27
27
|
}
|