Skip to content

Commit

Permalink
fix(react): fix ReactComponentPropsByPathValue type return error resu…
Browse files Browse the repository at this point in the history
…lt (#1507)
  • Loading branch information
liuweiGL authored May 25, 2021
1 parent e9e3f74 commit fb7654e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export type ReactComponentPropsByPathValue<
? Rest extends ReactComponentPath<T[Key]>
? ReactComponentPropsByPathValue<T[Key], Rest>
: never
: never
: React.ComponentProps<T[P]>
: P extends keyof T
? React.ComponentProps<T[P]>
: never
Expand Down

0 comments on commit fb7654e

Please sign in to comment.