seeksvc Search tools, solutions, libraries…
Home / Developer Resources / Other / TypeScript 3.7
typescriptlang.org icon
TypeScript 3.7 Open source · Apache-2.0
TypeScript: Documentation - TypeScript 3.7
Visit website ↗
Introduction
## TypeScript 3.7
TypeScript: Documentation - TypeScript 3.7.
### Optional Chaining
Optional 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 like `let x = foo?.bar.baz();` this is a way of saying that when `foo` is defined, `foo.bar.baz()` will be computed; but when `foo` is `null` or `undefined`, stop what we’re doing and just return `undefined`.
`?.` only checks for whether the value on the left of it is `null` or `undefined` - not any of the subsequent properties.
You might find yourself using `?.` to replace a lot of code that performs repetitive nullish checks using the `&&` operator. Keep in mind that `?.` acts differently than those `&&` operations since `&&` will act specially on “falsy” values (e.g. the empty string, `0`, `NaN`, and, well, `false`), but this is an intentional feature of the construct. It doesn’t short-circuit on valid data like `0` or empty strings.
Optional chaining also includes two other operations. First there’s the optional element access which acts similarly to optional property accesses, but allows us to access non-identifier properties (e.g. arbitrary strings, numbers, and symbols). There’s also optional call, which allows us to conditionally call expressions if they’re not `null` or `undefined`.
The “short-circuiting” behavior that optional chains have is limited property accesses, calls, element accesses - it doesn’t expand any further out from these expressions.
### Nullish Coalescing
The nullish coalescing operator is another upcoming ECMAScript feature that goes hand-in-hand with optional chaining, and which our team has been involved with championing in TC39.
Optional chainingNullish coalescingOptional callsElement accessTypeScript docsECMAScript featurestsconfigBuild tools
Screenshots
TypeScript 3.7 · 首页
Deployment
官方下载页面
适合从 TypeScript 官方网站获取 TypeScript 3.7 相关版本与安装指引。
官方 Playground
适合无需本地安装、直接在浏览器中试用 TypeScript 3.7 语法特性与示例。
Details
Type Open-source software
License Apache-2.0
Last verified 2026-07-18
Ad slot 300 × 250 Ad
About the data
Stars / commit times sync automatically from the GitHub API; pricing and features are human-verified.
seeksvc
一个可查询的宝藏收藏库:开源与闭源软件、开发库与完整解决方案。
© 2026 seeksvc · Manually verified, continuously updated