Skip to content

Commit

Permalink
fix(types): update schedule signature overload
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonoj authored and benlesh committed Aug 13, 2021
1 parent a5f1dfe commit c61e57c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api_guard/dist/types/index.d.ts
Expand Up @@ -595,6 +595,8 @@ export interface SchedulerAction<T> extends Subscription {
}

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

Expand Down
1 change: 1 addition & 0 deletions src/internal/types.ts
Expand Up @@ -181,6 +181,7 @@ export interface SubjectLike<T> extends Observer<T>, Subscribable<T> {}

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

Expand Down

0 comments on commit c61e57c

Please sign in to comment.