How can I get the step result in AfterStep hook of cucumber.js

As the title says, how can I find the result of a step in the AfterStep hook of cucumber.js?