-
Notifications
You must be signed in to change notification settings - Fork 143
translate TS for JS Programmers(Defining Types) #141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
TypeScript은 JavaScript 위에 레이어로서 자리잡고 있는데, JavaScript의 기능들을 제공하면서 그 위에 자체 레이어를 추가합니다. | ||
이 레이어가 TypeScript 타입 시스템입니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TypeScript은 JavaScript 위에 레이어로서 자리잡고 있는데, JavaScript의 기능들을 제공하면서 그 위에 자체 레이어를 추가합니다. | |
이 레이어가 TypeScript 타입 시스템입니다. | |
TypeScript은 JavaScript 위에 레이어로서 자리잡고 있는데, JavaScript의 기능들을 제공하면서 그 위에 자체 레이어를 추가합니다. 이 레이어가 TypeScript 타입 시스템입니다. |
원문과의 라인 수를 맞춰주세요 :)
|
||
## Types by Inference | ||
## 타입 추론 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 타입 추론 | |
## 타입 추론 (Types by Inference) |
제목은 번역 (원문)
형식 입니다!
|
||
## Defining Types | ||
## 타입 정의하기 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 타입 정의하기 | |
## 타입 정의하기 (Defining Types) |
JavaScript가 동작하는 방식을 이해함으로써 TypeScript는 JavaScript 코드를 받아들이면서 타입을 가지는 타입 시스템을 구축할 수 있습니다. | ||
이는 코드에서 타입을 명시하기 위해 추가로 문자를 사용할 필요가 없는 타입 시스템을 제공합니다. 이것이 위의 예제에서 TypeScript가 `helloWorld`가 `string`임을 알게 되는 방식입니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JavaScript가 동작하는 방식을 이해함으로써 TypeScript는 JavaScript 코드를 받아들이면서 타입을 가지는 타입 시스템을 구축할 수 있습니다. | |
이는 코드에서 타입을 명시하기 위해 추가로 문자를 사용할 필요가 없는 타입 시스템을 제공합니다. 이것이 위의 예제에서 TypeScript가 `helloWorld`가 `string`임을 알게 되는 방식입니다. | |
JavaScript가 동작하는 방식을 이해함으로써 TypeScript는 JavaScript 코드를 받아들이면서 타입을 가지는 타입 시스템을 구축할 수 있습니다. 이는 코드에서 타입을 명시하기 위해 추가로 문자를 사용할 필요가 없는 타입 시스템을 제공합니다. 이것이 위의 예제에서 TypeScript가 `helloWorld`가 `string`임을 알게 되는 방식입니다. |
여기도 원문에서는 한 라인이네요!
* 1차 번역 * 원문 삭제, 더 매끄럽게 번역 * 맞춤법 수정 * Babel with typescript issue118 (typescript-kr#138) * 영어 1차 번역 * 원문 삭제, 더 매끄러운 번역체로 수정 * 매끄러운 번역체로 추가 수정 * 1차 수정 * 2차 수정 * 3차 수정 * docs: add seohyun0120 as a contributor (typescript-kr#140) * docs: update README.md [skip ci] * docs: update .all-contributorsrc [skip ci] Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com> * 1차 번역 * 원문 삭제, 더 매끄럽게 번역 * 맞춤법 수정 * ts twoslash가 제대로 작동하지 않는 문제 수정 (twoslash 삭제) * 2차 수정 * contributors 정보 수정 Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
@@ -5,35 +5,38 @@ permalink: /docs/handbook/typescript-in-5-minutes.html | |||
oneline: Learn how TypeScript extends JavaScript | |||
--- | |||
|
|||
The relationship between TypeScript and JavaScript is rather unique among modern programming languages. | |||
TypeScript sits as a layer on-top of JavaScript, offering the features of JavaScript and then adds its own layer on top of that. This layer is the TypeScript type system. | |||
현대 프로그래밍 언어에서 TypeScript와 JavaScript 사이의 관계는 다소 독특합니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
현대 프로그래밍 언어에서 TypeScript와 JavaScript 사이의 관계는 다소 독특합니다. | |
현대 프로그래밍 언어에서 TypeScript와 JavaScript의 관계는 다소 독특합니다. |
[제안]
|
||
JavaScript already has a set of language primitives like `string`, `number`, `object`, `undefined` etc, however there are no ahead-of-time checks that these are consistently assigned across your whole codebase. TypeScript acts as that layer. | ||
JavaScript는 이미 `string`, `number`, `object`, `undefined` 같은 원시 타입을 가지고 있지만, 이것이 전체 코드베이스에 일관되게 할당되었는지는 미리 확인해주지 않습니다. TypeScript는 이를 위한 레이어로 동작합니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JavaScript는 이미 `string`, `number`, `object`, `undefined` 같은 원시 타입을 가지고 있지만, 이것이 전체 코드베이스에 일관되게 할당되었는지는 미리 확인해주지 않습니다. TypeScript는 이를 위한 레이어로 동작합니다. | |
JavaScript는 이미 `string`, `number`, `object`, `undefined` 같은 원시 타입을 가지고 있지만, 전체 코드베이스에 일관되게 할당되었는지는 미리 확인해 주지 않습니다. TypeScript는 이 레이어로써 동작합니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다 👍
@all-contributors please add @ssMinji for translation |
I've put up a pull request to add @ssMinji! 🎉 |
issue #112
TS for JS Programmers 의 Defining Types 부분까지 번역하였습니다.
문서를 단순히 읽을 때와 이를 실제로 번역해 문서화하는 것이 느낌이 많이 다르네요..!
번역 과정에서 의역 혹은 오역이 있는지 확인해주시면 감사하겠습니다 :)