Skip to content

Commit 72d52a9

Browse files
committed
fix(renderer): fix invalid type declarations
1 parent 59a83fe commit 72d52a9

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/react-form-renderer/src/component-types/component-types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export type ComponentType = 'text-field'|'field-array'|'checkbox'|'sub-form'|'radio'|'tabs'|'tab-item'|'date-picker'|'time-picker'|'wizard'|'switch'|'textarea'|'select'|'plain-text'|'button'|'input-addon-group'|'input-addon-button-group'|'dual-list-select'|'slider';
22

3-
interface componentTypes {
3+
interface IcomponentTypes {
44
TEXT_FIELD: 'text-field';
55
FIELD_ARRAY: 'field-array';
66
CHECKBOX: 'checkbox';
@@ -22,6 +22,6 @@ interface componentTypes {
2222
SLIDER: 'slider';
2323
}
2424

25-
declare const componentTypes: componentTypes;
25+
declare const componentTypes: IcomponentTypes;
2626

2727
export default componentTypes;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
export type DataType = 'integer'|'float'|'number'|'boolean'|'string';
22

3-
interface dataTypes {
3+
interface IdataTypes {
44
INTEGER: 'integer';
55
FLOAT: 'float';
66
NUMBER: 'number';
77
BOOLEAN: 'boolean';
88
STRING: 'string';
99
}
1010

11-
declare const dataTypes: dataTypes;
11+
declare const dataTypes: IdataTypes;
1212

1313
export default dataTypes;

packages/react-form-renderer/src/validator-types/validator-types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
interface validatorTypes {
1+
interface IvalidatorTypes {
22
REQUIRED: 'required';
33
MIN_LENGTH: 'min-length';
44
MAX_LENGTH: 'max-length';
@@ -10,6 +10,6 @@ interface validatorTypes {
1010
URL: 'url';
1111
}
1212

13-
declare const validatorTypes: validatorTypes;
13+
declare const validatorTypes: IvalidatorTypes;
1414

1515
export default validatorTypes;

0 commit comments

Comments
 (0)