@types/react-test-renderer
Advanced tools
Comparing version 15.5.13 to 15.5.14
@@ -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 @@ |
{ | ||
"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). |
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
39
4695
4
18