title: Element implicitly has an 'any' type because type 'typeof globalThis' has no index signature
body: <p>I am trying to get the following code to compile and run in TypeScript.</p>
  
  <p>I am not sure why <code>funcMap</code> is giving me problems. If I try this in pure JavaScript, I am told that <code>this.funcMap.k1</code> is not a function?</p>
  
  <pre><code>const obj = {
  
    foo: function () { console.log("foo") },
    bar: function () { console.log("bar") },
  
    funcMap: {
      k1: this.foo,
      k2: this.bar
    },
  
    dump: function () {
      this.funcMap.k1();    // --&gt; foo
      this.funcMap["k2"](); // --&gt; bar
    }
  
  }
  
  obj.dump();
  </code></pre>
  
  <p>The error message is:</p>
  
  <pre><code>main.ts:7:14 - error TS7017: Element implicitly an 'any' type 
  because type 'typeof globalThis' no index signature.
  
  7     k1: this.foo,
                 ~~~
  
  main.ts:8:14 - error TS7017: Element implicitly an 'any' type 
  because type 'typeof globalThis' no index signature.
  
  8     k2: this.bar
                 ~~~
  </code></pre>