title: TypeScript 3.9 Generic Property 'disabled' does not exist on type 'T'.(2339)
body: <p>After Upgrading typescript 3.9. I'm getting this error</p>
  <p><code>Property 'disabled' does not exist on type 'T'.</code></p>
  <p>I see that Type Parameters That Extend any No Longer Act as any  <a href="https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-9.html#type-parameters-that-extend-any-no-longer-act-as-any" rel="nofollow noreferrer">https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-9.html#type-parameters-that-extend-any-no-longer-act-as-any</a></p>
  <p>But how can solve this?</p>
  <pre><code>export interface Item {
    name: React.ReactNode;
    value: string;
    disabled?: boolean;
    renderer?;
  }
  
  interface OwnProps&lt;T = Item&gt; {
    data: T[];
  }
  
  export type RenderProps&lt;T&gt; = OwnProps&lt;T&gt; &amp; Partial&lt;SelectProps&gt;;
  
  export const MyComp = &lt;T extends any&gt;({ data }: RenderProps&lt;T&gt;) =&gt; {
      return &lt;div&gt;{data.map(item =&gt; {
              const optionDisabled = !!(item &amp;&amp; item.disabled);
              const renderer = (item &amp;&amp; item.renderer) || optionRenderer;
              return (
                &lt;Select.Option disabled={optionDisabled}&gt;
                  ....
                &lt;/Select.Option&gt;
              );
            })
     }
  }&lt;/div&gt;;
  
  </code></pre>
  <p><a href="https://www.staging-typescript.org/play?#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgcilQ3wG4AocpAD0ljmADsYkpN0k4BJFvAb3Jw4jFCCQAuOAGcYUJgHMKQgG4oANgFcJ02QqVwAJsCkoARmqQGA-JNMQIFlI31FGB1qxs65jReQC%20lEwsbBxwAPIA7owACjhgUgA8ACpwALzcvAB8cAJCBigwKJLJANoAuhSBVLTQ8DAAnmCcyG6scRAJKemZSCA5GVGx8UnJWRSUNHTwaBCMMnAAsg0AwrhgPSkANFkAFHyGhShw-pKt7lAdXWMAlOk5u4JwiUbKWXlCh0UAdCAoYLtgLx7rknp84LN5vBOjBgHMACLGMwWAw9ACEaMBwIAZNiGLxvkYTOZLDd9ODIQtXBdWD0sX04Lj8X1vtSPFAyWDPkQYBooIw4LsXsA3nw2UQoP5EgB6V5ZTng-w3MGBT4yuXkTmUchAA" rel="nofollow noreferrer">Playground</a></p>