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 numbers and non-node values to concat type #249

Merged
merged 1 commit into from Apr 19, 2019

Conversation

jeremy-deutsch
Copy link
Contributor

The TS type signature for concat only allows string nodes right now, but it should also allow number nodes, JS string values, and JS number values, e.g.

set(rotateX, concat(translateY, "deg"))

This PR changes the instances of AnimatedNode<string> in concat's parameter types to Adaptable<string> | Adaptable<number>. This works since we internally run adapt on the arguments of concat.

Copy link
Contributor

@osdnk osdnk left a comment

Choose a reason for hiding this comment

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

Thanks :)

@osdnk osdnk merged commit 7d3eced into software-mansion:master Apr 19, 2019
@jeremy-deutsch jeremy-deutsch deleted the fix-concat-type branch April 19, 2019 16:40
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.

None yet

2 participants