Skip to content

Glossary: TypeScript Basics

function type

Also written: function types

The type of a function, written like an arrow function with types in place of code, such as `(bags: number) => string`. The parameter names are just labels.

Where the book teaches it

Related terms

callbackreturn type