-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Conversation
|
||
// Exclude<Type, RemoveUnion> | ||
|
||
// 型の第一引数に受け取ったユニオン型から、第二引数に受け取ったユニオン型を |
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.
共用体型でも良いかもしれない
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.
共用体型は馴染みがなさそう‥と思ったけど、Union Type の説明文はおそらく共用体型になりそうと思ったので共用体型に変えました。:+1:
|
||
// Record<KeysFrom, Type> | ||
|
||
// KeysFrom からプロパティの一覧を受け取り、 |
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.
[nits] KeysFrom から
英単語の日本語の境界に半角スペースが入っています。
基本的には英日単語境界の半角スペースは不要と思うのですが、どうでしょうか?
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.
個人的にはスペースあったほうが読みやすいと感じます。
ただ、Textlint無い状態で、句読点の後等色んなケースを考えると、スペース無しで統一したほうが良いと思います。:+1:
スペース無しに修正しましたー
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.
🙇
// 他の型とは違い、ThisTypeは新しい型を返しません。 | ||
// 関数で使われる this の型を型引数に受け取った型に変換します。 | ||
// ThisType は TSConfig の noImplicitThis が true | ||
// の場合にしか使えません。 |
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.
[nits] 上記と同じく、半角スペースの件です
// 関数で使われるthisの型を型引数に受け取った型に変換します。
// ThisTypeはTSConfigのnoImplicitThisがtrue
// の場合にしか使えません。
This PR is part of #100 #220
translated Built-in Utility Types in TypeScript playground example.
original document is here.
https://github.com/microsoft/TypeScript-Website/blob/v2/packages/playground-examples/copy/en/TypeScript/Type%20Primitives/Built-in%20Utility%20Types.ts