Skip to content

Fixed the React.addons.update typing to work with TS1.6 - #5892

Merged
vvakame merged 1 commit into
DefinitelyTyped:masterfrom
ccapndave:react-update-for-1.6
Oct 6, 2015
Merged

vvakame merged 1 commit into
DefinitelyTyped:masterfrom
ccapndave:react-update-for-1.6

Conversation

@ccapndave

Copy link
Copy Markdown
Contributor

Typescript 1.6 types are a bit stricter so we need to explicitly specify that update can either take a dynamic property, or one of the command.s

@jbrantly

Copy link
Copy Markdown
Contributor

Can you make the same change to react-global.d.ts?

@ccapndave

Copy link
Copy Markdown
Contributor Author

Added the modification to react-global.d.ts too

@vvakame

vvakame commented Oct 5, 2015

Copy link
Copy Markdown
Member

@pspeter3 @vsiao can I merge this PR?

Comment thread react/react.d.ts

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

rm trailing whitespace

@vsiao

vsiao commented Oct 5, 2015

Copy link
Copy Markdown
Contributor

lgtm other than the trailing whitespace

@vvakame
vvakame merged commit f03129f into DefinitelyTyped:master Oct 6, 2015
@vvakame

vvakame commented Oct 6, 2015

Copy link
Copy Markdown
Member

thanks mate!

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.

4 participants