Skip to content

Commit 782b61a

Browse files
committed
fix: form-control typing
1 parent 71d587d commit 782b61a

File tree

1 file changed

+7
-7
lines changed
  • src/components/composites/FormControl

1 file changed

+7
-7
lines changed

src/components/composites/FormControl/types.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,26 @@ export interface IFormControlLabelProps extends IFormControlProps {
3131
/**
3232
* Passed props will be applied on disabled state.
3333
*/
34-
_disabled?: IBoxProps<IFormControlLabelProps>;
34+
_disabled?: Partial<IBoxProps<IFormControlLabelProps>>;
3535
// _focus?: any;
3636
/**
3737
* Passed props will be applied on invalid state.
3838
*/
39-
_invalid?: IBoxProps<IFormControlLabelProps>;
39+
_invalid?: Partial<IBoxProps<IFormControlLabelProps>>;
4040
/**
4141
* Reflects the value of the 'for' content property.
4242
*/
4343
htmlFor?: string;
4444
/**
4545
* Props applied to astrick text
4646
*/
47-
_astrick?: ITextProps;
47+
_astrick?: Partial<ITextProps>;
4848
}
4949
export interface IFormControlErrorMessageProps extends IFormControlProps {
5050
/**
5151
* Passed props will be applied on disabled state.
5252
*/
53-
_disabled?: IBoxProps<IFormControlLabelProps>;
53+
_disabled?: Partial<IBoxProps<IFormControlLabelProps>>;
5454
/**
5555
* The right icon element to use in the FormControl.ErrorMessage.
5656
*/
@@ -70,18 +70,18 @@ export interface IFormControlErrorMessageProps extends IFormControlProps {
7070
/**
7171
* Props to be passed to the HStack used inside of FormControl.ErrorMessage.
7272
*/
73-
_stack?: IStackProps;
73+
_stack?: Partial<IStackProps>;
7474
}
7575
export interface IFormControlHelperTextProps extends IFormControlProps {
7676
/**
7777
* Passed props will be applied on disabled state.
7878
*/
79-
_disabled?: IBoxProps<IFormControlLabelProps>;
79+
_disabled?: Partial<IBoxProps<IFormControlLabelProps>>;
8080
// _focus?: any;
8181
/**
8282
* Passed props will be applied on invalid state.
8383
*/
84-
_invalid?: IBoxProps<IFormControlLabelProps>;
84+
_invalid?: Partial<IBoxProps<IFormControlLabelProps>>;
8585
}
8686

8787
export type FormControlComponentType = ((

0 commit comments

Comments
 (0)