Files
DefinitelyTyped/types/react-hyperscript/index.d.ts
2017-12-20 03:10:00 +09:00

20 lines
599 B
TypeScript

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