Skip to content

Commit

Permalink
refactor: resolve issue with api_guardian not liking 1 | 0 | -1 returns
Browse files Browse the repository at this point in the history
  • Loading branch information
benlesh committed Aug 18, 2020
1 parent e155442 commit add28f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api_guard/dist/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ 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>): 0 | 1 | -1;
static sortActions<T>(a: VirtualAction<T>, b: VirtualAction<T>): number;
}

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>) {
public static sortActions<T>(a: VirtualAction<T>, b: VirtualAction<T>): number {
if (a.delay === b.delay) {
if (a.index === b.index) {
return 0;
Expand Down

0 comments on commit add28f4

Please sign in to comment.