You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeScript developers are often faced with a dilemma: we want to ensure that some expression *matches* some type, but also want to keep the *most specific* type of that expression for inference purposes.
10
+
TypeScript 개발자들은 종종 딜레마에 직면합니다. 우리는 일부 표현식이 타입과 *일치*하는지 확인하고 싶지만, 추론을 위해 표현식의 *가장 구체적인 타입*을 유지하고 싶을 때가 있습니다.
11
11
12
-
For example:
12
+
예를 들어
13
13
14
14
```ts
15
-
//Each property can be a string or an RGB tuple.
15
+
//각 속성은 문자열 또는 RGB 튜플일 수 있습니다.
16
16
const palette = {
17
17
red: [255, 0, 0],
18
18
green: "#00ff00",
19
19
bleu: [0, 0, 255]
20
-
// ^^^^ sacrebleu - we've made a typo!
20
+
// ^^^^ sacrebleu - 오타를 냈습니다!
21
21
};
22
22
23
-
//We want to be able to use array methods on 'red'...
For more examples, you can see the [issue proposing this](https://github.com/microsoft/TypeScript/issues/47920)and [the implementing pull request](https://github.com/microsoft/TypeScript/pull/46827).
107
-
We'd like to thank [Oleksandr Tarasiuk](https://github.com/a-tarasyuk) who implemented and iterated on this feature with us.
106
+
더 많은 예시를 보고 싶다면, [제안한 이슈](https://github.com/microsoft/TypeScript/issues/47920)와 [이를 구현한 pull request](https://github.com/microsoft/TypeScript/pull/46827)를 확인하세요.
107
+
우리와 함께 이 기능을 구현한 [Oleksandr Tarasiuk](https://github.com/a-tarasyuk)에게 감사드립니다.
108
108
109
109
## Unlisted Property Narrowing with the `in` Operator
0 commit comments