Skip to content

Commit

Permalink
fix: make TS type def of VirtualAction compatible with TS 2.9 (#3813)
Browse files Browse the repository at this point in the history
  • Loading branch information
thetrompf authored and benlesh committed Jul 26, 2018
1 parent 09e4359 commit d56e6c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scheduler/AsyncAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ export class AsyncAction<T> extends Action<T> {
public state: T;
public delay: number;
protected pending: boolean = false;
protected work: (this: this, state?: T) => void;

constructor(protected scheduler: AsyncScheduler,
protected work: (this: AsyncAction<T>, state?: T) => void) {
work: (this: AsyncAction<T>, state?: T) => void) {
super(scheduler, work);
this.work = work;
}

public schedule(state?: T, delay: number = 0): Subscription {
Expand Down

0 comments on commit d56e6c6

Please sign in to comment.