-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[ja translation] TypeScript-Website/packages/documentation/copy/en/javascript/*.md #1478
Conversation
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. |
…into feature/translation-docs-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.
packages/documentation/copy/ja/javascript/Creating DTS files From JS.md
だけ見ました
他のは後日見ます 🙏
packages/documentation/copy/ja/javascript/Creating DTS files From JS.md
Outdated
Show resolved
Hide resolved
packages/documentation/copy/ja/javascript/Creating DTS files From JS.md
Outdated
Show resolved
Hide resolved
packages/documentation/copy/ja/javascript/Creating DTS files From JS.md
Outdated
Show resolved
Hide resolved
packages/documentation/copy/ja/javascript/Creating DTS files From JS.md
Outdated
Show resolved
Hide resolved
packages/documentation/copy/ja/javascript/Creating DTS files From JS.md
Outdated
Show resolved
Hide resolved
packages/documentation/copy/ja/javascript/Creating DTS files From JS.md
Outdated
Show resolved
Hide resolved
packages/documentation/copy/ja/javascript/Creating DTS files From JS.md
Outdated
Show resolved
Hide resolved
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.
Review遅くなりました 🙏
ありがとうございます 👍
packages/documentation/copy/ja/javascript/Intro to JS with TS.md
Outdated
Show resolved
Hide resolved
packages/documentation/copy/ja/javascript/Intro to JS with TS.md
Outdated
Show resolved
Hide resolved
// パラメータは様々な構文形式で宣言することができます | ||
/** | ||
* @param {string} p1 - 文字列パラメータ | ||
* @param {string=} p2 - オプションのパラメータ(Closure構文) |
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.
IMO: オプションでもいいんですが、設定と勘違いしそうなので、オプショナルの方が明確かと思いました
以下、オプションになってるところすべて同様です
採用するかはおまかせします。
* @param {string=} p2 - オプションのパラメータ(Closure構文) | |
* @param {string=} p2 - オプショナルなパラメータ(Closure構文) |
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.
https://github.com/microsoft/TypeScript-Website/pull/1478/files#r556283287 にて、"任意"とコメントいただいたので、オプションをすべて"任意"に変更しようと思います
packages/documentation/copy/ja/javascript/Type Checking JavaScript Files.md
Outdated
Show resolved
Hide resolved
packages/documentation/copy/ja/javascript/Type Checking JavaScript Files.md
Outdated
Show resolved
Hide resolved
packages/documentation/copy/ja/javascript/Type Checking JavaScript Files.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Daiki Ihara <[email protected]>
@@ -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`を試します。 |
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.
そのまま「オプション」を「任意」に置き換えると変だったので、少し冗長かもですが、「任意のフィールド」としました
@sasurau4 いつもレビューありがとうございます 🙇 |
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.
LGTM 👍
ref: #220
original files:
diff: f57223d