Commit 0dbb7fd
fix(types): change the type guard on isCancel (#5595)
* fix(types): change the type guard on isCancel
… to `CanceledError<any>`. This makes more sense as it reflects what
`isCancel` is actually doing. In fact, if I'm not mistaken, the
`Cancel` type is no longer in the project. It got removed in
7f12366. It should probably also be removed from the types.
* Parameterize `CanceledError` in `isCancel`
Thanks to @samavati for the suggestion.
Co-authored-by: Ehsan Samavati <[email protected]>
---------
Co-authored-by: Ehsan Samavati <[email protected]>
Co-authored-by: Jay <[email protected]>1 parent 5a079ca commit 0dbb7fd
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| 446 | + | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
| |||
543 | 544 | | |
544 | 545 | | |
545 | 546 | | |
546 | | - | |
| 547 | + | |
547 | 548 | | |
548 | 549 | | |
549 | 550 | | |
| |||
0 commit comments