title: Typescript is giving me an error: Expected 0 arguments, but got 1
body: <p>I want to define the interface the proper way but I am having trouble because it is expecting an argument even though the argument is empty.</p>
  
  <p>I am using <code>useContext</code> and I defined the interface like this:</p>
  
  <pre><code>    //react-auth0-spa.tsx
      interface Auth0Context {
          ......
          loginWithRedirect:  () =&gt; void; //I know this is the problem but I don't know what to define.
          ......
       }
  </code></pre>
  
  <p>in the provider, the <code>value</code> is :</p>
  
  <pre><code> //react-auth0-spa.tsx
   &lt;Auth0Context.Provider
       value=({
    ....
    loginWithRedirect: (...p: string[]) =&gt; auth0Client.loginWithRedirect(...p)
     ....
     })
  &gt;
  </code></pre>
  
  <p>now, I <code>import</code> the context to other the other file like so:
  <code>const { isAuthenticated, loginWithRedirect, logout } = useAuth0()</code></p>
  
  <p>and this is where the error occurs </p>
  
  <pre><code>///components/NavBar.tsx
  const { isAuthenticated, loginWithRedirect, logout } = useAuth0()
  &lt;div&gt;
        {!isAuthenticated &amp;&amp; (
          &lt;button onClick={() =&gt; loginWithRedirect({})}&gt;Log in&lt;/button&gt; //Expected 0 arguments, but got 1
        )}
  &lt;/div&gt;
  </code></pre>
  
  <p>so the problem is <code>loginWithRedirect</code> is expecting 1 argument, but <code>() =&gt; loginWithRedirect({})</code> is an empty object. The problem can be solved by using <code>any</code> inside the interface but what should I put if I want to define it explicitly?</p>
  
  <p>I tried <code>loginWithRedirect:  ({}) =&gt; void</code> but now <code>loginWithRedirect: (...p: string[]) =&gt; auth0Client.loginWithRedirect(...p)</code> is giving me error like this <code>Type '{}' is not assignable to type 'string'.ts(2322)</code></p>
  
  <p>source code without typescript is <a href="https://github.com/auth0-samples/auth0-react-samples/tree/master/01-Login/src" rel="noreferrer">https://github.com/auth0-samples/auth0-react-samples/tree/master/01-Login/src</a> </p>
  
  <p>Please help.</p>