-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Translate playground example (Unknown and Never) into ja #803
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
Translate playground example (Unknown and Never) into ja #803
Conversation
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.
いくつか指摘しました 🙏
よりよい案があったら教えていただけると!
// 違いは、anyは曖昧なままでも使用できますが、 unknownは | ||
// 詳細を必要とする点です。 |
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.
こなれてないので、もうちょっとよくできそうですが、とりあえずsuggestしておきます
// 違いは、anyは曖昧なままでも使用できますが、 unknownは | |
// 詳細を必要とする点です。 | |
// anyは曖昧なままでも使用できますが、 unknownは | |
// 特定を必要とします。 |
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.
ありがとうございます、こんな感じでどうでしょうか?
// 違いは、anyは曖昧なままでも使用できますが、 unknownは | |
// 詳細を必要とする点です。 | |
// anyは曖昧なままでも使用できますが、 unknownは | |
// 型を特定する必要がある点が異なります。 |
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.
👍
// unknown型は、非常に多くの箇所で使用されています。 | ||
// unknown型は、any型とよく似た振る舞いをします。 |
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.
clickにはif two people click, they like, understand, and agree with each other
というように仲良くなるという用法があるらしいです
おそらく、この用法だと思われます
https://www.ldoceonline.com/jp/dictionary/click
その上で、usesは使われている場所よりも、用途という意味に思えるので
// unknown型は、非常に多くの箇所で使用されています。 | |
// unknown型は、any型とよく似た振る舞いをします。 | |
// unknown型は、一度詳しくなると、非常に多くの用途があることに気が付きます。 | |
// unknown型は、any型とよく似た振る舞いをします。 |
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.
ありがとうございます、clickにそのような意味があるのですね 🙇
そうしますと、一応 one of those types
の部分も訳して↓のような形にしますか?
// unknown型は、非常に多くの箇所で使用されています。 | |
// unknown型は、any型とよく似た振る舞いをします。 | |
// unknown型は、一度詳しくなると、非常に多くの用途があることに気が付く型の一つです。 | |
// unknown型は、any型とよく似た振る舞いをします。 |
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/playground-examples/copy/ja/TypeScript/Primitives/Unknown and Never.ts
Outdated
Show resolved
Hide resolved
packages/playground-examples/copy/ja/TypeScript/Primitives/Unknown and Never.ts
Outdated
Show resolved
Hide resolved
packages/playground-examples/copy/ja/TypeScript/Primitives/Unknown and Never.ts
Outdated
Show resolved
Hide resolved
packages/playground-examples/copy/ja/TypeScript/Primitives/Unknown and Never.ts
Outdated
Show resolved
Hide resolved
packages/playground-examples/copy/ja/TypeScript/Primitives/Unknown and Never.ts
Outdated
Show resolved
Hide resolved
packages/playground-examples/copy/ja/TypeScript/Primitives/Unknown and Never.ts
Outdated
Show resolved
Hide resolved
packages/playground-examples/copy/ja/TypeScript/Primitives/Unknown and Never.ts
Outdated
Show resolved
Hide resolved
packages/playground-examples/copy/ja/TypeScript/Primitives/Unknown and Never.ts
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.
@sasurau4
レビューいただきありがとうございます。
一旦提案していただいた形で修正させていただきました。
いくつか質問させていただきましたので、
お時間あるときに、ご確認いただけますでしょうか。
// unknown型は、非常に多くの箇所で使用されています。 | ||
// unknown型は、any型とよく似た振る舞いをします。 |
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.
ありがとうございます、clickにそのような意味があるのですね 🙇
そうしますと、一応 one of those types
の部分も訳して↓のような形にしますか?
// unknown型は、非常に多くの箇所で使用されています。 | |
// unknown型は、any型とよく似た振る舞いをします。 | |
// unknown型は、一度詳しくなると、非常に多くの用途があることに気が付く型の一つです。 | |
// unknown型は、any型とよく似た振る舞いをします。 |
// 違いは、anyは曖昧なままでも使用できますが、 unknownは | ||
// 詳細を必要とする点です。 |
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.
ありがとうございます、こんな感じでどうでしょうか?
// 違いは、anyは曖昧なままでも使用できますが、 unknownは | |
// 詳細を必要とする点です。 | |
// anyは曖昧なままでも使用できますが、 unknownは | |
// 型を特定する必要がある点が異なります。 |
// The object myOtherAccount cannot be used until the type has | ||
// been declared to TypeScript. This can be used to ensure | ||
// that API consumers think about their typing up-front: | ||
// myOtherAccountの型をTypeScriptに示すまでは、myOtherAccountのプロパティを使用する |
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.
ありがとうございます 🙇
こちら、myOtherAccount
自体の参照などは問題なく行えて、あくまで保持するプロパティを
型が確定しないと呼び出せないという意図をもたせたのですが、直訳してオブジェクトとしたほうが良いでしょうか?
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 👍
Thank you folks |
Part of #220
playground-examples/TypeScript/Primitives/Unknown and Never
Unknown and Never.ts
Thanks.