Skip to content

docs: translate Built-in utility types to Japanese #231

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

Merged
merged 3 commits into from
Feb 10, 2020

Conversation

Naturalclar
Copy link
Contributor

@msftclas
Copy link

msftclas commented Feb 10, 2020

CLA assistant check
All CLA requirements met.


// Exclude<Type, RemoveUnion>

// 型の第一引数に受け取ったユニオン型から、第二引数に受け取ったユニオン型を
Copy link
Contributor

Choose a reason for hiding this comment

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

共用体型でも良いかもしれない

Copy link
Contributor Author

Choose a reason for hiding this comment

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

共用体型は馴染みがなさそう‥と思ったけど、Union Type の説明文はおそらく共用体型になりそうと思ったので共用体型に変えました。:+1:


// Record<KeysFrom, Type>

// KeysFrom からプロパティの一覧を受け取り、
Copy link
Contributor

Choose a reason for hiding this comment

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

[nits] KeysFrom から 英単語の日本語の境界に半角スペースが入っています。

基本的には英日単語境界の半角スペースは不要と思うのですが、どうでしょうか?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

個人的にはスペースあったほうが読みやすいと感じます。
ただ、Textlint無い状態で、句読点の後等色んなケースを考えると、スペース無しで統一したほうが良いと思います。:+1:
スペース無しに修正しましたー

Copy link
Contributor

Choose a reason for hiding this comment

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

🙇

// 他の型とは違い、ThisTypeは新しい型を返しません。
// 関数で使われる this の型を型引数に受け取った型に変換します。
// ThisType は TSConfig の noImplicitThis が true
// の場合にしか使えません。
Copy link
Contributor

@Quramy Quramy Feb 10, 2020

Choose a reason for hiding this comment

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

[nits] 上記と同じく、半角スペースの件です

// 関数で使われるthisの型を型引数に受け取った型に変換します。
// ThisTypeはTSConfigのnoImplicitThisがtrue
// の場合にしか使えません。

@orta orta merged commit 834ef18 into microsoft:v2 Feb 10, 2020
@Naturalclar Naturalclar deleted the ja/utilityTypes branch February 11, 2020 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants