mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* [react] Use HTMLDialogElement for the dialog node * Actually add the `open` property * This update requires typescript 2.6 * Update dependents of react to also require typescript 2.6
25 lines
794 B
TypeScript
25 lines
794 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.6
|
|
|
|
import { ComponentClass, StatelessComponent, ReactElement } from 'react';
|
|
|
|
declare namespace h {}
|
|
|
|
type Element = ReactElement<any> | string | number | null;
|
|
|
|
declare function h(
|
|
componentOrTag: ComponentClass | StatelessComponent | string,
|
|
children?: ReadonlyArray<Element> | Element
|
|
): ReactElement<any>;
|
|
|
|
declare function h<P extends {[attr: string]: any}>(
|
|
componentOrTag: ComponentClass<P> | StatelessComponent<P> | string,
|
|
properties: P,
|
|
children?: ReadonlyArray<Element> | Element
|
|
): ReactElement<P>;
|
|
|
|
export = h;
|