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 4885fb6 commit 6c596ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ type T3 = T1<number> // 'number'
通常、ジェネリック条件と組み合わせて使用し、具体例を理解します。
ジェネリックパラメータTが型{t: infer Test}に代入可能である場合、型Testが推論され、それ以外の場合はstring型になります。
ジェネリックパラメータTが型`{t: infer Test}`に代入可能である場合、型Testが推論され、それ以外の場合はstring型になります。
```typescript
type Foo<T> = T extends {t: infer Test} ? Test : string
Expand Down

0 comments on commit 6c596ef

Please sign in to comment.