Property 'catch' does not exist on type 'PromiseLike' #13947
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: nightly today
Code
Expected behavior:
Compile without error. Example taken from https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#Checking_that_the_fetch_was_successful
Actual behavior:
Errors:
Note: The whatwg definitions from definitely typed worked fine. The version pulling into lib.d.ts
lib:['es6']
is broken slightly as shown 🌹The text was updated successfully, but these errors were encountered: