@types/react-dom
Advanced tools
Comparing version 16.9.10 to 16.9.11
{ | ||
"name": "@types/react-dom", | ||
"version": "16.9.10", | ||
"version": "16.9.11", | ||
"description": "TypeScript definitions for React (react-dom)", | ||
@@ -46,4 +46,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "b3dc35f6cba8c8e84942dfeb8730abacde16f3e2ffa6b7ca7fc59ebdf60db1cf", | ||
"typeScriptVersion": "3.3" | ||
"typesPublisherContentHash": "550ed1e4b6475591e135170a4c9ac8e70c518caca3a624a72c549b32c25a5ef3", | ||
"typeScriptVersion": "3.4" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 20 Nov 2020 22:01:05 GMT | ||
* Last updated: Fri, 12 Feb 2021 18:02:48 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: `ReactDOM`, `ReactDOMNodeStream`, `ReactDOMServer` |
@@ -10,2 +10,3 @@ import { | ||
export {}; | ||
export interface OptionalEventProperties { | ||
@@ -292,8 +293,10 @@ bubbles?: boolean; | ||
// - the order of these signatures matters - typescript will check the signatures in source order. | ||
// If the `() => void` signature is first, it'll erroneously match a Promise returning function for users with | ||
// If the `() => VoidOrUndefinedOnly` signature is first, it'll erroneously match a Promise returning function for users with | ||
// `strictNullChecks: false`. | ||
// - the "void | undefined" types are there to forbid any non-void return values for users with `strictNullChecks: true` | ||
// - VoidOrUndefinedOnly is there to forbid any non-void return values for users with `strictNullChecks: true` | ||
declare const UNDEFINED_VOID_ONLY: unique symbol; | ||
// tslint:disable-next-line: void-return | ||
export function act(callback: () => Promise<void | undefined>): Promise<undefined>; | ||
export function act(callback: () => void | undefined): void; | ||
type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never }; | ||
export function act(callback: () => Promise<VoidOrUndefinedOnly>): Promise<undefined>; | ||
export function act(callback: () => VoidOrUndefinedOnly): void; | ||
@@ -300,0 +303,0 @@ // Intentionally doesn't extend PromiseLike<never>. |
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
20752
423
0