title: ESLint: Unexpected any. Specify a different type.(@typescript-eslint/no-explicit-any)
body: <p>I have this line of code which is a wrapper function even though it works fine,
  <code>const to = (promise: any) =&gt; promise.then((data: any) =&gt; data).catch((err: any) =&gt; err);</code></p>
  <p>but eslint is prompting the unexpected any error, if i do not include eslint-disable-next-line</p>
  <p><code>ESLint: Unexpected any. Specify a different type.(@typescript-eslint/no-explicit-any)</code></p>
  <p>the function wrapper <code>to()</code> can be used to wrap different login methods for example this function,</p>
  <pre><code>const loginWithEmail = async (email:string, password:string) =&gt; new Promise((reject) =&gt; {
    const firebase = getFirebase();
    firebase.login({
      email,
      password,
    }).catch((error) =&gt; {
      reject(error);
      return error.message;
    });
  });
  </code></pre>
  <p>and the end result is placed inside a React Component where it will get the err message and place it into a hook to be displayed.</p>
  <pre><code>  const handleEmailLogin = async () =&gt; {
      const err = await to(loginWithEmail(email, password));
      setEmailLoginError(err.message);
    };
  </code></pre>
  <p>i was wondering if there's a better way to define the function <code>to()</code> without relying on the type <code>any</code>?</p>