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

@types/react-test-renderer

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-test-renderer - npm Package Compare versions

Comparing version 15.5.13 to 15.5.14

6

react-test-renderer v15.5/index.d.ts

@@ -1,7 +0,1 @@

// Type definitions for react-test-renderer 15.5
// Project: https://facebook.github.io/react/
// Definitions by: Arvitaly <https://github.com/arvitaly>, Lochbrunner <https://github.com/lochbrunner>, Lochbrunner <https://github.com/lochbrunner>, John Reilly <https://github.com/johnnyreilly>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { ReactElement } from "react";

@@ -8,0 +2,0 @@

20

react-test-renderer v15.5/package.json
{
"name": "@types/react-test-renderer",
"version": "15.5.13",
"version": "15.5.14",
"description": "TypeScript definitions for react-test-renderer",

@@ -10,19 +10,19 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-test-renderer",

"name": "Arvitaly",
"url": "https://github.com/arvitaly",
"githubUsername": "arvitaly"
"githubUsername": "arvitaly",
"url": "https://github.com/arvitaly"
},
{
"name": "Lochbrunner",
"url": "https://github.com/lochbrunner",
"githubUsername": "lochbrunner"
"githubUsername": "lochbrunner",
"url": "https://github.com/lochbrunner"
},
{
"name": "Lochbrunner",
"url": "https://github.com/lochbrunner",
"githubUsername": "lochbrunner"
"githubUsername": "lochbrunner",
"url": "https://github.com/lochbrunner"
},
{
"name": "John Reilly",
"url": "https://github.com/johnnyreilly",
"githubUsername": "johnnyreilly"
"githubUsername": "johnnyreilly",
"url": "https://github.com/johnnyreilly"
}

@@ -41,4 +41,4 @@ ],

},
"typesPublisherContentHash": "deb2071394fc3f3957632463f9c67519c40e81d472732f51053ecaba603162b7",
"typesPublisherContentHash": "4d7354b368b866500ea26c31a2a8b819a02e5767e8b05e171173e2d93a0695f6",
"typeScriptVersion": "4.5"
}

@@ -9,9 +9,31 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-test-renderer/v15.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-test-renderer/v15/index.d.ts)
````ts
import { ReactElement } from "react";
export interface ReactTestInstance {
toJSON(): ReactTestRendererJSON;
unmount(nextElement?: ReactElement): void;
update(nextElement: ReactElement): void;
getInstance(): any;
}
export interface ReactTestRendererJSON {
type: string;
props: { [propName: string]: any };
children: null | Array<string | ReactTestRendererJSON>;
$$typeof?: any;
}
export interface TestRendererOptions {
createNodeMock(element: ReactElement): any;
}
// https://github.com/facebook/react/blob/master/src/renderers/testing/ReactTestMount.js#L155
export function create(nextElement: ReactElement, options?: TestRendererOptions): ReactTestInstance;
````
### Additional Details
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT
* Last updated: Wed, 18 Oct 2023 11:45:06 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)
* Global values: none
# Credits
These definitions were written by [Arvitaly](https://github.com/arvitaly), [Lochbrunner](https://github.com/lochbrunner), [Lochbrunner](https://github.com/lochbrunner), and [John Reilly](https://github.com/johnnyreilly).
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