Skip to content

Commit

Permalink
refactor(VirtualTimeScheduler): remove sortActions from public API (#…
Browse files Browse the repository at this point in the history
…5657)

BREAKING CHANGE: The static `sortActions` method on `VirtualTimeScheduler` is no longer publicly exposed by our TS types.
  • Loading branch information
benlesh authored Aug 19, 2020
1 parent dad270a commit a468f88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion api_guard/dist/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,6 @@ export declare class VirtualAction<T> extends AsyncAction<T> {
protected recycleAsyncId(scheduler: VirtualTimeScheduler, id?: any, delay?: number): any;
protected requestAsyncId(scheduler: VirtualTimeScheduler, id?: any, delay?: number): any;
schedule(state?: T, delay?: number): Subscription;
static sortActions<T>(a: VirtualAction<T>, b: VirtualAction<T>): 1 | 0 | -1;
}

export declare class VirtualTimeScheduler extends AsyncScheduler {
Expand Down
2 changes: 1 addition & 1 deletion src/internal/scheduler/VirtualTimeScheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class VirtualAction<T> extends AsyncAction<T> {
}
}

public static sortActions<T>(a: VirtualAction<T>, b: VirtualAction<T>) {
private static sortActions<T>(a: VirtualAction<T>, b: VirtualAction<T>) {
if (a.delay === b.delay) {
if (a.index === b.index) {
return 0;
Expand Down

0 comments on commit a468f88

Please sign in to comment.