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

Mark properties on EUIFlyout as optional in typings #1003

Conversation

stacey-gammon
Copy link
Contributor

Sorry for the quick merge @timroes, fixing my mistake here.

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

LGTM

@stacey-gammon stacey-gammon merged commit d07d71d into elastic:master Jul 12, 2018
@@ -1,15 +1,15 @@
declare module '@elastic/eui' {
export interface EuiFlyoutProps {
onClose: () => void;
Copy link
Contributor

Choose a reason for hiding this comment

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

should we add children?: ReactNode; to props of components that can have children. The official defs that come with react do that (eg. DOMAttributes). For most of the existing EUI defs we inherit that from DOMAttributes and HTMLAttributes). While I think it's not a must or critical (that is, things will work without it), I believe that it also serves an accurate documentation for the use and capabilities of the components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants