Skip to content

Commit

Permalink
fix the type declaration of props
Browse files Browse the repository at this point in the history
  • Loading branch information
huang2002 committed Jan 24, 2019
1 parent 205a21c commit 1dcdf9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/HNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type HProps<P extends object = any> = {
)
)
) : (
P[K] | undefined
P[K]
);
} & ('children' extends keyof P ? {} : {
children: unknown[];
Expand Down

0 comments on commit 1dcdf9e

Please sign in to comment.