mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 04:50:18 +00:00
Make test green again
This commit is contained in:
Vendored
+3
-1
@@ -8,10 +8,12 @@ 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<ReactElement<any>> | string
|
||||
children?: ReadonlyArray<Element> | Element
|
||||
): ReactElement<P>;
|
||||
|
||||
export = h;
|
||||
|
||||
Reference in New Issue
Block a user