title: Defining an object with any prop in typescript
body: <p>I just switched from JavaScript to TypeScript and am converting a bunch of my code.</p>
  
  <p>I used to use this code a lot in JavaScript (already converted to TypeScript):</p>
  
  <pre><code>function isObject (payload: any): payload is object {
    const type: string = Object.prototype.toString.call(payload).slice(8, -1)
    return type === 'Object'
  }
  </code></pre>
  
  <p>Then I would do things like this in JavaScript</p>
  
  <pre><code>if (isObject(payload) &amp;&amp; payload.id) return payload.id
  </code></pre>
  
  <p>However in TypeScript, now it would give me the error that <code>id</code> does not exist on <code>object</code>.</p>
  
  <p>So instead of returning <code>payload is object</code> in my <code>isObject</code> function, I think I should return something that is an object with any props with any values.</p>
  
  <p>How can I do this best?</p>