Looks like cartant's comment is correct, the RxJS upgrade guide doesn't cover that method specifically but does say "Classes that operate on observables have been replaced by functions"
Which seems to mean all or most of those class methods like .of, .throw etc. have been replaced by a function
So instead of
import { Observable, of } from "rxjs";
Observable.of(this.purposes);
do
import { of } from "rxjs";
of(this.purposes);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…