You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import {observeOn} from 'rxjs/operators/observeOn';
import {Scheduler} from 'rxjs/Rx';
someObservable.pipe(
observeOn(Scheduler.asap)
)
.subscribe(() => {});
Expected behavior:
Should work correctly, without compilation errors.
Actual behavior:
ERROR in node_modules/rxjs/scheduler/VirtualTimeScheduler.d.ts(24,15): error TS2416: Property 'work' in type 'VirtualAction<T>' is not assignable to the same property in base type
'AsyncAction<T>'.
Type '(this: VirtualAction<T>, state?: T | undefined) => void' is not assignable to type '(this: AsyncAction<T>, state?: T | undefined) => void'.
The 'this' types of each signature are incompatible.
Type 'AsyncAction<T>' is not assignable to type 'VirtualAction<T>'.
Property 'index' is missing in type 'AsyncAction<T>'.
Additional information:
TypeScript 2.7
The text was updated successfully, but these errors were encountered:
RxJS version: 5.5.6
Code to reproduce:
Expected behavior:
Should work correctly, without compilation errors.
Actual behavior:
Additional information:
TypeScript 2.7
The text was updated successfully, but these errors were encountered: