Skip to content

Glossary: TypeScript Beyond the Basics

exactOptionalPropertyTypes

A tsconfig option under which an optional property `carrier?: string` means "missing, or a string", but not `undefined`. Add `| undefined` to allow that.

Where the book teaches it

Related terms

strict