@types/react-dom 16.8.1 → 16.8.5

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.
react-dom/README.md CHANGED
@@ -2,15 +2,15 @@
2
2
  > `npm install --save @types/react-dom`
3
3
 
4
4
  # Summary
5
- This package contains type definitions for React (react-dom) ( http://facebook.github.io/react/ ).
5
+ This package contains type definitions for React (react-dom) (http://facebook.github.io/react/).
6
6
 
7
7
  # Details
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom
9
9
 
10
10
  Additional Details
11
- * Last updated: Wed, 13 Feb 2019 21:04:55 GMT
11
+ * Last updated: Tue, 23 Jul 2019 17:18:43 GMT
12
12
  * Dependencies: @types/react
13
13
  * Global values: ReactDOM, ReactDOMNodeStream, ReactDOMServer
14
14
 
15
15
  # Credits
16
- These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, MartynasZilinskas <https://github.com/MartynasZilinskas>, Josh Rutherford <https://github.com/theruther4d>, Jessica Franco <https://github.com/Jessidhia>.
16
+ These definitions were written by Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, MartynasZilinskas <https://github.com/MartynasZilinskas>, Josh Rutherford <https://github.com/theruther4d>, and Jessica Franco <https://github.com/Jessidhia>.
react-dom/index.d.ts CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  DOMAttributes, DOMElement, ReactNode, ReactPortal
18
18
  } from 'react';
19
19
 
20
- export function findDOMNode(instance: ReactInstance): Element | null | Text;
20
+ export function findDOMNode(instance: ReactInstance | null | undefined): Element | null | Text;
21
21
  export function unmountComponentAtNode(container: Element): boolean;
22
22
 
23
23
  export function createPortal(children: ReactNode, container: Element, key?: null | string): ReactPortal;
@@ -91,11 +91,4 @@ export interface Renderer {
91
91
  container: Element | null,
92
92
  callback?: () => void
93
93
  ): Component<any, ComponentState> | Element | void;
94
-
95
- (
96
- parentComponent: Component<any> | Array<Component<any>>,
97
- element: SFCElement<any>,
98
- container: Element,
99
- callback?: () => void
100
- ): void;
101
94
  }
react-dom/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "16.8.1",
3
+ "version": "16.8.5",
4
4
  "description": "TypeScript definitions for React (react-dom)",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -36,12 +36,13 @@
36
36
  "types": "index",
37
37
  "repository": {
38
38
  "type": "git",
39
- "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
39
+ "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
40
+ "directory": "types/react-dom"
40
41
  },
41
42
  "scripts": {},
42
43
  "dependencies": {
43
44
  "@types/react": "*"
44
45
  },
45
- "typesPublisherContentHash": "d61e9c5f7701893629315e54225f99c546539702788d18b5140f6c3d34973a72",
46
+ "typesPublisherContentHash": "56f77dbe984b6484029a25616d89de41a23e882813d89c9a8ee65f2e9a349204",
46
47
  "typeScriptVersion": "2.8"
47
48
  }
@@ -29,7 +29,7 @@ export interface SyntheticEventData extends OptionalEventProperties {
29
29
  clientX?: number;
30
30
  clientY?: number;
31
31
  changedTouches?: TouchList;
32
- charCode?: boolean;
32
+ charCode?: number;
33
33
  clipboardData?: DataTransfer;
34
34
  ctrlKey?: boolean;
35
35
  deltaMode?: number;
@@ -291,9 +291,8 @@ export function createRenderer(): ShallowRenderer;
291
291
  * @see https://reactjs.org/blog/2019/02/06/react-v16.8.0.html#testing-hooks
292
292
  */
293
293
  // the "void | undefined" is here to forbid any sneaky "Promise" returns.
294
- // the actual return value is always a "DebugPromiseLike",
295
- // but having an "| {}" makes it harder to accidentally use.
296
- export function act(callback: () => void | undefined): DebugPromiseLike | {};
294
+ // the actual return value is always a "DebugPromiseLike".
295
+ export function act(callback: () => void | undefined): DebugPromiseLike;
297
296
 
298
297
  // Intentionally doesn't extend PromiseLike<never>.
299
298
  // Ideally this should be as hard to accidentally use as possible.