title: Is the startWith operator in RXJS really deprecated?
body: <p>Since updating to RXJS version 6 my WebStorm editor has been complaining on <em>some</em> usages of <a href="https://www.learnrxjs.io/operators/combination/startwith.html" rel="noreferrer">startWith()</a> that the operator is marked as <em>deprecated</em>.</p>
  
  <p>You can see in the source code that the methods are marked deprecated:</p>
  
  <ul>
  <li><a href="https://github.com/ReactiveX/rxjs/blame/master/src/internal/operators/startWith.ts#L7" rel="noreferrer">Link to master</a> (<a href="https://github.com/ReactiveX/rxjs/blame/b24d3ea85d33b893e4c020fb4fa9f6fa4d05dc0b/src/internal/operators/startWith.ts#L7" rel="noreferrer">Harder link for future</a>)</li>
  </ul>
  
  <p>The problem for me is that the deprecated warning is not consistent. Sometimes it reports the method deprecated and other times it does not. While I can reproduce the warning in the below code examples. It seems to happen in my own source code randomly.</p>
  
  <p>Not deprecated:</p>
  
  <pre><code>  of(false).pipe(startWith(true));
  </code></pre>
  
  <p>Is marked deprecated:</p>
  
  <pre><code>  const x: any = true;
    of(false).pipe(startWith(x));
  </code></pre>
  
  <p>So I am worried about these deprecated warnings. The deprecation message says to use <code>scheduled()</code> and <code>concat()</code> operators instead, but that feels like a more complicate alternative to an already handy operator like <code>startWith()</code>.</p>
  
  <p>So I'm kind of confused as to why it's deprecated, but also why it's only deprecated sometimes.</p>