Skip to content

Commit a15e8e7

Browse files
cadenzahyeonjuan
andauthored
Apply suggestions from code review
Co-authored-by: YeonJuan <[email protected]>
1 parent bcd9772 commit a15e8e7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/documentation/ko/handbook-v2/Everyday Types.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ _좁히기_란 TypeScript가 코드 구조를 바탕으로 어떤 값을 보다
267267
```ts twoslash
268268
function printId(id: number | string) {
269269
if (typeof id === "string") {
270-
// 이 분기에서 id는 `string` 타입을 가집니다
270+
// 이 분기에서 id는 'string' 타입을 가집니다
271+
271272
console.log(id.toUpperCase());
272273
} else {
273274
// 여기에서 id는 'number' 타입을 가집니다
@@ -658,7 +659,8 @@ function doSomething(x: string | undefined) {
658659
}
659660
```
660661

661-
### Null 아님 단언 연산자 (접두사 `!`)
662+
### Null 아님 단언 연산자 (접미사 `!`)
663+
662664

663665
TypeScript에서는 명시적인 검사를 하지 않고도 타입에서 `null``undefined`를 제거할 수 있는 특별한 구문을 제공합니다.
664666
표현식 뒤에 `!`를 작성하면 해당 값이 `null` 또는 `undefined`가 아니라고 타입 단언하는 것입니다.

0 commit comments

Comments
 (0)