Skip to content

Commit

Permalink
Changed the typing for the cancel function to compat with bluebird
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Kesterson committed Apr 30, 2021
1 parent 7863976 commit 65a549e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ declare class PCancelable<ValueType> extends Promise<ValueType> {
@param reason - The cancellation reason to reject the promise with.
*/
cancel(reason?: string): void;
cancel: (reason?: string) => void;

/**
Rejection reason when `.cancel()` is called.
Expand Down

0 comments on commit 65a549e

Please # to comment.