From c6f2ca5fd4d6904b7291dfa395e88a644cdb7cd8 Mon Sep 17 00:00:00 2001 From: tock203 Date: Tue, 19 Dec 2017 23:02:35 +0900 Subject: [PATCH] Make test green again --- types/react-hyperscript/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/react-hyperscript/index.d.ts b/types/react-hyperscript/index.d.ts index 4ead727398..1c5ccffdc5 100644 --- a/types/react-hyperscript/index.d.ts +++ b/types/react-hyperscript/index.d.ts @@ -8,10 +8,12 @@ import { ComponentClass, StatelessComponent, ReactElement } from 'react'; declare namespace h {} +type Element = ReactElement | string | null; + declare function h

( componentOrTag: ComponentClass

| StatelessComponent

| string, properties?: P, - children?: ReadonlyArray> | string + children?: ReadonlyArray | Element ): ReactElement

; export = h;