Skip to content

Commit

Permalink
Fix TypeScript type for the cancel method (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkesters authored May 2, 2021
1 parent 7863976 commit c80c3ee
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 c80c3ee

Please sign in to comment.