Add return type to register fn in $animateProvider