title: How to enforce explicit return type of object's methods in Typescript?
body: <p>I want to enforce do explicit declare a return type of all functions and methods in the code.</p>
  <p>So I set <code>'@typescript-eslint/explicit-function-return-type': 'error'</code>.
  But it's <strong>not always</strong> works:</p>
  <p>This is okay, <code>eslint</code> throws an error:</p>
  <pre><code>const obj = {
    fn() {   // &lt;---- no return type, so &quot;Missing return type on function&quot; error
      return 2;
    }
  };
  </code></pre>
  <p>This is NOT okay, <code>eslint</code> see NO problems here:</p>
  <pre><code>const obj: Record&lt;string, any&gt; = { // &lt;---- But if I declare a type of an object...
    fn() {   // &lt;---- ...this is throws no error anymore!
      return 2;
    }
  };
  </code></pre>
  <p>How can I make sure that there is no methods without explicit return type definition?</p>