Skip to main content

Type the async return, not the await

Choose the correct return type for an async TypeScript function.

typescript-basics5 min read

loadUser fetches a profile and returns either a cleaned User or null when the API returns 404.

Read the full lesson

Sign up free: one personalized lesson every day, matched to your role and goals.

← Back to library

Contact us