Loading topic
tsconfig.json. You should also know that JavaScript has both null and undefined.2 min readtsconfig.json. This chapter focuses on the compiler option that makes missing values visible in your types.3 min readtsconfig.json. This chapter also assumes strictNullChecks is enabled. With this option, TypeScript treats missing values as part of the type system instead of allowing them everywhere.2 min readnull and undefined. This chapter assumes strictNullChecks is enabled.2 min readtsconfig.json. It also assumes strictNullChecks is enabled. With this option, TypeScript treats null and undefined as real parts of a type. Before using a value, your code must prove that the value is present.2 min readnull and undefined. This chapter focuses on how optional chaining safely reads values that may be missing.2 min readstrictNullChecks enabled. The key idea is that ?? handles missing values, while || handles all falsy values.1 min readstrictNullChecks. This chapter focuses on values whose types include null or undefined.2 min readnull and undefined. This chapter assumes strictNullChecks is enabled.2 min readstrictNullChecks is enabled. The examples focus on the related option strictPropertyInitialization, which checks that class properties receive values before an object can2 min readstrictNullChecks is enabled and you already know TypeScript types, unions, interfaces, and basic tsconfig.json settings. At an API boundary, a value may be missing even when the value you want has a useful type. TypeScript makes that possibility visible so you handle it before using the v2 min readstrictNullChecks. These options make TypeScript more precise about two different kinds of absence: a value missing at an index, and a property missing from an object.2 min readnull and undefined, and the purpose of tsconfig.json.2 min read