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

Added TS definition for Router onChange prop #215

Merged
merged 4 commits into from
Aug 23, 2017

Conversation

cmaster11
Copy link
Contributor

The onChange prop was not mapped in the definitions file. This is a possible change.

The onChange prop was not mapped in the definitions file. This is a possible change.
Copy link
Collaborator

@Alexendoo Alexendoo left a comment

Choose a reason for hiding this comment

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

Thanks! I believe current should be a VNode and and active an Array of VNodes. previous may be undefined also (on the first callback)

@cmaster11
Copy link
Contributor Author

Yep! Missed that!

Actual typo, `onChange` was written as a function to be invoked. Now it's the correct attribute type.
Copy link
Member

@developit developit left a comment

Choose a reason for hiding this comment

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

awesome!

@developit developit merged commit c2c4693 into preactjs:master Aug 23, 2017
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