title: Typescript error "property find() does not exist on type never"
body: <p>I'm trying to get some Angular 11 code working in Angular 14:</p>
  <pre><code>  users = null;
  
    deleteUser(id: string)
    {
      if (this.users == null) { }
      else
      {
        const user = this.users.find(x =&gt; x.id === id);
        ... other stuff
       }
    }
  </code></pre>
  <p>The error is on the line const user = this.users.find( ...
  It says &quot;property find() does not exist on type 'never'&quot;... why would it think that the type is never?  It has already checked that this.users != null</p>