-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interface for ConnectableObservableLike is not exposed #6529
Comments
Really, you shouldn't need to explicitly type import { connectable, timer } from 'rxjs';
const tick$: ReturnType<typeof connectable> = connectable(timer(1_000), {
connector: () => new Subject<number>(),
resetOnDisconnect: false
}); Ideally, long term, I'd love to have Perhaps we can just rename |
Okay. In this example it might work. But what if I'm in a class? class Sample {
// that's not a nice solution?
public $tick: any;
init() {
this.tick$ = connectable(timer(1_000), {
connector: () => new Subject<number>(),
resetOnDisconnect: false
});
}
connect() {
this.tick$.connect():
}
} And with the |
Bug Report
Current Behavior
Interface for ConnectableObservableLike is not exposed
Expected behavior
Interface for ConnectableObservableLike is exposed.
Reproduction
Try to add type definition to the example from docs.
First try
Result:
TS2305: Module '"rxjs"' has no exported member 'ConnectableObservableLike'.
Second try
Result:
TS2740: Type 'ConnectableObservableLike ' is missing the following properties from type 'ConnectableObservable ': subjectFactory, _subject, _refCount, _connection, and 3 more.
Environment
The text was updated successfully, but these errors were encountered: