@types/react-dom 15.5.0 → 15.5.1

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
@@ -8,7 +8,7 @@ This package contains type definitions for React (react-dom) (http://facebook.gi
8
8
  Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom
9
9
 
10
10
  Additional Details
11
- * Last updated: Tue, 18 Apr 2017 18:28:36 GMT
11
+ * Last updated: Fri, 23 Jun 2017 17:35:05 GMT
12
12
  * Dependencies: react
13
13
  * Global values: ReactDOM, ReactDOMServer
14
14
 
react-dom/index.d.ts CHANGED
@@ -1,8 +1,11 @@
1
1
  // Type definitions for React (react-dom) 15.5
2
2
  // Project: http://facebook.github.io/react/
3
- // Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com>, MartynasZilinskas <https://github.com/MartynasZilinskas>
3
+ // Definitions by: Asana <https://asana.com>
4
+ // AssureSign <http://www.assuresign.com>
5
+ // Microsoft <https://microsoft.com>
6
+ // MartynasZilinskas <https://github.com/MartynasZilinskas>
4
7
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5
- // TypeScript Version: 2.1
8
+ // TypeScript Version: 2.3
6
9
 
7
10
  export as namespace ReactDOM;
8
11
 
@@ -36,7 +39,7 @@ export function render<P>(
36
39
  callback?: (component?: Component<P, ComponentState> | Element) => any
37
40
  ): Component<P, ComponentState> | Element | void;
38
41
  export function render<P>(
39
- parentComponent: Component<any, any>,
42
+ parentComponent: Component<any>,
40
43
  element: SFCElement<P>,
41
44
  container: Element,
42
45
  callback?: () => any
@@ -51,17 +54,17 @@ export function unstable_batchedUpdates<A>(callback: (a: A) => any, a: A): void;
51
54
  export function unstable_batchedUpdates(callback: () => any): void;
52
55
 
53
56
  export function unstable_renderSubtreeIntoContainer<P extends DOMAttributes<T>, T extends Element>(
54
- parentComponent: Component<any, any>,
57
+ parentComponent: Component<any>,
55
58
  element: DOMElement<P, T>,
56
59
  container: Element,
57
60
  callback?: (element: T) => any): T;
58
61
  export function unstable_renderSubtreeIntoContainer<P, T extends Component<P, ComponentState>>(
59
- parentComponent: Component<any, any>,
62
+ parentComponent: Component<any>,
60
63
  element: CElement<P, T>,
61
64
  container: Element,
62
65
  callback?: (component: T) => any): T;
63
66
  export function unstable_renderSubtreeIntoContainer<P>(
64
- parentComponent: Component<any, any>,
67
+ parentComponent: Component<any>,
65
68
  element: ReactElement<P>,
66
69
  container: Element,
67
70
  callback?: (component?: Component<P, ComponentState> | Element) => any): Component<P, ComponentState> | Element | void;
react-dom/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/react-dom",
3
- "version": "15.5.0",
3
+ "version": "15.5.1",
4
4
  "description": "TypeScript definitions for React (react-dom)",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -31,6 +31,6 @@
31
31
  "@types/react": "*"
32
32
  },
33
33
  "peerDependencies": {},
34
- "typesPublisherContentHash": "960702efe448701815f2c8563e30c357a80c23d541018709d74453db04adeb21",
35
- "typeScriptVersion": "2.1"
34
+ "typesPublisherContentHash": "e26d52bf300d57089374961d828af107c2d813bf94abc975b68ed8720daca408",
35
+ "typeScriptVersion": "2.3"
36
36
  }
@@ -56,7 +56,7 @@ export interface SyntheticEventData extends OptionalEventProperties {
56
56
  which?: number;
57
57
  }
58
58
 
59
- export type EventSimulator = (element: Element | Component<any, any>, eventData?: SyntheticEventData) => void;
59
+ export type EventSimulator = (element: Element | Component<any>, eventData?: SyntheticEventData) => void;
60
60
 
61
61
  export interface MockedComponentClass {
62
62
  new (): any;
@@ -126,10 +126,10 @@ export function renderIntoDocument<T extends Element>(
126
126
  element: DOMElement<any, T>): T;
127
127
  export function renderIntoDocument(
128
128
  element: SFCElement<any>): void;
129
- export function renderIntoDocument<T extends Component<any, any>>(
129
+ export function renderIntoDocument<T extends Component<any>>(
130
130
  element: CElement<any, T>): T;
131
131
  export function renderIntoDocument<P>(
132
- element: ReactElement<P>): Component<P, {}> | Element | void;
132
+ element: ReactElement<P>): Component<P> | Element | void;
133
133
 
134
134
  /**
135
135
  * Pass a mocked component module to this method to augment it with useful methods that allow it to
@@ -162,7 +162,7 @@ export function isElementOfType<P>(
162
162
  /**
163
163
  * Returns `true` if `element` is a React element whose type is of a React `componentClass`.
164
164
  */
165
- export function isElementOfType<P, T extends Component<P, {}>, C extends ComponentClass<P>>(
165
+ export function isElementOfType<P, T extends Component<P>, C extends ComponentClass<P>>(
166
166
  element: ReactElement<any>, type: ClassType<P, T, C>): element is CElement<P, T>;
167
167
 
168
168
  /**
@@ -172,11 +172,11 @@ export function isDOMComponent(instance: ReactInstance): instance is Element;
172
172
  /**
173
173
  * Returns `true` if `instance` is a user-defined component, such as a class or a function.
174
174
  */
175
- export function isCompositeComponent(instance: ReactInstance): instance is Component<any, any>;
175
+ export function isCompositeComponent(instance: ReactInstance): instance is Component<any>;
176
176
  /**
177
177
  * Returns `true` if `instance` is a component whose type is of a React `componentClass`.
178
178
  */
179
- export function isCompositeComponentWithType<T extends Component<any, any>, C extends ComponentClass<any>>(
179
+ export function isCompositeComponentWithType<T extends Component<any>, C extends ComponentClass<any>>(
180
180
  instance: ReactInstance, type: ClassType<any, T, C>): boolean;
181
181
 
182
182
  /**
@@ -185,7 +185,7 @@ export function isCompositeComponentWithType<T extends Component<any, any>, C ex
185
185
  * as a primitive for other test utils.
186
186
  */
187
187
  export function findAllInRenderedTree(
188
- root: Component<any, any>,
188
+ root: Component<any>,
189
189
  fn: (i: ReactInstance) => boolean): ReactInstance[];
190
190
 
191
191
  /**
@@ -193,7 +193,7 @@ export function findAllInRenderedTree(
193
193
  * DOM components with the class name matching `className`.
194
194
  */
195
195
  export function scryRenderedDOMComponentsWithClass(
196
- root: Component<any, any>,
196
+ root: Component<any>,
197
197
  className: string): Element[];
198
198
  /**
199
199
  * Like `scryRenderedDOMComponentsWithClass()` but expects there to be one result,
@@ -201,7 +201,7 @@ export function scryRenderedDOMComponentsWithClass(
201
201
  * number of matches besides one.
202
202
  */
203
203
  export function findRenderedDOMComponentWithClass(
204
- root: Component<any, any>,
204
+ root: Component<any>,
205
205
  className: string): Element;
206
206
 
207
207
  /**
@@ -209,7 +209,7 @@ export function findRenderedDOMComponentWithClass(
209
209
  * DOM components with the tag name matching `tagName`.
210
210
  */
211
211
  export function scryRenderedDOMComponentsWithTag(
212
- root: Component<any, any>,
212
+ root: Component<any>,
213
213
  tagName: string): Element[];
214
214
  /**
215
215
  * Like `scryRenderedDOMComponentsWithTag()` but expects there to be one result,
@@ -217,14 +217,14 @@ export function scryRenderedDOMComponentsWithTag(
217
217
  * number of matches besides one.
218
218
  */
219
219
  export function findRenderedDOMComponentWithTag(
220
- root: Component<any, any>,
220
+ root: Component<any>,
221
221
  tagName: string): Element;
222
222
 
223
223
  /**
224
224
  * Finds all instances of components with type equal to `componentClass`.
225
225
  */
226
- export function scryRenderedComponentsWithType<T extends Component<{}, {}>, C extends ComponentClass<{}>>(
227
- root: Component<any, any>,
226
+ export function scryRenderedComponentsWithType<T extends Component<{}>, C extends ComponentClass<{}>>(
227
+ root: Component<any>,
228
228
  type: ClassType<any, T, C>): T[];
229
229
 
230
230
  /**
@@ -232,8 +232,8 @@ export function scryRenderedComponentsWithType<T extends Component<{}, {}>, C ex
232
232
  * and returns that one result, or throws exception if there is any other
233
233
  * number of matches besides one.
234
234
  */
235
- export function findRenderedComponentWithType<T extends Component<{}, {}>, C extends ComponentClass<{}>>(
236
- root: Component<any, any>,
235
+ export function findRenderedComponentWithType<T extends Component<{}>, C extends ComponentClass<{}>>(
236
+ root: Component<any>,
237
237
  type: ClassType<any, T, C>): T;
238
238
 
239
239
  /**