Build the hook definition. Requires .on() and .run() to be called first.
if on or run are not set
Optional
Set the hook's run handler. Required before build().
Declare which typed errors this hook may throw (declarative only).
Build the hook definition. Requires .on() and .run() to be called first.