Loading topic
string | undefined. This chapter explains how to declare properties that may be missing, how to read them safely, and how compiler settings change their meaning.2 min read?.2 min readundefined. Those states often look similar when you read an object, but they can mean different thin2 min readreadonly property modifier and the guarantees it gives during type checking.2 min readreadonly fields: properties that TypeScript allows you to assign only during initialization or construction.2 min readstring | undefined. This chapter focuses on mapped types: types that transform every property of another type.2 min readas const, which preserves literal values and adds readonly types to literal data.2 min read