Skip to content

Commit

Permalink
Merge pull request ascoders#423 from kongmoumou/patch-3
Browse files Browse the repository at this point in the history
fix: typo
  • Loading branch information
ascoders authored Jun 8, 2022
2 parents cf2a01d + 14b7ef2 commit be0b873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TS 类型体操/243.精读《type challenges - easy》.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ type Exclude<T, U> = T extends U ? never : T
type C = Exclude<'a' | 'b', 'a' | 'c'> // 'b'
```
看上去有点不那么好理解,这是因为 TS 对联合类型的执行是分配率的,即:
看上去有点不那么好理解,这是因为 TS 对联合类型的执行是分配律的,即:
```ts
Exclude<'a' | 'b', 'a' | 'c'>
Expand Down

0 comments on commit be0b873

Please sign in to comment.