Skip to content

Glossary: TypeScript Basics

optional (property or parameter)

Also written: optional property, optional parameter, ?

A `?` after a property or parameter name means it may be missing, so reading it might give `undefined`. TypeScript then makes you handle that case.

Where the book teaches it

Related terms

union typedefault parameter