Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeScript] Fixed and cleaned up TypeScript definitions #675

Merged
merged 1 commit into from
Apr 16, 2018
Merged

[TypeScript] Fixed and cleaned up TypeScript definitions #675

merged 1 commit into from
Apr 16, 2018

Conversation

uboness
Copy link
Contributor

@uboness uboness commented Apr 16, 2018

re #666

@uboness uboness requested a review from weltenwort April 16, 2018 11:41
Copy link
Member

@weltenwort weltenwort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see an obvious reason to keep the empty interfaces around, so I would be fine with removing them.

@@ -8,19 +8,14 @@ declare module '@elastic/eui' {
* @see './text_area.js'
*/
export interface EuiTextAreaProps {
id?: string;
name?: string;
placeholder?: string;
rows?: number;
isInvalid?: boolean;
fullWidth?: boolean;
onChange?: (event: any) => void;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The onChange property is also defined on TextareaHTMLAttributes<T> (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L1642).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@uboness
Copy link
Contributor Author

uboness commented Apr 16, 2018

@weltenwort updated

@uboness uboness merged commit 941a977 into elastic:master Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants