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 Layout Animations #2137

Merged
merged 11 commits into from
Jun 24, 2021
Merged

Conversation

piaskowyk
Copy link
Member

@piaskowyk piaskowyk commented Jun 17, 2021

Description

Added types for LayoutAnimations

Checklist

  • Updated TS types
  • Added TS types tests
  • Ensured that CI passes

@@ -179,7 +179,7 @@ export function withStartValue(startValue, animation) {
});
}

export function withTiming(toValue, userConfig, callback) {
export function withTiming(toValue: any, userConfig: any, callback?: any) {
Copy link
Member Author

Choose a reason for hiding this comment

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

It is just a temporary solution. We will add types for animation in the next PR.

@piaskowyk piaskowyk changed the title @piaskowyk/layout animation ts TypeScript for Layout Animations Jun 17, 2021
@piaskowyk piaskowyk marked this pull request as ready for review June 17, 2021 12:44
Comment on lines +4 to +5
declare namespace NodeJS {
interface Global {
Copy link
Member

Choose a reason for hiding this comment

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

Why this is wrapped in Nodejs namespace?

Copy link
Member Author

Choose a reason for hiding this comment

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


I found information that namespace NodeJS is required for the definition of properties in the global object. But correct me please if I am wrong.

@piaskowyk piaskowyk merged commit 067aa6e into master Jun 24, 2021
@piaskowyk piaskowyk deleted the @piaskowyk/layout-animation-ts branch June 24, 2021 08:22
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.

3 participants