diff --git a/src/internal/types.ts b/src/internal/types.ts index 3bfbb8389f..bd906fa967 100644 --- a/src/internal/types.ts +++ b/src/internal/types.ts @@ -92,8 +92,10 @@ export interface Observer { export interface SchedulerLike { now(): number; - schedule(work: (this: SchedulerAction, state: T) => void, delay?: number, state?: T): Subscription; + schedule(work: (this: SchedulerAction) => void, delay?: number ): Subscription; + schedule(work: (this: SchedulerAction, state: T) => void, delay: number, state: T): Subscription; } + export interface SchedulerAction extends Subscription { schedule(state?: T, delay?: number): Subscription; }