title: In TypeScript, how can I specify the types of the values in my object?
body: <p>For example, suppose I have:</p>
  
  <pre><code>export function trade(positions: object) {
    ...
  }
  </code></pre>
  
  <p>but instead of just specifying that 'positions' is an object, I want to specify that it is an object with values that must be Strings.</p>
  
  <p>What is the syntax for that?</p>
  
  <p>Edit:</p>
  
  <p>To tighten the example, suppose I just want keys and values to all be Strings. Is there a syntax for that?</p>