Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-dom

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-dom - npm Package Compare versions

Comparing version 16.0.0 to 16.0.1

54

react-dom/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc