Skip to content
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

[ja translation] TypeScript-Website/packages/documentation/copy/en/javascript/*.md #1478

Merged
merged 5 commits into from
Jan 21, 2021

Conversation

uraway
Copy link
Contributor

@uraway uraway commented Jan 8, 2021

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2021

Thanks for the PR!

This section of the codebase is owned by @sasurau4, @Quramy, @Naturalclar, and @Takepepe - if they write a comment saying "LGTM" then it will be merged.

Copy link
Contributor

@sasurau4 sasurau4 left a comment

Choose a reason for hiding this comment

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

packages/documentation/copy/ja/javascript/Creating DTS files From JS.mdだけ見ました
他のは後日見ます 🙏

Copy link
Contributor

@sasurau4 sasurau4 left a comment

Choose a reason for hiding this comment

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

Review遅くなりました 🙏
ありがとうございます 👍

// パラメータは様々な構文形式で宣言することができます
/**
* @param {string} p1 - 文字列パラメータ
* @param {string=} p2 - オプションのパラメータ(Closure構文)
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO: オプションでもいいんですが、設定と勘違いしそうなので、オプショナルの方が明確かと思いました
以下、オプションになってるところすべて同様です
採用するかはおまかせします。

Suggested change
* @param {string=} p2 - オプションのパラメータ(Closure構文)
* @param {string=} p2 - オプショナルなパラメータ(Closure構文)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/microsoft/TypeScript-Website/pull/1478/files#r556283287 にて、"任意"とコメントいただいたので、オプションをすべて"任意"に変更しようと思います

uraway and others added 2 commits January 18, 2021 21:32
Co-authored-by: Daiki Ihara <sasurau4@gmail.com>
@@ -67,7 +67,7 @@ npx typescript src/**/*.js --declaration --allowJs --emitDeclarationOnly --outDi
## package.jsonを編集する

TypeScriptは、.d.tsファイルを見つけるためのステップを追加し、`package.json`の中でNodeのモジュール解決を再現します。
大まかには、モジュール解決はオプションである`"types"`フィールドをチェックし、次に`"main"`フィールド、そして最後にルートの`index.d.ts`を試します。
大まかには、モジュール解決は任意のフィールドである`"types"`フィールドをチェックし、次に`"main"`フィールド、そして最後にルートの`index.d.ts`を試します。
Copy link
Contributor Author

Choose a reason for hiding this comment

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

そのまま「オプション」を「任意」に置き換えると変だったので、少し冗長かもですが、「任意のフィールド」としました

@uraway
Copy link
Contributor Author

uraway commented Jan 18, 2021

@sasurau4 いつもレビューありがとうございます 🙇
分量多かったかもしれないです

Copy link
Contributor

@sasurau4 sasurau4 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@orta orta merged commit 371403c into microsoft:v2 Jan 21, 2021
@uraway uraway deleted the feature/translation-docs-javascript branch January 25, 2021 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants