We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b191bad commit 91cbfd0Copy full SHA for 91cbfd0
docs/object.md
@@ -228,7 +228,7 @@ let lastName = user.lastName ?? 'Bar';
228
TypeScript 提供编译设置`ExactOptionalPropertyTypes`,只要同时打开这个设置和`strictNullChecks`,可选属性就不能设为`undefined`。
229
230
```typescript
231
-// 打开 ExactOptionsPropertyTypes 和 strictNullChecks
+// 打开 ExactOptionalPropertyTypes 和 strictNullChecks
232
const obj: {
233
x: number;
234
y?: number;
0 commit comments