From 461a33e46737480ea8357045117511984e6e1e9b Mon Sep 17 00:00:00 2001 From: Tangent Wantwight Date: Tue, 23 Jan 2024 23:27:41 -0500 Subject: [PATCH] Props optional for h --- lib/html.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/html.ts b/lib/html.ts index a991420..3c410e3 100644 --- a/lib/html.ts +++ b/lib/html.ts @@ -1,6 +1,6 @@ export function h( name: Name, - props: Partial, + props: Partial = {}, ...children: (Node | string)[] ): HTMLElementTagNameMap[Name] { const element = Object.assign(document.createElement(name), props);