Skip to content

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`.

Where the book teaches it

Related terms

ResponseRequestInit