-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Restore missing API #4847
Restore missing API #4847
Conversation
// What is this type??? | ||
// Well we exported it before so let's keep it for now. |
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.
XD
// What is this type??? | |
// Well we exported it before so let's keep it for now. | |
// This is only legacy type exported to keep the backwards compatibility |
// What is this type??? | ||
// Well we exported it before so let's keep it for now. |
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.
Just change this comment to something more formal 😅
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary During removal of `react-native-reanimated.d.ts` in #4519 I didn't consider that some types were exported only in the aforementioned file, e.g. `WithSpringConfig`. Therefore when we released `3.4.0` those types disappear from public API. This PR restores lacking types from `.d.ts` - but only the relevant ones, without Reanimated1 API. ## Types restored ### namespace Animated - Extrapolate - DerivedValue - Adaptable - TransformStyleTypes - AdaptTransforms - AnimatedTransform - AnimateStyle - StylesOrDefault - AnimateProps - EasingFunction - addWhitelistedNativeProps - addWhitelistedUIProps - AnimatedScrollViewProps - FlatListPropsWithLayout ### react-native-reanimated - Adaptable - AdaptTransforms - AnimatedTransform - TransformStyleTypes - AnimateStyle - StylesOrDefault - AnimatedScrollViewProps - FlatListPropsWithLayout - \-\-\- - EasingFunction - EasingFunctionFactory - \-\-\- - WithDecayConfig - \-\-\- - WithSpringConfig - \-\-\- - WithTimingConfig - \-\-\- - FlatListPropsWithLayout - \-\-\- - AnimatedScrollViewProps - \-\-\- - AnimatedStyleProp - \-\-\- - InterpolateRGB - InterpolateHSV - \-\-\- - KeyframeProps ___ Requires #4855 ## Test plan CI + 🚀
If I have upgraded to
|
Yes, you shouldn't. |
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary Removal of `react-native-reanimated.d.ts` exposed some of our internal API with `export * from ...`. This file limits the exports and (kind-of) defines public API. Requires #4847. ## Test plan CI
Summary
During removal of
react-native-reanimated.d.ts
in #4519 I didn't consider that some types were exported only in the aforementioned file, e.g.WithSpringConfig
. Therefore when we released3.4.0
those types disappear from public API. This PR restores lacking types from.d.ts
- but only the relevant ones, without Reanimated1 API.Types restored
namespace Animated
react-native-reanimated
Requires #4855
Test plan
CI + 🚀