Socket
Socket
Sign inDemoInstall

@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.8.0 to 16.8.1

2

react-dom/index.d.ts

@@ -90,3 +90,3 @@ // Type definitions for React (react-dom) 16.8

(
element: Array<ReactElement<any>>,
element: ReactElement[],
container: Element | null,

@@ -93,0 +93,0 @@ callback?: () => void

@@ -8,3 +8,3 @@ import { ReactElement } from 'react';

*/
export function renderToStream(element: ReactElement<any>): any;
export function renderToStream(element: ReactElement): any;

@@ -16,5 +16,5 @@ /**

*/
export function renderToStaticStream(element: ReactElement<any>): any;
export function renderToStaticStream(element: ReactElement): any;
export const version: string;
export as namespace ReactDOMNodeStream;
{
"name": "@types/react-dom",
"version": "16.8.0",
"version": "16.8.1",
"description": "TypeScript definitions for React (react-dom)",

@@ -45,4 +45,4 @@ "license": "MIT",

},
"typesPublisherContentHash": "b994ac5eaa6eee18cef16c10c5734b4831ad0c2a141f32fa1bbffef28edd6bc0",
"typesPublisherContentHash": "d61e9c5f7701893629315e54225f99c546539702788d18b5140f6c3d34973a72",
"typeScriptVersion": "2.8"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Wed, 06 Feb 2019 12:44:09 GMT
* Last updated: Wed, 13 Feb 2019 21:04:55 GMT
* Dependencies: @types/react

@@ -14,0 +14,0 @@ * Global values: ReactDOM, ReactDOMNodeStream, ReactDOMServer

@@ -21,3 +21,3 @@ // forward declarations

*/
export function renderToString(element: ReactElement<any>): string;
export function renderToString(element: ReactElement): string;

@@ -29,3 +29,3 @@ /**

*/
export function renderToNodeStream(element: ReactElement<any>): NodeJS.ReadableStream;
export function renderToNodeStream(element: ReactElement): NodeJS.ReadableStream;

@@ -38,3 +38,3 @@ /**

*/
export function renderToStaticMarkup(element: ReactElement<any>): string;
export function renderToStaticMarkup(element: ReactElement): string;

@@ -46,3 +46,3 @@ /**

*/
export function renderToStaticNodeStream(element: ReactElement<any>): NodeJS.ReadableStream;
export function renderToStaticNodeStream(element: ReactElement): NodeJS.ReadableStream;

@@ -49,0 +49,0 @@ export const version: string;

@@ -69,11 +69,11 @@ import {

*/
getRenderOutput<E extends ReactElement<any>>(): E;
getRenderOutput<E extends ReactElement>(): E;
/**
* After `shallowRenderer.render()` has been called, returns shallowly rendered output.
*/
getRenderOutput(): ReactElement<any>;
getRenderOutput(): ReactElement;
/**
* Similar to `ReactDOM.render` but it doesn't require DOM and only renders a single level deep.
*/
render(element: ReactElement<any>, context?: any): void;
render(element: ReactElement, context?: any): void;
unmount(): void;

@@ -190,3 +190,3 @@ }

export function isElementOfType<T extends HTMLElement>(
element: ReactElement<any>, type: string): element is ReactHTMLElement<T>;
element: ReactElement, type: string): element is ReactHTMLElement<T>;
/**

@@ -196,3 +196,3 @@ * Returns `true` if `element` is a React element whose type is of a React `componentClass`.

export function isElementOfType<P extends DOMAttributes<{}>, T extends Element>(
element: ReactElement<any>, type: string): element is DOMElement<P, T>;
element: ReactElement, type: string): element is DOMElement<P, T>;
/**

@@ -202,3 +202,3 @@ * Returns `true` if `element` is a React element whose type is of a React `componentClass`.

export function isElementOfType<P>(
element: ReactElement<any>, type: SFC<P>): element is SFCElement<P>;
element: ReactElement, type: SFC<P>): element is SFCElement<P>;
/**

@@ -208,3 +208,3 @@ * Returns `true` if `element` is a React element whose type is of a React `componentClass`.

export function isElementOfType<P, T extends Component<P>, C extends ComponentClass<P>>(
element: ReactElement<any>, type: ClassType<P, T, C>): element is CElement<P, T>;
element: ReactElement, type: ClassType<P, T, C>): element is CElement<P, T>;

@@ -211,0 +211,0 @@ /**

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