@types/react-dom 16.9.12 → 16.9.13

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 v16.9/LICENSE CHANGED
File without changes
@@ -8,9 +8,9 @@ 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: Tue, 23 Mar 2021 00:35:10 GMT
11
+ * Last updated: Thu, 13 May 2021 07:31:27 GMT
12
12
  * Dependencies: [@types/react](https://npmjs.com/package/@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), and [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), [Jessica Franco](https://github.com/Jessidhia), and [Sebastian Silbermann](https://github.com/eps1lon).
@@ -6,6 +6,7 @@
6
6
  // MartynasZilinskas <https://github.com/MartynasZilinskas>
7
7
  // Josh Rutherford <https://github.com/theruther4d>
8
8
  // Jessica Franco <https://github.com/Jessidhia>
9
+ // Sebastian Silbermann <https://github.com/eps1lon>
9
10
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
10
11
  // TypeScript Version: 2.8
11
12
 
@@ -53,49 +54,51 @@ export function unstable_renderSubtreeIntoContainer<P>(
53
54
  container: Element,
54
55
  callback?: (component?: Component<P, ComponentState> | Element) => any): Component<P, ComponentState> | Element | void;
55
56
 
57
+ export type Container = Element | Document | DocumentFragment;
58
+
56
59
  export interface Renderer {
57
60
  // Deprecated(render): The return value is deprecated.
58
61
  // In future releases the render function's return type will be void.
59
62
 
60
63
  <T extends Element>(
61
64
  element: DOMElement<DOMAttributes<T>, T>,
62
- container: Element | DocumentFragment | null,
65
+ container: Container | null,
63
66
  callback?: () => void
64
67
  ): T;
65
68
 
66
69
  (
67
70
  element: Array<DOMElement<DOMAttributes<any>, any>>,
68
- container: Element | DocumentFragment | null,
71
+ container: Container| null,
69
72
  callback?: () => void
70
73
  ): Element;
71
74
 
72
75
  (
73
76
  element: SFCElement<any> | Array<SFCElement<any>>,
74
- container: Element | DocumentFragment | null,
77
+ container: Container| null,
75
78
  callback?: () => void
76
79
  ): void;
77
80
 
78
81
  <P, T extends Component<P, ComponentState>>(
79
82
  element: CElement<P, T>,
80
- container: Element | DocumentFragment | null,
83
+ container: Container| null,
81
84
  callback?: () => void
82
85
  ): T;
83
86
 
84
87
  (
85
88
  element: Array<CElement<any, Component<any, ComponentState>>>,
86
- container: Element | DocumentFragment | null,
89
+ container: Container| null,
87
90
  callback?: () => void
88
91
  ): Component<any, ComponentState>;
89
92
 
90
93
  <P>(
91
94
  element: ReactElement<P>,
92
- container: Element | DocumentFragment | null,
95
+ container: Container| null,
93
96
  callback?: () => void
94
97
  ): Component<P, ComponentState> | Element | void;
95
98
 
96
99
  (
97
100
  element: ReactElement[],
98
- container: Element | DocumentFragment | null,
101
+ container: Container| null,
99
102
  callback?: () => void
100
103
  ): Component<any, ComponentState> | Element | void;
101
104
  }
File without changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "16.9.12",
3
+ "version": "16.9.13",
4
4
  "description": "TypeScript definitions for React (react-dom)",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -30,6 +30,11 @@
30
30
  "name": "Jessica Franco",
31
31
  "url": "https://github.com/Jessidhia",
32
32
  "githubUsername": "Jessidhia"
33
+ },
34
+ {
35
+ "name": "Sebastian Silbermann",
36
+ "url": "https://github.com/eps1lon",
37
+ "githubUsername": "eps1lon"
33
38
  }
34
39
  ],
35
40
  "main": "",
@@ -43,6 +48,6 @@
43
48
  "dependencies": {
44
49
  "@types/react": "^16"
45
50
  },
46
- "typesPublisherContentHash": "d370d601f3f8f3cd93f6909456d6315b59e182661e8cc660138056e19e878455",
51
+ "typesPublisherContentHash": "fa3d426fb4218bff93873ddc218e6c35019d0a4dd6525c3775d199155d85b1ad",
47
52
  "typeScriptVersion": "3.5"
48
53
  }
File without changes
File without changes