Skip to content

Commit

Permalink
Update typescript-most-practical-features-compilation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
owenlongbo authored Jan 25, 2024
1 parent a5e2ec7 commit 4885fb6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
```
例を示します。すべてのプロパティをオプションに変更するためのマップ型を作成します。
Expand Down Expand Up @@ -604,4 +606,4 @@ type D = Parameters<typeofMath.max>; // number[]

## 最後に

これをお気に入りに追加しましょう!
これをお気に入りに追加しましょう!

0 comments on commit 4885fb6

Please sign in to comment.