Add return type to cancel fn in $animate