title: FeathersJS TypeScript hook returning boolean
body: <p>I'm trying to create a FeathersJS hook that returns a boolean value to use inside the iff() hook of the &quot;feathers-hooks-common&quot; package. Something like the isProvider() hook of the same package.</p>
  <p>My problem is that I'm using the TypeScript version of the feathers cli generated app and when I use the generator to create a new hook, the result is:</p>
  <pre><code>// Use this hook to manipulate incoming or outgoing data.
  // For more information on hooks see: http://docs.feathersjs.com/api/hooks.html
  import { Hook, HookContext } from '@feathersjs/feathers';
  
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
  export default (options = {}): Hook =&gt; {
    return async (context: HookContext): Promise&lt;HookContext&gt; =&gt; {
      console.log(context);
      return context;
    };
  };
  </code></pre>
  <p>so I don't know how can I use this generated typescript code to return a boolean value that can be used in the iff() hook.</p>
  <p>Is there anyone that knows how to do this?</p>
  <p>Thank you!</p>