animate calls return correct typings

Retarget from #1085