@types/react-test-renderer
Advanced tools
Comparing version 15.4.0 to 15.4.1
@@ -7,19 +7,16 @@ // Type definitions for react-test-renderer 15.4 | ||
import { ReactElement } from "react"; | ||
declare namespace ReactTestRenderer { | ||
export interface Renderer { | ||
toJSON(): ReactTestRendererJSON; | ||
} | ||
export interface ReactTestRendererJSON { | ||
type: string; | ||
props: { [propName: string]: string }; | ||
children: null | Array<string | ReactTestRendererJSON>; | ||
$$typeof?: any; | ||
} | ||
export interface TestRendererOptions { | ||
createNodeMock: (element: ReactElement<any>) => any; | ||
} | ||
// https://github.com/facebook/react/blob/master/src/renderers/testing/ReactTestMount.js#L155 | ||
export function create(nextElement: ReactElement<any>, options?: TestRendererOptions): Renderer; | ||
interface Renderer { | ||
toJSON(): ReactTestRendererJSON; | ||
} | ||
export = ReactTestRenderer; | ||
interface ReactTestRendererJSON { | ||
type: string; | ||
props: { [propName: string]: string }; | ||
children: null | Array<string | ReactTestRendererJSON>; | ||
$$typeof?: any; | ||
} | ||
interface TestRendererOptions { | ||
createNodeMock: (element: ReactElement<any>) => any; | ||
} | ||
// https://github.com/facebook/react/blob/master/src/renderers/testing/ReactTestMount.js#L155 | ||
export function create(nextElement: ReactElement<any>, options?: TestRendererOptions): Renderer; |
{ | ||
"name": "@types/react-test-renderer", | ||
"version": "15.4.0", | ||
"version": "15.4.1", | ||
"description": "TypeScript definitions for react-test-renderer", | ||
@@ -17,3 +17,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "9a038262a0875e0c2ca3aa5096a0e40d6abb757b00ba26154a094319ec28de80" | ||
"typesPublisherContentHash": "e2828d4eb987a41feb156ab7223d1b0a701c63390d521357997f6a91e7531948", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,12 +8,11 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/react-test-renderer | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/react-test-renderer | ||
Additional Details | ||
* Last updated: Tue, 29 Nov 2016 23:38:18 GMT | ||
* File structure: ProperModule | ||
* Last updated: Sun, 01 Jan 2017 23:46:10 GMT | ||
* Library Dependencies: none | ||
* Module Dependencies: react | ||
* Global values: ReactTestRenderer | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Arvitaly <https://github.com/arvitaly>. |
@@ -9,2 +9,3 @@ { | ||
"libraryMinorVersion": 4, | ||
"typeScriptVersion": "2.0", | ||
"libraryName": "react-test-renderer", | ||
@@ -14,7 +15,4 @@ "typingsPackageName": "react-test-renderer", | ||
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
"sourceBranch": "types-2.0", | ||
"kind": "ProperModule", | ||
"globals": [ | ||
"ReactTestRenderer" | ||
], | ||
"sourceBranch": "master", | ||
"globals": [], | ||
"declaredModules": [ | ||
@@ -27,3 +25,3 @@ "react-test-renderer" | ||
"hasPackageJson": false, | ||
"contentHash": "9a038262a0875e0c2ca3aa5096a0e40d6abb757b00ba26154a094319ec28de80" | ||
"contentHash": "e2828d4eb987a41feb156ab7223d1b0a701c63390d521357997f6a91e7531948" | ||
} |
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
2676
42
18