@types/react-dom 16.9.10 → 16.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,7 @@ This package contains type definitions for React (react-dom) (https://reactjs.or
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom/v16.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 20 Nov 2020 22:01:05 GMT
11
+ * Last updated: Fri, 12 Feb 2021 18:02:48 GMT
12
12
  * Dependencies: [@types/react](https://npmjs.com/package/@types/react)
13
13
  * Global values: `ReactDOM`, `ReactDOMNodeStream`, `ReactDOMServer`
14
14
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "16.9.10",
3
+ "version": "16.9.11",
4
4
  "description": "TypeScript definitions for React (react-dom)",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -43,6 +43,6 @@
43
43
  "dependencies": {
44
44
  "@types/react": "^16"
45
45
  },
46
- "typesPublisherContentHash": "b3dc35f6cba8c8e84942dfeb8730abacde16f3e2ffa6b7ca7fc59ebdf60db1cf",
47
- "typeScriptVersion": "3.3"
46
+ "typesPublisherContentHash": "550ed1e4b6475591e135170a4c9ac8e70c518caca3a624a72c549b32c25a5ef3",
47
+ "typeScriptVersion": "3.4"
48
48
  }
@@ -7,6 +7,7 @@ import {
7
7
 
8
8
  import * as ReactTestUtils from ".";
9
9
 
10
+ export {};
10
11
  export interface OptionalEventProperties {
11
12
  bubbles?: boolean;
12
13
  cancelable?: boolean;
@@ -288,12 +289,14 @@ export function createRenderer(): ShallowRenderer;
288
289
  */
289
290
  // NOTES
290
291
  // - the order of these signatures matters - typescript will check the signatures in source order.
291
- // If the `() => void` signature is first, it'll erroneously match a Promise returning function for users with
292
+ // If the `() => VoidOrUndefinedOnly` signature is first, it'll erroneously match a Promise returning function for users with
292
293
  // `strictNullChecks: false`.
293
- // - the "void | undefined" types are there to forbid any non-void return values for users with `strictNullChecks: true`
294
+ // - VoidOrUndefinedOnly is there to forbid any non-void return values for users with `strictNullChecks: true`
295
+ declare const UNDEFINED_VOID_ONLY: unique symbol;
294
296
  // tslint:disable-next-line: void-return
295
- export function act(callback: () => Promise<void | undefined>): Promise<undefined>;
296
- export function act(callback: () => void | undefined): void;
297
+ type VoidOrUndefinedOnly = void | { [UNDEFINED_VOID_ONLY]: never };
298
+ export function act(callback: () => Promise<VoidOrUndefinedOnly>): Promise<undefined>;
299
+ export function act(callback: () => VoidOrUndefinedOnly): void;
297
300
 
298
301
  // Intentionally doesn't extend PromiseLike<never>.
299
302
  // Ideally this should be as hard to accidentally use as possible.