From 4885fb6f02e3375b74b5e4213cca2ad702f355d6 Mon Sep 17 00:00:00 2001 From: smallSohoSolo Date: Fri, 26 Jan 2024 00:30:34 +0800 Subject: [PATCH] Update typescript-most-practical-features-compilation.md --- .../typescript-most-practical-features-compilation.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/i18n/ja/docusaurus-plugin-content-blog/typescript-most-practical-features-compilation/typescript-most-practical-features-compilation.md b/i18n/ja/docusaurus-plugin-content-blog/typescript-most-practical-features-compilation/typescript-most-practical-features-compilation.md index 17f77b89fd..8362dd7021 100644 --- a/i18n/ja/docusaurus-plugin-content-blog/typescript-most-practical-features-compilation/typescript-most-practical-features-compilation.md +++ b/i18n/ja/docusaurus-plugin-content-blog/typescript-most-practical-features-compilation/typescript-most-practical-features-compilation.md @@ -416,12 +416,14 @@ type Three = Foo<{ a: number, t: () => void }> // () => void 一般的なマップ型の構文は次のとおりです。 +```typescript { [ P in K ] : T } { [ P in K ] ?: T } { [ P in K ] -?: T } { readonly [ P in K ] : T } { readonly [ P in K ] ?: T } { -readonly [ P in K ] ?: T } +``` 例を示します。すべてのプロパティをオプションに変更するためのマップ型を作成します。 @@ -604,4 +606,4 @@ type D = Parameters; // number[] ## 最後に -これをお気に入りに追加しましょう! \ No newline at end of file +これをお気に入りに追加しましょう!