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 bb53c01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
yarn.lock
.vscode
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 bb53c01

Please # to comment.