title: Typescript TS2532 - Object is possible undefined
body: <pre><code>    &lt;Form.Field&gt;
        &lt;label&gt;Rua&lt;/label&gt;
        &lt;input name='endereco.rua' value={user.endereco.rua}  onChange={(e)=&gt;handleInputChange(e)} placeholder='Insira sua Rua' /&gt;
        {errors.endereco.rua !== '' &amp;&amp; &lt;ErrorMessage&gt;{errors.endereco.rua}&lt;/ErrorMessage&gt;}
  
      &lt;/Form.Field&gt;
  
       &lt;Form.Field&gt;
        &lt;label&gt;Numero&lt;/label&gt;
        &lt;input name='endereco.numero' type='number'   onChange={(e)=&gt;handleInputChange(e)} placeholder='Insira seu numero' /&gt;
        {errors.endereco.numero !==  undefined  &amp;&amp; &lt;ErrorMessage&gt;{errors.endereco.numero}&lt;/ErrorMessage&gt;}
  
      &lt;/Form.Field&gt;
  
    export  interface Errors{
      name?: string;
      password?: string;
      email?: string;
      cpf?: string;
      endereco?: {
          cep?: string;
          cidade?: string;
          bairro?: string;
          rua?: string;
          numero?: string;
      }
  
     }
  </code></pre>
  
  <p>How can i deactivate this option or solve the issue? It was only now that it gave me this error. Thank you!</p>
  
  <p>error: Typescript TS2532 - Object is possible undefined.</p>