@types/react-dom
Advanced tools
Comparing version 16.0.0 to 16.0.1
@@ -18,3 +18,2 @@ // Type definitions for React (react-dom) 16.0 | ||
export function findDOMNode<E extends Element>(instance: ReactInstance): E; | ||
export function findDOMNode(instance: ReactInstance): Element; | ||
@@ -31,5 +30,5 @@ export function unmountComponentAtNode(container: Element): boolean; | ||
export function unstable_renderSubtreeIntoContainer<P extends DOMAttributes<T>, T extends Element>( | ||
export function unstable_renderSubtreeIntoContainer<T extends Element>( | ||
parentComponent: Component<any>, | ||
element: DOMElement<P, T>, | ||
element: DOMElement<DOMAttributes<T>, T>, | ||
container: Element, | ||
@@ -49,28 +48,53 @@ callback?: (element: T) => any): T; | ||
export interface Renderer { | ||
<P extends DOMAttributes<T>, T extends Element>( | ||
element: DOMElement<P, T>, | ||
// Deprecated(render): The return value is deprecated. | ||
// In future releases the render function's return type will be void. | ||
<T extends Element>( | ||
element: DOMElement<DOMAttributes<T>, T>, | ||
container: Element | null, | ||
callback?: (element: T) => any | ||
callback?: () => void | ||
): T; | ||
<P>( | ||
element: SFCElement<P>, | ||
( | ||
element: Array<DOMElement<DOMAttributes<any>, any>>, | ||
container: Element | null, | ||
callback?: () => any | ||
callback?: () => void | ||
): Element; | ||
( | ||
element: SFCElement<any> | Array<SFCElement<any>>, | ||
container: Element | null, | ||
callback?: () => void | ||
): void; | ||
<P, T extends Component<P, ComponentState>>( | ||
element: CElement<P, T>, | ||
container: Element | null, | ||
callback?: (component: T) => any | ||
callback?: () => void | ||
): T; | ||
( | ||
element: Array<CElement<any, Component<any, ComponentState>>>, | ||
container: Element | null, | ||
callback?: () => void | ||
): Component<any, ComponentState>; | ||
<P>( | ||
element: ReactElement<P>, | ||
container: Element | null, | ||
callback?: (component?: Component<P, ComponentState> | Element) => any | ||
callback?: () => void | ||
): Component<P, ComponentState> | Element | void; | ||
<P>( | ||
parentComponent: Component<any>, | ||
element: SFCElement<P>, | ||
( | ||
element: Array<ReactElement<any>>, | ||
container: Element | null, | ||
callback?: () => void | ||
): Component<any, ComponentState> | Element | void; | ||
( | ||
parentComponent: Component<any> | Array<Component<any>>, | ||
element: SFCElement<any>, | ||
container: Element, | ||
callback?: () => any | ||
callback?: () => void | ||
): void; | ||
} |
{ | ||
"name": "@types/react-dom", | ||
"version": "16.0.0", | ||
"version": "16.0.1", | ||
"description": "TypeScript definitions for React (react-dom)", | ||
@@ -35,4 +35,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "701695d542233e2de31db141afe19e090a37f56ed1cc322c1a9acf1b38dab36e", | ||
"typesPublisherContentHash": "017784e8cdf5725411b88392581de0655386d03605f61af6fbd88520eeb3b4c2", | ||
"typeScriptVersion": "2.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 03 Oct 2017 13:52:13 GMT | ||
* Last updated: Fri, 06 Oct 2017 18:28:27 GMT | ||
* Dependencies: react, node | ||
@@ -14,0 +14,0 @@ * Global values: ReactDOM, ReactDOMNodeStream, ReactDOMServer |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
18505
389
0