title: Nested objects in TypeScript
body: <p>How to declare JavaScript like nested objects in TypeScript?</p>
  
  <pre><code>let endpoints = {
      auth: {
          login: "http://localhost:8079/auth/login"
      }
  };
  </code></pre>
  
  <p>The following does not work:</p>
  
  <pre><code>private endpoints: Object = {
      auth: {
          login: "http://localhost:8079/auth/login"
      }
  };
  </code></pre>
  
  <p>Throws:</p>
  
  <p><code>error TS2339: Property 'auth' does not exist on type 'Object'.</code></p>