エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
February 18, 2020 Implementing an opaque type in typescript Say, you’re in a situation where you ... February 18, 2020 Implementing an opaque type in typescript Say, you’re in a situation where you have a user type, that looks a bit as follows: export type User = { firtName: string; lastName: string; email: string; } function save(user: User) { // ... } const user = { firstName: 'Evert', lastName: 'Pot', email: '[email protected]', } save(user); But, instead of accepting any string for an email add