TypeScript 3.7 · TypeScript
ARANK

Optional ChainingNullish CoalescingAssertion FunctionsBetter Support for never-Returning Functions(More) Recursive Type Aliases--declaration and --allowJsThe useDefineForClassFields Flag and The declare Property ModifierBuild-Free Editing with Project ReferencesUncalled Function Checks// @ts-nocheck in TypeScript FilesSemicolon Formatter OptionBreaking ChangesDOM ChangesFunction Truthy ChecksLocal and Imported Type Declarations Now ConflictAPI ChangesOptional Chaining #PlaygroundOptional chaining is issue #16 on our issue tracker. For context, there have been over 23,000 issues on the TypeScript issue tracker since then.At its core, optional chaining lets us write code where TypeScript can immediately stop running some expressions if we run into a null or undefined. The star of the show in optional chaining is the new ?. operator for optional property accesses. When we write code likelet x = foo?.bar.baz(); this is a way of saying that when foo is defined, foo.bar.baz() will be comput…

typescriptlang.org
Related Topics: TypeScript