Skip to content

Glossary: TypeScript Basics

return type

Also written: return types

The type a function returns, written after its parameters, like `: number`. TypeScript infers it, but writing it makes a promise that `tsc` enforces.

Where the book teaches it

Related terms

voidnevertype inference