Skip to content

Commit 54f342f

Browse files
fix(BoundNodeCallbackObservable): cast to any to access to private field in source
This needs to pass the compiling with tsc v2.0
1 parent f1a5705 commit 54f342f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/observable/BoundNodeCallbackObservable.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ export class BoundNodeCallbackObservable<T> extends Observable<T> {
127127
function dispatch<T>(state: { source: BoundNodeCallbackObservable<T>, subscriber: Subscriber<T> }) {
128128
const self = (<Subscription> this);
129129
const { source, subscriber } = state;
130-
const { callbackFunc, args, scheduler } = source;
130+
// XXX: cast to `any` to access to the private field in `source`.
131+
const { callbackFunc, args, scheduler } = source as any;
131132
let subject = source.subject;
132133

133134
if (!subject) {

0 commit comments

Comments
 (0)