Skip to content

Commit

Permalink
chore: fix build errors in master (#5256)
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh authored Jan 22, 2020
1 parent 6e3455d commit fa13149
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/internal/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ export interface Observer<T> {

export interface SchedulerLike {
now(): number;
schedule<T = undefined>(work: (this: SchedulerAction<T>, state: T) => void, delay?: number, state?: T): Subscription;
schedule(work: (this: SchedulerAction<undefined>) => void, delay?: number ): Subscription;
schedule<T>(work: (this: SchedulerAction<T>, state: T) => void, delay: number, state: T): Subscription;
}

export interface SchedulerAction<T> extends Subscription {
schedule(state?: T, delay?: number): Subscription;
}
Expand Down

0 comments on commit fa13149

Please sign in to comment.