ReactiveX/rxjs

WebSocketSubject may have different input and output types.

Open

#5381 opened on Apr 6, 2020

View on GitHub
 (2 comments) (2 reactions) (0 assignees)TypeScript (31,024 stars) (3,007 forks)batch import
bughelp wanted

Description

Just what the title says... The AnonymousSubject (aka "frankensubject") probably also needs some typings love.

Basically, a nicer interface would be:

class WebSocketSubject<In, Out> extends Observable<Out> implements Observer<In> {
  // ...stuff
}

Contributor guide