Skip to content

Commit

Permalink
[Typescript] Synced with PR mui#12373
Browse files Browse the repository at this point in the history
  • Loading branch information
franklixuefei committed Aug 7, 2018
1 parent 5cdc684 commit 8c1c201
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/material-ui/src/FormHelperText/FormHelperText.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ export interface FormHelperTextProps
extends StandardProps<React.HTMLAttributes<HTMLParagraphElement>, FormHelperTextClassKey> {
disabled?: boolean;
error?: boolean;
filled?: boolean;
focused?: boolean;
component?: React.ReactType<FormHelperTextProps>;
margin?: 'dense';
required?: boolean;
}

export type FormHelperTextClassKey = 'root' | 'error' | 'disabled' | 'marginDense';
export type FormHelperTextClassKey = 'root' | 'error' | 'disabled' | 'marginDense' | 'focused' | 'filled' | 'required';

declare const FormHelperText: React.ComponentType<FormHelperTextProps>;

Expand Down
3 changes: 2 additions & 1 deletion packages/material-ui/src/FormLabel/FormLabel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ export interface FormLabelProps extends StandardProps<FormLabelBaseProps, FormLa
component?: React.ReactType<FormLabelBaseProps>;
disabled?: boolean;
error?: boolean;
filled?: boolean;
focused?: boolean;
required?: boolean;
}

export type FormLabelBaseProps = React.LabelHTMLAttributes<HTMLLabelElement>;

export type FormLabelClassKey = 'root' | 'focused' | 'disabled' | 'error' | 'asterisk';
export type FormLabelClassKey = 'root' | 'focused' | 'disabled' | 'error' | 'filled' | 'required' | 'asterisk';

declare const FormLabel: React.ComponentType<FormLabelProps>;

Expand Down

0 comments on commit 8c1c201

Please sign in to comment.