You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TS2589: Type instantiation is excessively deep and possibly infinite
This seems to be caused by AnimatedProps from Reanimated, which expands into very deeply nested types, and triggers infinite recursion when DotNotation attempts to
Wrap any Reanimated component with the styled function.
I extracted the relevant types from your library and placed them in a reproducible example repository using the TypeScript Playground, so the issues can be seen and solved more clearly.
Before submitting a new issue
Bug summary
DotNotation<ComponentProps>, TypeScript fails with:
This seems to be caused by AnimatedProps from Reanimated, which expands into very deeply nested types, and triggers infinite recursion when DotNotation attempts to
Library version
3.0.0
Environment info
Steps to reproduce
styledfunction.I extracted the relevant types from your library and placed them in a reproducible example repository using the TypeScript Playground, so the issues can be seen and solved more clearly.
Reproducible example repository
https://www.typescriptlang.org/play/?ts=5.9.2#code/PTAECMEsHsFsFMC0kDmA7aAneoA2k0AXYAZ0IE9d5gMAleMzSAY0PgBMBJWABy0JIAuUAHUcAQ2yhCmccwDWBFNIAWOWAFdC4wjDSgAZhrSs9AKEi9+08jxwBvUAGE4fNPCIAFTNB4lQAL6GPrCgAETYcoRhANxmIBAwCMjoWDj4RKQUVDTQ9IwsbFxWmALCYqCSODJyimjKhGqgmtq60PpGJm1oFiWEoI4AKvAAHv1BBiHhkayIaDqQAG7wsb18pTZ2oACCaJY6HMFw0-BRcwvLiJF7sAfsqxRbAGLiuCTkoAC8oMbs8AYEQ4AH1AaA0uFwoBBBleJBwILCD1sOHoKEgZHg2HYAGVsvAADyDAB8X1BGlg4ExoAAZAMzABIAD6jOwaIxWNxlHgACFZGh2MJBnEAnFHjhvJZILpll8GSCCvU5WSKZileBoNAqOIevSQVA0UQle8KZqlWCIUrfv9AewlQARA5K1EAURGPCVMLe8CVMg08DiBDYmBhzBR8GYGkwJCW8G2mFk5EJRIZozY-P8cYThKhoHo4nY7Vw5Ez4kTxJz9AjUZjJbLRJJ9gCZlG636YtAnKo3l8SdlutAgyd8DZQY4nYJxKHV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