@thecb/components 8.2.1-beta.2 → 8.2.1-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "8.2.1-beta.2",
3
+ "version": "8.2.1-beta.3",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -4,24 +4,24 @@ import ReduxAction from "./ReduxAction";
4
4
  * These types should be moved to and referenced from redux-freeform if it implements TypeScript
5
5
  */
6
6
 
7
- type ValidatorFn = (value: string) => boolean;
7
+ export type ValidatorFn = (value: string) => boolean;
8
8
 
9
- interface FieldActionPayload {
9
+ export interface FieldActionPayload {
10
10
  fieldName: string;
11
11
  value?: string;
12
12
  validator?: ValidatorFn;
13
13
  }
14
14
 
15
- type SetAction = ReduxAction<"field/SET", FieldActionPayload>;
16
- type AddValidatorAction = ReduxAction<
15
+ export type SetAction = ReduxAction<"field/SET", FieldActionPayload>;
16
+ export type AddValidatorAction = ReduxAction<
17
17
  "field/ADD_VALIDATOR",
18
18
  FieldActionPayload
19
19
  >;
20
- type RemoveValidatorAction = ReduxAction<
20
+ export type RemoveValidatorAction = ReduxAction<
21
21
  "field/REMOVE_VALIDATOR",
22
22
  FieldActionPayload
23
23
  >;
24
- type ClearAction = ReduxAction<"field/CLEAR">;
24
+ export type ClearAction = ReduxAction<"field/CLEAR">;
25
25
 
26
26
  export default interface FieldActions {
27
27
  set?: (fieldName: string) => (value: string) => SetAction;