// Type definitions for react-hyperscript 3.0 // Project: https://github.com/mlmorg/react-hyperscript // Definitions by: tock203 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import { ComponentClass, StatelessComponent, ReactElement } from 'react'; declare namespace h {} type Element = ReactElement | string | number | null; declare function h( componentOrTag: ComponentClass | StatelessComponent | string, children?: ReadonlyArray | Element ): ReactElement; declare function h

( componentOrTag: ComponentClass

| StatelessComponent

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

; export = h;