Glossary: TypeScript Beyond the Basics
fetch
Also written: fetch(url)
A built-in function that sends an HTTP request and returns a `Promise<Response>`. It doesn't throw for 404 or 400 replies, so you must check `res.ok`.
Glossary: TypeScript Beyond the Basics
Also written: fetch(url)
A built-in function that sends an HTTP request and returns a `Promise<Response>`. It doesn't throw for 404 or 400 replies, so you must check `res.ok`.