title: Why generic tell me that propery doesnt exist
body: <p>In one file I have next code</p>
  <pre><code>function test&lt;T extends {}&gt;(arg:T):any {
    return arg.name
  }
  </code></pre>
  <p>in another I have next code</p>
  <pre><code>interface IItem  {
      name: string
  }
  
  console.log(test&lt;IItem&gt;({name:'3'}))
  </code></pre>
  <p>Why do I get an error when I try to call the name property of the args object?
  Declaring the interface in a file with a test function is not an option</p>