Skip to content

#6 Translate Automatic Type Acquisition to korean #115

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// 자동 타입 취득은 TypeScript가 npm 내부에 있는
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// 자동 타입 취득은 TypeScript가 npm 내부에 있는
// 자동 타입 획득은 TypeScript가 npm 내부에 있는

[제안]
취득 vs 획득

확 끌리는 단어가 없네요 ㅎㅎ�

// @types에서 타입 정의를 가져와 JavaScript 사용자에게
// 더 나은 사용자 경험을 제공하기 위한 방법을 의미하는 용어입니다.

// 이제 playground는 TypeScript에 내장된
// 타입 취득 처리와 비슷한(약간 더 제한적이지만)
// 버전이 있습니다.

// 코드에 import를 만들어서 사용할 수 있습니다.
// 자동 타입 취득은 DefinitelyTyped에서 @types를 통하거나
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// 자동 타입 취득은 DefinitelyTyped에서 @types를 통하거나
// 자동 타입 취득은 DefinitelyTyped에서 @types를 이용하거나

// 자체적으로 의존성 내부에 있는 d.ts 파일을 이용하여 동작합니다.

import { danger } from "danger";

// 내장된 타입에서 연관된 JSDoc을 보기 위해
// 아래의 식별자를 강조하세요:

danger.github;

// 이건 연속적으로 변화하는 의존성도 처리하므로
// 이 경우 danger는 @octokit/rest에도 의존합니다.

danger.github.api.pulls.createComment();

// 타입 취득은 노드의 내장된 모듈도 고려하며
// 그런 의존성을 사용할 때
// 노드의 타입 선언을 가져옵니다.
// 다운로드 할 타입이 많이 있으니
// 다른 것보다 약간 더 오래 걸리는 경향이 있다는 것을 알아두세요!

import { readFileSync } from "fs";

const inputPath = "my/path/file.ts";
readFileSync(inputPath, "utf8");