Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ascoders committed Nov 15, 2022
1 parent 01ec8f5 commit 1a2a78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TS 类型体操/243.精读《Pick, Awaited, If...》.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type Foo<T> = {
```ts
// 代码 2(本题答案)
type MyPick<T, K in keyof T> = {
type MyPick<T, K extends keyof T> = {
[P in K]: T[P]
}
```
Expand Down

0 comments on commit 1a2a78b

Please sign in to comment.