Skip to content

Commit 14b7ef2

Browse files
authored
Update 243.精读《type challenges - easy》.md
1 parent cf2a01d commit 14b7ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TS 类型体操/243.精读《type challenges - easy》.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ type Exclude<T, U> = T extends U ? never : T
164164
type C = Exclude<'a' | 'b', 'a' | 'c'> // 'b'
165165
```
166166
167-
看上去有点不那么好理解,这是因为 TS 对联合类型的执行是分配率的,即:
167+
看上去有点不那么好理解,这是因为 TS 对联合类型的执行是分配律的,即:
168168
169169
```ts
170170
Exclude<'a' | 'b', 'a' | 'c'>

0 commit comments

Comments
 (0)