From 377e31b5c6d42c4ca92085571d5d4f0c9dbe4ba2 Mon Sep 17 00:00:00 2001 From: Garth Poitras <411908+gpoitch@users.noreply.github.com> Date: Sun, 4 Nov 2018 10:03:22 -0500 Subject: [PATCH] [types] Add more type tests for h function (#1246) * Add TS tests for h function --- test/ts/preact.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/ts/preact.tsx b/test/ts/preact.tsx index 5f3a4b4d66..7cb9ce7661 100644 --- a/test/ts/preact.tsx +++ b/test/ts/preact.tsx @@ -39,6 +39,8 @@ function DummerComponent({ input, initialInput }: DummerComponentProps) { return
Input: {input}, initial: {initialInput}
; } +render(h('div', { title: "test", key: "1" }), document); +render(h(DummyComponent, { initialInput: "The input", key: "1" }), document); render(h(DummerComponent, { initialInput: "The input", input: "New input", key: "1"}), document); // Accessing children