-
-
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
TypeScript for Layout Animations #2137
Conversation
@@ -179,7 +179,7 @@ export function withStartValue(startValue, animation) { | |||
}); | |||
} | |||
|
|||
export function withTiming(toValue, userConfig, callback) { | |||
export function withTiming(toValue: any, userConfig: any, callback?: 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.
It is just a temporary solution. We will add types for animation in the next PR.
declare namespace NodeJS { | ||
interface Global { |
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 this is wrapped in Nodejs namespace?
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.
global.LayoutAnimationRepository = { |
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.
Description
Added types for LayoutAnimations
Checklist