Skip to content

Commit 54799df

Browse files
authored
Merge pull request #132 from wjw020206/patch-1
docs(object): fixed typo
2 parents b191bad + 91cbfd0 commit 54799df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/object.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ let lastName = user.lastName ?? 'Bar';
228228
TypeScript 提供编译设置`ExactOptionalPropertyTypes`,只要同时打开这个设置和`strictNullChecks`,可选属性就不能设为`undefined`
229229

230230
```typescript
231-
// 打开 ExactOptionsPropertyTypes 和 strictNullChecks
231+
// 打开 ExactOptionalPropertyTypes 和 strictNullChecks
232232
const obj: {
233233
x: number;
234234
y?: number;

0 commit comments

Comments
 (0)