How to use healthcheck in docker-compose version 3

I previously used the condition form of depends_on, however in version three of docker-compose its no longer supported. I’m wondering of what use is healthcheck in my docker-compose file if I can’t use it in depends_on ?