From a4c140bf9c46ce249d873358d8953a757035250c Mon Sep 17 00:00:00 2001 From: JeGwan Date: Mon, 12 Dec 2022 23:51:03 +0900 Subject: [PATCH 01/10] Translate 4.9 release page - lib.d.ts part --- docs/documentation/ko/release-notes/TypeScript 4.9.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/documentation/ko/release-notes/TypeScript 4.9.md b/docs/documentation/ko/release-notes/TypeScript 4.9.md index f62ebcd1..60c45e06 100644 --- a/docs/documentation/ko/release-notes/TypeScript 4.9.md +++ b/docs/documentation/ko/release-notes/TypeScript 4.9.md @@ -426,12 +426,12 @@ You can read up more on these optimizations on their respective pull requests: * [`visitEachChild` as a jump-table](https://github.com/microsoft/TypeScript/pull/50266) * [Optimize substitition types](https://github.com/microsoft/TypeScript/pull/50397) -## Correctness Fixes and Breaking Changes +## 수정 및 변경사항 -### `lib.d.ts` Updates +### `lib.d.ts` 업데이트 -While TypeScript strives to avoid major breaks, even small changes in the built-in libraries can cause issues. -We don't expect major breaks as a result of DOM and `lib.d.ts` updates, but there may be some small ones. +TypeScript 은 major break 는 피하기위해 노력하지만, 내장 라이브러리의 아주 작은 변경조차도 문제가 될 수 있습니다. +DOM과 `lib.d.ts` 업데이트의 결과로 major break 는 일어나지 않을 것으로 기대하지만, 종종 작은 문제가 생길 수도 있습니다. ### Better Types for `Promise.resolve` From 5812dd306c2a2b018f6caa46b0aa637ffb2ae73e Mon Sep 17 00:00:00 2001 From: JeGwan Date: Mon, 12 Dec 2022 23:52:09 +0900 Subject: [PATCH 02/10] Translate 4.9 release page - Promise.resolve part --- docs/documentation/ko/release-notes/TypeScript 4.9.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/documentation/ko/release-notes/TypeScript 4.9.md b/docs/documentation/ko/release-notes/TypeScript 4.9.md index 60c45e06..37a7c553 100644 --- a/docs/documentation/ko/release-notes/TypeScript 4.9.md +++ b/docs/documentation/ko/release-notes/TypeScript 4.9.md @@ -433,11 +433,11 @@ You can read up more on these optimizations on their respective pull requests: TypeScript 은 major break 는 피하기위해 노력하지만, 내장 라이브러리의 아주 작은 변경조차도 문제가 될 수 있습니다. DOM과 `lib.d.ts` 업데이트의 결과로 major break 는 일어나지 않을 것으로 기대하지만, 종종 작은 문제가 생길 수도 있습니다. -### Better Types for `Promise.resolve` +### `Promise.resolve` 를 위한 보다 나은 타입들 -`Promise.resolve` now uses the `Awaited` type to unwrap Promise-like types passed to it. -This means that it more often returns the right `Promise` type, but that improved type can break existing code if it was expecting `any` or `unknown` instead of a `Promise`. -For more information, [see the original change](https://github.com/microsoft/TypeScript/pull/33074). +`Promise.resolve` 는 현재 이것으로 전달되는 Promise-like 타입을 멋겨내기 위해 `Awaited` 타입을 사용하고 있습니다. +이는 종종 더 정확한 `Promise` 타입을 반환하지만, 이 개선된 타입이 `Promise` 대신 `any` 또는 `unknown` 타입을 기대하고 있던 기존 코드를 깨버릴 수도 있습니다. +더 자세한 정보는 [original change](https://github.com/microsoft/TypeScript/pull/33074)를 참고하세요. ### JavaScript Emit No Longer Elides Imports From 7f384de789a513096f63156892bf410e4474eaae Mon Sep 17 00:00:00 2001 From: JeGwan Date: Mon, 12 Dec 2022 23:53:06 +0900 Subject: [PATCH 03/10] Translate 4.9 release page - JavaScript Emit No Longer Elides Imports part --- .../documentation/ko/release-notes/TypeScript 4.9.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/documentation/ko/release-notes/TypeScript 4.9.md b/docs/documentation/ko/release-notes/TypeScript 4.9.md index 37a7c553..9bf1a9b2 100644 --- a/docs/documentation/ko/release-notes/TypeScript 4.9.md +++ b/docs/documentation/ko/release-notes/TypeScript 4.9.md @@ -439,13 +439,13 @@ DOM과 `lib.d.ts` 업데이트의 결과로 major break 는 일어나지 않을 이는 종종 더 정확한 `Promise` 타입을 반환하지만, 이 개선된 타입이 `Promise` 대신 `any` 또는 `unknown` 타입을 기대하고 있던 기존 코드를 깨버릴 수도 있습니다. 더 자세한 정보는 [original change](https://github.com/microsoft/TypeScript/pull/33074)를 참고하세요. -### JavaScript Emit No Longer Elides Imports +### JavaScript 내보내기(Emit) 에서 더이상 Import 를 생략하지 않습니다 -When TypeScript first supported type-checking and compilation for JavaScript, it accidentally supported a feature called import elision. -In short, if an import is not used as a value, or the compiler can detect that the import doesn't refer to a value at runtime, the compiler will drop the import during emit. +TypeScript가 JavaScript에 대한 유형 검사 및 컴파일을 처음 지원했을 때 실수로 import 생략이라는 기능을 지원했었습니다. +짧게 말하면, 만약 import 한 것이 값으로 쓰이지 않거나 런타임에서의 값을 참조하지 않는 다면 컴파일러는 내보내기 과정에서 해당 import를 제거하는 기능입니다. -This behavior was questionable, especially the detection of whether the import doesn't refer to a value, since it means that TypeScript has to trust sometimes-inaccurate declaration files. -In turn, TypeScript now preserves imports in JavaScript files. +이러한 동작은 특히 import가 값을 참조하는지 감지할 때 종종 TypeScript가 부정확한 선언 파일을 신뢰해야한다는 점에서 아리송했습니다. +이제 TypeScript는 JavaScript 파일 내의 import를 유지합니다. ```js // Input: @@ -467,7 +467,7 @@ import { someValue, SomeClass } from "some-module"; let val = someValue; ``` -More information is available at [the implementing change](https://github.com/microsoft/TypeScript/pull/50404). +더 많은 정보는 [implementing change](https://github.com/microsoft/TypeScript/pull/50404)을 참고하세요. ### `exports` is Prioritized Over `typesVersions` From dfdd587977ae13c9b1efe0f02e20a0e8fef65223 Mon Sep 17 00:00:00 2001 From: JeGwan Date: Mon, 12 Dec 2022 23:53:40 +0900 Subject: [PATCH 04/10] Translate 4.9 release page - exports is prioritized over typesVersions part --- docs/documentation/ko/release-notes/TypeScript 4.9.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/documentation/ko/release-notes/TypeScript 4.9.md b/docs/documentation/ko/release-notes/TypeScript 4.9.md index 9bf1a9b2..aa23eb72 100644 --- a/docs/documentation/ko/release-notes/TypeScript 4.9.md +++ b/docs/documentation/ko/release-notes/TypeScript 4.9.md @@ -469,10 +469,10 @@ let val = someValue; 더 많은 정보는 [implementing change](https://github.com/microsoft/TypeScript/pull/50404)을 참고하세요. -### `exports` is Prioritized Over `typesVersions` +### `exports`가 `typesVersions`보다 우선 순위가 높습니다. -Previously, TypeScript incorrectly prioritized the `typesVersions` field over the `exports` field when resolving through a `package.json` under `--moduleResolution node16`. -If this change impacts your library, you may need to add `types@` version selectors in your `package.json`'s `exports` field. +이전에는 TypeScript가 `--moduleResolution node16` 조건의 `package.json`을 통해 리졸브할 때 `exports` 필드보다 `typesVersions` 필드를 우선했습니다. +이 변경 사항이 여러분의 라이브러리에 영향을 미치는 경우 `package.json`의 `exports` 필드에 `types@` version selector를 추가하면 됩니다. ```diff { @@ -492,7 +492,7 @@ If this change impacts your library, you may need to add `types@` version select } ``` -For more information, [see this pull request](https://github.com/microsoft/TypeScript/pull/50890). +더 자세한 정보는 이 [pull request](https://github.com/microsoft/TypeScript/pull/50890)를 참고하세요. ## `substitute` Replaced With `constraint` on `SubstitutionType`s From 2b999972ca8f20a101ca082fdd1ddb30401ca812 Mon Sep 17 00:00:00 2001 From: JeGwan Date: Mon, 12 Dec 2022 23:54:04 +0900 Subject: [PATCH 05/10] Translate 4.9 release page - SubstitutionType part --- docs/documentation/ko/release-notes/TypeScript 4.9.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/documentation/ko/release-notes/TypeScript 4.9.md b/docs/documentation/ko/release-notes/TypeScript 4.9.md index aa23eb72..df9648d2 100644 --- a/docs/documentation/ko/release-notes/TypeScript 4.9.md +++ b/docs/documentation/ko/release-notes/TypeScript 4.9.md @@ -494,8 +494,8 @@ let val = someValue; 더 자세한 정보는 이 [pull request](https://github.com/microsoft/TypeScript/pull/50890)를 참고하세요. -## `substitute` Replaced With `constraint` on `SubstitutionType`s +## `SubstitutionType`에서 `substitute`가 `constraint`로 대체됩니다 -As part of an optimization on substitution types, `SubstitutionType` objects no longer contain the `substitute` property representing the effective substitution (usually an intersection of the base type and the implicit constraint) - instead, they just contain the `constraint` property. +substitution 타입의 최적화의 일부로 `SubstitutionType` 객체는 effective substitution을 나타내는 (일반적으로 base type과 암시적 constraint의 intersection) `substitution` 속성을 더 이상 포함하지 않습니다. 대신 `constraint` 속성만 포함합니다. -For more details, [read more on the original pull request](https://github.com/microsoft/TypeScript/pull/50397). \ No newline at end of file +더 자세히 보려면 원본 [pull request](https://github.com/microsoft/TypeScript/pull/50397)에서 읽어보세요. \ No newline at end of file From 62828a6fa83640379f75ad2b1dbc6c777a6e247a Mon Sep 17 00:00:00 2001 From: Je-Gwan O Date: Fri, 16 Dec 2022 11:46:03 +0900 Subject: [PATCH 06/10] Fix typo Co-authored-by: YeonJuan --- docs/documentation/ko/release-notes/TypeScript 4.9.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/documentation/ko/release-notes/TypeScript 4.9.md b/docs/documentation/ko/release-notes/TypeScript 4.9.md index df9648d2..a88aad8b 100644 --- a/docs/documentation/ko/release-notes/TypeScript 4.9.md +++ b/docs/documentation/ko/release-notes/TypeScript 4.9.md @@ -435,7 +435,7 @@ DOM과 `lib.d.ts` 업데이트의 결과로 major break 는 일어나지 않을 ### `Promise.resolve` 를 위한 보다 나은 타입들 -`Promise.resolve` 는 현재 이것으로 전달되는 Promise-like 타입을 멋겨내기 위해 `Awaited` 타입을 사용하고 있습니다. +현재 `Promise.resolve`는 이것으로 전달되는 Promise-like 타입을 벗겨내기 위해 `Awaited` 타입을 사용합니다. 이는 종종 더 정확한 `Promise` 타입을 반환하지만, 이 개선된 타입이 `Promise` 대신 `any` 또는 `unknown` 타입을 기대하고 있던 기존 코드를 깨버릴 수도 있습니다. 더 자세한 정보는 [original change](https://github.com/microsoft/TypeScript/pull/33074)를 참고하세요. From d0e44fff0015d9e33d45a1ed749044b36f6e2eb4 Mon Sep 17 00:00:00 2001 From: Je-Gwan O Date: Fri, 16 Dec 2022 11:46:21 +0900 Subject: [PATCH 07/10] Fix typo Co-authored-by: YeonJuan --- docs/documentation/ko/release-notes/TypeScript 4.9.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/documentation/ko/release-notes/TypeScript 4.9.md b/docs/documentation/ko/release-notes/TypeScript 4.9.md index a88aad8b..6f66ae3b 100644 --- a/docs/documentation/ko/release-notes/TypeScript 4.9.md +++ b/docs/documentation/ko/release-notes/TypeScript 4.9.md @@ -441,7 +441,7 @@ DOM과 `lib.d.ts` 업데이트의 결과로 major break 는 일어나지 않을 ### JavaScript 내보내기(Emit) 에서 더이상 Import 를 생략하지 않습니다 -TypeScript가 JavaScript에 대한 유형 검사 및 컴파일을 처음 지원했을 때 실수로 import 생략이라는 기능을 지원했었습니다. +TypeScript가 JavaScript에 대한 타입 검사 및 컴파일을 처음 지원했을 때 실수로 import 생략이라는 기능을 지원했었습니다. 짧게 말하면, 만약 import 한 것이 값으로 쓰이지 않거나 런타임에서의 값을 참조하지 않는 다면 컴파일러는 내보내기 과정에서 해당 import를 제거하는 기능입니다. 이러한 동작은 특히 import가 값을 참조하는지 감지할 때 종종 TypeScript가 부정확한 선언 파일을 신뢰해야한다는 점에서 아리송했습니다. From a81dbcdef0e8af84b9f09df313ddd2a91e19dcb0 Mon Sep 17 00:00:00 2001 From: Je-Gwan O Date: Fri, 16 Dec 2022 11:46:48 +0900 Subject: [PATCH 08/10] Fix typo Co-authored-by: YeonJuan --- docs/documentation/ko/release-notes/TypeScript 4.9.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/documentation/ko/release-notes/TypeScript 4.9.md b/docs/documentation/ko/release-notes/TypeScript 4.9.md index 6f66ae3b..b2f574c2 100644 --- a/docs/documentation/ko/release-notes/TypeScript 4.9.md +++ b/docs/documentation/ko/release-notes/TypeScript 4.9.md @@ -442,7 +442,7 @@ DOM과 `lib.d.ts` 업데이트의 결과로 major break 는 일어나지 않을 ### JavaScript 내보내기(Emit) 에서 더이상 Import 를 생략하지 않습니다 TypeScript가 JavaScript에 대한 타입 검사 및 컴파일을 처음 지원했을 때 실수로 import 생략이라는 기능을 지원했었습니다. -짧게 말하면, 만약 import 한 것이 값으로 쓰이지 않거나 런타임에서의 값을 참조하지 않는 다면 컴파일러는 내보내기 과정에서 해당 import를 제거하는 기능입니다. +짧게 말하면, 만약 import 한 것이 값으로 쓰이지 않거나 런타임에서의 값을 참조하지 않는다면 컴파일러는 내보내기 과정에서 해당 import를 제거하는 기능입니다. 이러한 동작은 특히 import가 값을 참조하는지 감지할 때 종종 TypeScript가 부정확한 선언 파일을 신뢰해야한다는 점에서 아리송했습니다. 이제 TypeScript는 JavaScript 파일 내의 import를 유지합니다. From 3b94e737d009849299f1d4d817e7c6edf5f6b957 Mon Sep 17 00:00:00 2001 From: Je-Gwan O Date: Fri, 16 Dec 2022 11:46:58 +0900 Subject: [PATCH 09/10] Fix typo Co-authored-by: YeonJuan --- docs/documentation/ko/release-notes/TypeScript 4.9.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/documentation/ko/release-notes/TypeScript 4.9.md b/docs/documentation/ko/release-notes/TypeScript 4.9.md index b2f574c2..aa8c67e3 100644 --- a/docs/documentation/ko/release-notes/TypeScript 4.9.md +++ b/docs/documentation/ko/release-notes/TypeScript 4.9.md @@ -430,7 +430,7 @@ You can read up more on these optimizations on their respective pull requests: ### `lib.d.ts` 업데이트 -TypeScript 은 major break 는 피하기위해 노력하지만, 내장 라이브러리의 아주 작은 변경조차도 문제가 될 수 있습니다. +TypeScript는 major break는 피하기 위해 노력하지만, 내장 라이브러리의 아주 작은 변경조차도 문제가 될 수 있습니다. DOM과 `lib.d.ts` 업데이트의 결과로 major break 는 일어나지 않을 것으로 기대하지만, 종종 작은 문제가 생길 수도 있습니다. ### `Promise.resolve` 를 위한 보다 나은 타입들 From 85c81cc361a365f95b8680bcbb108b729a46f541 Mon Sep 17 00:00:00 2001 From: Je-Gwan O Date: Fri, 16 Dec 2022 11:47:07 +0900 Subject: [PATCH 10/10] Fix typo Co-authored-by: YeonJuan --- docs/documentation/ko/release-notes/TypeScript 4.9.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/documentation/ko/release-notes/TypeScript 4.9.md b/docs/documentation/ko/release-notes/TypeScript 4.9.md index aa8c67e3..43792570 100644 --- a/docs/documentation/ko/release-notes/TypeScript 4.9.md +++ b/docs/documentation/ko/release-notes/TypeScript 4.9.md @@ -444,7 +444,7 @@ DOM과 `lib.d.ts` 업데이트의 결과로 major break 는 일어나지 않을 TypeScript가 JavaScript에 대한 타입 검사 및 컴파일을 처음 지원했을 때 실수로 import 생략이라는 기능을 지원했었습니다. 짧게 말하면, 만약 import 한 것이 값으로 쓰이지 않거나 런타임에서의 값을 참조하지 않는다면 컴파일러는 내보내기 과정에서 해당 import를 제거하는 기능입니다. -이러한 동작은 특히 import가 값을 참조하는지 감지할 때 종종 TypeScript가 부정확한 선언 파일을 신뢰해야한다는 점에서 아리송했습니다. +이러한 동작은 특히 import가 값을 참조하는지 감지할 때 종종 TypeScript가 부정확한 선언 파일을 신뢰해야 한다는 점에서 아리송했습니다. 이제 TypeScript는 JavaScript 파일 내의 import를 유지합니다. ```js