title: Defining object type without knowing properties keys in TypeScript
body: <p>I want to define an object type in TypeScript, that is composed of several properties of which I want to define the type, but without knowing them keys.</p>
  <p>I could have used an array to filter, but I prefer to use properties to gain speed (my use case is a graph).</p>
  <p>Ex:</p>
  <pre><code>{
      &quot;edges&quot;: {
          &quot;bc73c36e-db11-4020-bef9-9ba5ffe2d6d4&quot;: {
              &quot;name&quot;: &quot;John&quot;
          },
          &quot;0691e3c2-7c69-4ec8-8e59-6b0055855a38&quot;: {
              &quot;name&quot;: &quot;Mike&quot;
          },
          &quot;6f0ca8f0-d595-4cc2-a62f-adfe35ba4808&quot;: {
              &quot;name&quot;: &quot;Lucy&quot;
          },
          ...
      }
  }
  </code></pre>
  <p>How can I define this object type of <code>edges</code> in TypeScript?</p>