Skip to content

Correct the definition of ComponentLifecycle - #740

Merged
robertknight merged 1 commit into
preactjs:masterfrom
RyanCavanaugh:master
Jun 29, 2017
Merged

Correct the definition of ComponentLifecycle#740
robertknight merged 1 commit into
preactjs:masterfrom
RyanCavanaugh:master

Conversation

@RyanCavanaugh

Copy link
Copy Markdown
Contributor

There is no value named ComponentLifecycle, so this should be represented as an interface rather than a class.

The correct way to copy down the optional members of an interface into a class declaration is to use declaration merging (see diff).

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 7d5ca18 on RyanCavanaugh:master into d49ba50 on developit:master.

@marvinhagemeister marvinhagemeister left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@marvinhagemeister

Copy link
Copy Markdown
Member

Awesome to see a core contributer of the TypeScript team here! I've always struggled with the different concept of values and declarations in the past, and your explanation nails it 👍

@robertknight robertknight left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank-you very much for this @RyanCavanaugh 👍

@robertknight
robertknight merged commit f3d0047 into preactjs:master Jun 29, 2017
@gnarf

gnarf commented Jul 10, 2017

Copy link
Copy Markdown
Contributor

Can we push a release of this?

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.

6 participants