Skip to content

Commit

Permalink
fix(Select/TextInput): fix components typescript interfaces (patternf…
Browse files Browse the repository at this point in the history
…ly#833)

Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
  • Loading branch information
boaz0 authored and tlabaj committed Oct 26, 2018
1 parent 735ee81 commit 4011d86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export interface SelectProps extends Omit<HTMLProps<HTMLInputElement>, 'onChange
value?: any;
isValid?: boolean;
isDisabled?: boolean;
onBlur(event: React.FormEvent<HTMLSelectElement>): void;
onFocus(event: React.FormEvent<HTMLSelectElement>): void;
onChange(event: React.FormEvent<HTMLSelectElement>): void;
onBlur?(event: React.FormEvent<HTMLSelectElement>): void;
onFocus?(event: React.FormEvent<HTMLSelectElement>): void;
onChange?(event: React.FormEvent<HTMLSelectElement>): void;
}

declare const Select: React.SFC<SelectProps>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export interface TextInputProps extends Omit<HTMLProps<HTMLInputElement>, 'type'
isValid?: boolean;
isDisabled?: boolean;
isAlt?: boolean;
onChange(checked: boolean, event: FormEvent<HTMLInputElement>): void;
onChange?(checked: boolean, event: FormEvent<HTMLInputElement>): void;
isReadOnly?: boolean;
'aria-label'?: string;
}
Expand Down

0 comments on commit 4011d86

Please sign in to comment.