title: Typescript cant access object property
body: <p>I have little issue accessing object property in typscript. this works fine in js but doesn't in ts</p>
  <pre><code>let getUserName = {
      firstname : &quot;timi&quot;,
      lastname: &quot;oluwayomi&quot;,
      middlename: &quot;ola&quot;,
      full : () =&gt; { return this.firstname + this.lastname + this.middlename } ,
      first: () =&gt; {  return this.firstname }
    }
  console.log(getUserName.first())
  </code></pre>
  <p>in javascript output: timi
  but ts throws error. is there a different way to access it in ts ?</p>