@types/react-test-renderer
Advanced tools
Comparing version 16.9.1 to 16.9.2
@@ -8,6 +8,7 @@ // Type definitions for react-test-renderer 16.9 | ||
// Jessica Franco <https://github.com/Jessidhia> | ||
// Dhruv Jain <https://github.com/maddhruv> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.8 | ||
import { ReactElement, ReactType } from "react"; | ||
import { ReactElement, ElementType } from 'react'; | ||
@@ -25,3 +26,3 @@ // extracted from: | ||
export interface ReactTestRendererTree extends ReactTestRendererJSON { | ||
nodeType: "component" | "host"; | ||
nodeType: 'component' | 'host'; | ||
instance: any; | ||
@@ -32,3 +33,3 @@ rendered: null | ReactTestRendererTree; | ||
instance: any; | ||
type: ReactType; | ||
type: ElementType; | ||
props: { [propName: string]: any }; | ||
@@ -39,7 +40,7 @@ parent: null | ReactTestInstance; | ||
find(predicate: (node: ReactTestInstance) => boolean): ReactTestInstance; | ||
findByType(type: ReactType): ReactTestInstance; | ||
findByType(type: ElementType): ReactTestInstance; | ||
findByProps(props: { [propName: string]: any }): ReactTestInstance; | ||
findAll(predicate: (node: ReactTestInstance) => boolean, options?: { deep: boolean }): ReactTestInstance[]; | ||
findAllByType(type: ReactType, options?: { deep: boolean }): ReactTestInstance[]; | ||
findAllByType(type: ElementType, options?: { deep: boolean }): ReactTestInstance[]; | ||
findAllByProps(props: { [propName: string]: any }, options?: { deep: boolean }): ReactTestInstance[]; | ||
@@ -92,7 +93,4 @@ } | ||
export interface DebugPromiseLike { | ||
// the actual then() in here is 1-ary, but that doesn't count as a PromiseLike. | ||
then( | ||
onfulfilled: (value: never) => never, | ||
onrejected: (reason: never) => never, | ||
): never; | ||
// the actual then() in here is 1-ary, but that doesn't count as a PromiseLike. | ||
then(onfulfilled: (value: never) => never, onrejected: (reason: never) => never): never; | ||
} |
{ | ||
"name": "@types/react-test-renderer", | ||
"version": "16.9.1", | ||
"version": "16.9.2", | ||
"description": "TypeScript definitions for react-test-renderer", | ||
@@ -31,6 +31,11 @@ "license": "MIT", | ||
"githubUsername": "Jessidhia" | ||
}, | ||
{ | ||
"name": "Dhruv Jain", | ||
"url": "https://github.com/maddhruv", | ||
"githubUsername": "maddhruv" | ||
} | ||
], | ||
"main": "", | ||
"types": "index", | ||
"types": "index.d.ts", | ||
"repository": { | ||
@@ -45,4 +50,4 @@ "type": "git", | ||
}, | ||
"typesPublisherContentHash": "64154e2af5a62ed599e50d4b45752b8348cf39bcaffc0afac06b34d222f34588", | ||
"typesPublisherContentHash": "1551c9091af69e46d44955f89f2358f5199efb9b7d4b4768cf78ee0fb985d333", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-test-renderer | ||
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-test-renderer. | ||
Additional Details | ||
* Last updated: Mon, 14 Oct 2019 20:17:01 GMT | ||
* Dependencies: @types/react | ||
### Additional Details | ||
* Last updated: Wed, 22 Jan 2020 18:10:56 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>, John Reilly <https://github.com/johnnyreilly>, John Gozde <https://github.com/jgoz>, and Jessica Franco <https://github.com/Jessidhia>. | ||
These definitions were written by Arvitaly (https://github.com/arvitaly), Lochbrunner (https://github.com/lochbrunner), John Reilly (https://github.com/johnnyreilly), John Gozde (https://github.com/jgoz), Jessica Franco (https://github.com/Jessidhia), and Dhruv Jain (https://github.com/maddhruv). |
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
8256
104