mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fixing isValidClass and isValidElement
The terminology is confusing right now.
This commit is contained in:
Vendored
+3
-1
@@ -32,7 +32,9 @@ declare module React {
|
||||
|
||||
export function renderToStaticMarkup(component: ReactSVGElement): string;
|
||||
|
||||
export function isValidClass(factory: ReactComponentElement<any>): boolean;
|
||||
export function isValidClass(factory: ReactComponentFactory<any>): boolean;
|
||||
|
||||
export function isValidElement(component: ReactComponentElement<any>): boolean;
|
||||
|
||||
export function isValidElement(component: ReactHTMLElement): boolean;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user