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

TypeScript for animations #2182

Merged
merged 29 commits into from
Aug 6, 2021
Merged

TypeScript for animations #2182

merged 29 commits into from
Aug 6, 2021

Conversation

piaskowyk
Copy link
Member

@piaskowyk piaskowyk commented Jul 6, 2021

Description

Refactor and transfter of animations module to TypeScript.

@piaskowyk piaskowyk self-assigned this Jul 7, 2021
@piaskowyk piaskowyk marked this pull request as ready for review July 23, 2021 14:00
@piaskowyk piaskowyk requested review from Szymon20000 and removed request for Szymon20000 July 26, 2021 06:50
Example/ios/Podfile.lock Outdated Show resolved Hide resolved
src/reanimated2/animation/decay.ts Outdated Show resolved Hide resolved
src/reanimated2/animation/decay.ts Outdated Show resolved Hide resolved
src/reanimated2/animation/decay.ts Outdated Show resolved Hide resolved
current: 0,
lastTimestamp: 0,
startTimestamp: 0,
} as DecayAnimation;
Copy link
Member

Choose a reason for hiding this comment

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

Why we have to cast it? Return type of the function should be typed at the function signature.

src/reanimated2/animation/decay.ts Outdated Show resolved Hide resolved
src/reanimated2/animation/delay.ts Outdated Show resolved Hide resolved
src/reanimated2/animation/index.ts Outdated Show resolved Hide resolved
src/reanimated2/animation/util.ts Outdated Show resolved Hide resolved
src/reanimated2/commonTypes.ts Show resolved Hide resolved
src/reanimated2/layoutReanimation/index.ts Outdated Show resolved Hide resolved
@piaskowyk piaskowyk marked this pull request as draft August 2, 2021 13:46
@piaskowyk piaskowyk marked this pull request as ready for review August 6, 2021 12:29
@piaskowyk piaskowyk merged commit 726c774 into master Aug 6, 2021
@piaskowyk piaskowyk deleted the @piaskowyk/ts-animation branch August 6, 2021 12:30
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