title: TypeScript Expected 1 arguments, but got 2
body: <p>What's wrong with my function createUser()?
  Why I can't put params in Smoke.ts ?</p>
  <p>Login.ts :</p>
  <pre><code>interface User {
    url: string,
    email: string,
  }
  
  class Test{ 
  async createUser(user: User) {
      await Page.setUrl(user.url);
      await Page.setEmail(user.email);
  
  
     
    }
  }
  </code></pre>
  <p>Smoke.ts</p>
  <pre><code>test(&quot;Smoke Test&quot;, async (t) =&gt; {
    console.log(&quot;Starting test&quot;);  
    await Login.createUser(
    &quot;google.com&quot;,&quot;joe&quot;
    );
  </code></pre>
  <p>An error appear : Expected 1 arguments, but got 2.</p>