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

Add basic typings for Flyout #1001

Merged

Conversation

stacey-gammon
Copy link
Contributor

@stacey-gammon stacey-gammon commented Jul 11, 2018

@@ -0,0 +1,3 @@
declare module '@elastic/eui' {
export const EuiFlyout: React.SFC<any>;
Copy link
Contributor

Choose a reason for hiding this comment

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

If we put it into EUI, should we rather also properly type the Properties here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ohhhh alright alright. :) Typings expanded.

@stacey-gammon stacey-gammon force-pushed the 2018-07-11-typescript-flyout branch from 9c17f8d to 7ef218d Compare July 11, 2018 17:37
@cchaos cchaos requested a review from chandlerprall July 11, 2018 18:12
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.

LGreatTM!

@stacey-gammon stacey-gammon force-pushed the 2018-07-11-typescript-flyout branch from 587dd27 to 2d03f5e Compare July 11, 2018 19:14
@stacey-gammon stacey-gammon merged commit fbd8602 into elastic:master Jul 11, 2018
declare module '@elastic/eui' {
export interface EuiFlyoutProps {
onClose: () => void;
size: 's' | 'm' | 'l';
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that typing might be wrong. Is size really a mandatory property? If not it should be marked as optional size? in the property interface.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

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