-
Notifications
You must be signed in to change notification settings - Fork 734
Typescript/stack aggregator #1339
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
Conversation
/** | ||
* A callback for collapse state will change (value is future collapsed state) | ||
*/ | ||
onCollapseWillChange: PropTypes.func, | ||
onCollapseWillChange?: (change: boolean) => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'changed' instead of 'change' (as 'change' refers to the change itself and not its state)
onCollapseChanged: PropTypes.func, | ||
* A callback for collapse state change (value is collapsed state) | ||
*/ | ||
onCollapseChanged?: (change: boolean) => void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
class StackAggregator extends PureComponent<StackAggregatorProps, State> { | ||
static displayName = 'StackAggregator'; | ||
|
||
animatedScale: any; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why type 'any' and not 'Animated.Value' on all the animated variables?
Description
Migrate
StackAggregator
component into typescript.Changelog
Migrate
StackAggregator
component into typescript.