After upgrading Angular, original code below complaints
ngOnInit() { ... Observable.fromEvent(this.filter.nativeElement, "keyup") .debounceTime(150) .distinctUntilChanged() .subscribe(...
Based on this thread, I changed Observable.fromEvent
to fromEvent
. Now goes down to debounceTime
, and distinctUntileChanged()
will be next.
How to convert the original one?
https://stackoverflow.com/questions/66913321/property-xxx-does-not-exist-on-type-observableunknown-ts-2339 April 02, 2021 at 09:08AM
没有评论:
发表评论