@types/react-test-renderer
Advanced tools
Comparing version 16.9.4 to 16.9.5
@@ -13,2 +13,3 @@ // Type definitions for react-test-renderer 16.9 | ||
import { ReactElement, ElementType } from 'react'; | ||
export {}; | ||
@@ -58,2 +59,7 @@ // extracted from: | ||
// VoidOrUndefinedOnly is here to forbid any sneaky "Promise" returns. | ||
// the actual return value is always a "DebugPromiseLike". | ||
declare const UNDEFINED_VOID_ONLY: unique symbol; | ||
// tslint:disable-next-line: void-return | ||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never }; | ||
/** | ||
@@ -70,5 +76,4 @@ * Wrap any code rendering and triggering updates to your components into `act()` calls. | ||
*/ | ||
// the "void | undefined" is here to forbid any sneaky return values | ||
// tslint:disable-next-line: void-return | ||
export function act(callback: () => Promise<void | undefined>): Promise<undefined>; | ||
// VoidOrUndefinedOnly is here to forbid any sneaky return values | ||
export function act(callback: () => Promise<VoidOrUndefinedOnly>): Promise<undefined>; | ||
/** | ||
@@ -85,5 +90,3 @@ * Wrap any code rendering and triggering updates to your components into `act()` calls. | ||
*/ | ||
// the "void | undefined" is here to forbid any sneaky "Promise" returns. | ||
// the actual return value is always a "DebugPromiseLike". | ||
export function act(callback: () => void | undefined): DebugPromiseLike; | ||
export function act(callback: () => VoidOrUndefinedOnly): DebugPromiseLike; | ||
@@ -90,0 +93,0 @@ // Intentionally doesn't extend PromiseLike<never>. |
{ | ||
"name": "@types/react-test-renderer", | ||
"version": "16.9.4", | ||
"version": "16.9.5", | ||
"description": "TypeScript definitions for react-test-renderer", | ||
@@ -49,4 +49,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "c5ab3c14bc16c650947031e4533a8f305e8efede423a6ecf0ef77a768888df25", | ||
"typeScriptVersion": "3.3" | ||
"typesPublisherContentHash": "8b675bac571298a24f9a4d36e66766d9428b155826e29fb5b8dcca003b75857a", | ||
"typeScriptVersion": "3.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 20 Nov 2020 22:01:06 GMT | ||
* Last updated: Fri, 12 Feb 2021 18:02:49 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8407
107
0