(value: any)
| 7 | |
| 8 | /** Return the `Animated` node constructor for a given value */ |
| 9 | export function getAnimatedType(value: any): AnimatedType { |
| 10 | const parentNode = getAnimated(value) |
| 11 | return parentNode |
| 12 | ? (parentNode.constructor as any) |
| 13 | : is.arr(value) |
| 14 | ? AnimatedArray |
| 15 | : isAnimatedString(value) |
| 16 | ? AnimatedString |
| 17 | : AnimatedValue |
| 18 | } |
no test coverage detected
searching dependent graphs…