From 1dcdf9e76cd13e91c36a3fb4cd13f86ac6e7e443 Mon Sep 17 00:00:00 2001 From: hhh <1340545944@qq.com> Date: Thu, 24 Jan 2019 20:59:31 +0800 Subject: [PATCH] fix the type declaration of props --- src/core/HNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/HNode.ts b/src/core/HNode.ts index 1e30cc2..497821f 100644 --- a/src/core/HNode.ts +++ b/src/core/HNode.ts @@ -21,7 +21,7 @@ export type HProps

= { ) ) ) : ( - P[K] | undefined + P[K] ); } & ('children' extends keyof P ? {} : { children: unknown[];