Hraban Luyat 82e42f3d53 React.render() return value incorrect
React.render does not return an element but a component. It's the `this` from the render callback:

> Instances of a React Component are created internally in React when rendering. These instances are reused in subsequent renders, and can be accessed in your component methods as this. The only way to get a handle to a React Component instance outside of React is by storing the return value of React.render. Inside other Components, you may use refs to achieve the same result.

http://facebook.github.io/react/docs/component-api.html

This particular pull request is probably not perfect (e.g. I don't know what to pass as the type parameter for state so I just set it to `void`). It does scratch my particular itch, though; calling `.setProps(..)` on the return value of `React.render(...)` is now possible.

Sorry if I misunderstood. By no means a react expert. Nor typescript, for that matter.

Cheers
2014-11-09 04:12:34 +01:00
2014-10-07 23:52:00 +02:00
2014-01-09 16:39:18 +04:00
2014-09-02 14:53:39 -07:00
2014-06-22 12:23:03 +10:00
2014-10-27 10:30:28 +09:00
2014-09-07 19:54:42 -04:00
2014-11-08 23:50:15 +09:00
2014-05-12 14:45:19 +09:00
2014-06-18 23:31:11 +02:00
2014-09-22 17:57:21 +02:00
2013-10-03 22:23:35 +09:00
2014-09-02 14:53:39 -07:00
2014-03-23 15:50:05 +09:00
2014-10-07 22:53:51 +01:00
2014-05-18 21:37:47 +02:00
2014-09-02 14:53:39 -07:00
2014-06-18 23:31:11 +02:00
2014-06-18 23:31:11 +02:00
2014-10-01 18:37:28 +05:30
2014-09-29 18:19:55 +10:00
2014-01-24 00:22:06 +01:00
2014-04-21 01:52:28 +02:00
2014-07-20 09:10:21 -04:00
2014-09-30 03:06:45 +03:00
2014-07-11 07:37:05 +02:00
2014-08-01 20:11:18 +02:00
2014-08-30 14:24:46 -07:00
2014-01-24 00:22:06 +01:00
2014-11-01 19:47:18 +01:00
2014-08-07 15:50:27 +09:00
2014-06-19 17:43:47 +02:00
2014-10-12 12:58:12 -05:00
2014-10-25 13:14:36 +09:00
2014-09-29 10:10:51 +01:00
2014-10-22 10:21:24 +02:00
2013-08-07 16:59:39 +03:00
2014-08-19 16:41:08 -04:00
2014-10-31 18:04:28 +01:00
2014-04-13 23:17:54 +10:00
2014-01-24 00:22:06 +01:00
2014-07-17 19:20:44 +01:00
2014-10-30 01:33:59 +09:00
2014-07-17 19:20:44 +01:00
2014-06-18 23:31:11 +02:00
2014-06-18 23:31:11 +02:00
2014-02-26 14:13:17 +09:00
2014-08-20 00:27:36 +09:00
2013-11-30 21:48:36 +08:00
2014-06-18 23:31:35 +02:00
2014-09-15 23:33:51 +09:00
2014-10-21 13:30:34 +04:00
2014-04-10 19:07:43 +09:00
2014-09-02 14:53:39 -07:00
2014-05-28 13:16:20 +02:00
2014-10-12 12:58:12 -05:00
2014-08-29 11:52:16 +09:00
2014-07-17 19:20:44 +01:00
2014-10-27 10:31:35 -05:00
2014-10-31 12:29:32 +09:00
2014-04-01 00:36:35 +02:00
2014-06-18 23:31:11 +02:00
2014-06-18 23:31:11 +02:00
2014-08-24 00:11:05 +09:00
2014-09-02 14:53:39 -07:00
2014-09-22 12:58:36 +09:00
2014-05-05 03:38:57 +03:00
2014-06-18 23:31:11 +02:00
2014-06-18 23:31:11 +02:00
2014-06-18 23:31:11 +02:00
2014-11-07 17:56:53 +09:00
2014-06-26 05:43:00 +02:00
2014-09-02 14:53:39 -07:00
2013-05-25 18:08:56 +03:00
2014-05-26 14:31:30 +02:00
2014-10-07 15:23:18 +09:00
2014-06-12 11:36:40 -05:00
2014-02-26 17:25:44 +09:00
2014-08-20 10:22:05 +10:00
2014-01-24 18:51:21 +01:00
2014-05-13 23:20:07 -07:00
2014-09-02 14:53:39 -07:00
2014-06-18 23:31:11 +02:00
2014-06-26 04:17:22 +02:00
2014-09-02 14:53:39 -07:00
2014-01-24 00:19:24 +01:00
2014-06-18 23:31:11 +02:00
2013-12-19 15:33:09 +04:00
2014-08-04 15:38:01 +01:00
2014-09-27 11:57:45 +09:00
2014-06-26 05:43:00 +02:00
2014-11-07 23:31:02 +09:00
2014-07-25 14:24:05 +02:00
2014-01-09 12:29:17 +04:00
2014-01-09 12:29:17 +04:00
2014-11-03 13:39:36 +01:00
2014-11-06 10:23:22 -08:00
2014-09-02 14:53:39 -07:00
2014-09-02 21:02:39 +02:00
2014-10-15 20:16:45 +09:00
2014-09-02 14:53:39 -07:00
2014-09-15 20:09:20 +02:00
2014-10-13 18:20:13 +03:00
2014-01-25 01:08:33 +01:00
2013-01-17 20:03:30 +02:00
2014-10-09 21:13:39 +09:00
2014-10-07 15:20:55 +09:00
2014-09-24 15:42:07 +01:00
2014-06-18 23:31:11 +02:00
2014-09-02 14:53:39 -07:00
2014-09-02 10:57:42 +01:00
2014-10-07 15:19:31 +09:00
2014-10-08 01:24:47 +09:00
2014-09-02 14:53:39 -07:00
2013-11-08 23:36:00 +09:00
2014-07-18 14:45:24 +09:00
2013-11-04 14:25:14 -08:00
2014-05-15 16:47:49 -05:00
2013-09-19 23:21:43 +09:00
2014-09-05 17:13:53 +09:00
2014-06-18 23:31:11 +02:00
2014-01-24 00:55:00 +01:00
2014-10-13 18:45:43 +03:00
2014-03-07 11:51:54 -03:30
2014-06-18 23:31:11 +02:00
2014-11-05 15:18:14 +05:30
2013-12-06 22:36:06 +00:00
2014-01-24 00:55:00 +01:00
2014-06-18 23:31:11 +02:00
2014-06-18 23:31:11 +02:00
2014-08-07 15:50:27 +09:00
2014-08-24 09:57:53 +03:00
2014-08-01 17:26:03 +09:00
2014-04-01 00:37:42 +02:00
2014-09-02 14:53:39 -07:00
2014-09-02 14:53:39 -07:00
2014-06-18 23:31:11 +02:00
2014-01-02 16:34:52 +09:00
2014-10-12 12:19:25 +02:00
2014-11-02 22:20:59 -06:00
2014-06-18 23:31:11 +02:00
2014-01-24 01:19:01 +01:00
2014-09-05 00:43:33 -04:00
2014-06-18 23:31:11 +02:00
2014-10-28 02:53:19 +09:00
2014-06-18 23:31:11 +02:00
2014-09-02 14:53:39 -07:00
2014-10-22 15:40:26 +02:00
2014-03-07 19:01:24 +01:00
2014-01-25 01:08:33 +01:00
2014-09-02 14:53:39 -07:00
2014-09-02 14:53:39 -07:00
2014-09-15 22:52:50 +09:00
2014-02-21 15:03:21 +01:00
2014-04-28 23:42:21 +02:00
2014-10-18 18:08:20 +09:00
2014-01-24 01:19:01 +01:00
2014-05-22 21:05:24 +09:00
2014-04-28 23:55:46 +02:00
2014-07-20 12:13:28 +02:00
2014-05-11 11:45:26 +02:00
2014-06-18 23:31:11 +02:00
2014-08-30 10:22:37 +09:00
2014-01-27 21:40:20 -05:00
2014-09-05 15:29:36 -07:00
2014-07-17 19:20:44 +01:00
2014-06-18 23:31:11 +02:00
2014-04-01 00:49:55 +02:00
2014-10-08 01:25:47 +09:00
2014-04-01 00:36:47 +02:00
2014-06-18 23:31:11 +02:00
2014-10-15 13:14:26 +04:00
2014-10-07 14:46:14 +09:00
2014-09-27 21:26:18 -03:00
2014-08-03 04:47:28 +08:00
2013-11-11 22:31:21 +09:00
2014-09-16 00:20:51 +02:00
2014-04-28 22:00:50 +02:00
2014-08-03 16:44:58 -05:00
2014-06-19 16:56:50 +02:00
2014-08-05 11:06:19 +08:00
2014-10-06 22:02:50 +09:00
2014-06-18 23:31:11 +02:00
2014-06-18 23:31:11 +02:00
2014-08-01 06:49:29 +02:00
2014-11-08 01:52:05 +01:00
2014-05-11 21:10:43 +02:00
2014-09-02 14:53:39 -07:00
2014-09-16 04:11:30 +02:00
2013-11-06 21:14:15 +11:00
2014-07-29 20:58:09 -03:00
2014-04-01 00:36:25 +02:00
2014-01-24 18:51:21 +01:00
2014-09-10 17:12:57 +09:00
2014-09-03 17:08:59 -04:00
2014-06-16 04:25:18 +02:00
2014-08-23 23:23:49 +09:00
2014-09-10 21:24:12 +09:00
2014-04-04 12:26:32 +09:00
2014-09-02 14:53:39 -07:00
2014-05-30 12:34:46 -07:00
2014-10-14 07:49:02 +09:00
2014-06-18 23:31:11 +02:00
2014-11-02 21:13:02 +09:00
2014-10-20 13:05:03 -04:00
2014-09-02 14:53:39 -07:00
2013-08-07 18:02:05 +03:00
2014-09-20 10:10:07 +02:00
2014-09-02 14:53:39 -07:00
2014-09-29 18:18:00 +10:00
2014-07-17 21:21:02 +09:00
2014-08-24 09:57:53 +03:00
2014-06-18 23:31:11 +02:00
2014-06-18 23:31:11 +02:00
2014-08-24 09:57:53 +03:00
2014-10-29 12:09:38 -04:00
2014-09-02 14:53:39 -07:00
2014-09-27 17:25:03 +01:00
2014-09-02 14:53:39 -07:00
2013-09-02 20:07:31 +01:00
2014-06-18 23:31:11 +02:00
2014-06-18 23:31:11 +02:00
2014-06-18 23:31:11 +02:00
2014-06-18 23:31:11 +02:00
2014-09-12 02:44:31 +02:00
2014-08-07 15:50:27 +09:00
2014-01-02 16:34:52 +09:00
2014-05-22 14:41:57 -07:00
2014-09-02 14:53:39 -07:00
2014-09-02 14:53:39 -07:00
2014-05-26 23:34:18 +02:00
2014-08-21 21:25:29 +02:00
2014-09-02 14:53:39 -07:00
2014-08-07 15:50:27 +09:00
2014-11-07 07:01:15 +09:00
2014-06-18 23:31:11 +02:00
2014-06-26 05:43:00 +02:00
2014-06-18 23:31:11 +02:00
2014-05-25 16:50:42 -04:00
2014-06-18 23:31:11 +02:00
2013-11-19 01:40:09 -08:00
2014-01-24 01:56:27 +01:00
2014-06-18 23:31:11 +02:00
2014-09-02 14:53:39 -07:00
2014-10-29 20:07:27 +08:00
2014-11-04 19:08:20 +09:00
2014-11-04 21:15:58 +09:00
2014-04-04 11:20:48 +02:00
2014-06-18 23:31:11 +02:00
2014-10-13 19:38:02 +09:00
2014-09-25 01:40:38 +01:00
2014-09-02 14:53:39 -07:00
2014-04-28 23:48:34 +02:00
2014-08-02 21:59:16 +09:00
2014-11-02 21:13:02 +09:00
2014-09-02 14:53:39 -07:00
2014-09-02 14:53:39 -07:00
2013-08-07 16:59:39 +03:00
2014-08-24 09:57:53 +03:00
2014-11-08 12:45:12 -05:00
2014-09-02 14:53:39 -07:00
2014-04-03 09:31:52 +09:00
2013-09-11 16:47:31 +03:00
2014-08-29 14:34:33 +01:00
2014-02-25 16:32:43 -08:00
2014-09-02 14:53:39 -07:00
2014-05-22 13:53:35 +09:00
2014-06-29 14:52:43 -04:00
2014-09-24 14:32:25 -07:00
2014-10-07 14:44:26 +09:00
2014-08-07 15:01:57 +09:00
2014-10-07 15:04:23 +09:00
2014-04-01 21:07:11 +02:00
2014-10-22 12:20:07 +02:00
2014-11-06 01:04:01 +09:00
2014-09-02 14:53:39 -07:00
2014-06-18 23:31:11 +02:00
2014-11-08 03:42:15 +09:00
2014-06-18 23:31:11 +02:00
2014-07-01 21:44:29 +02:00
2012-12-26 09:28:18 +01:00
2014-10-07 22:56:19 +02:00

DefinitelyTyped Build Status

The repository for high quality TypeScript type definitions.

For more information see the definitelytyped.org website.

Usage

Include a line like this:

/// <reference path="jquery.d.ts" />

Contributions

DefinitelyTyped only works because of contributions by users like you!

Please see the contribution guide on how to contribute to DefinitelyTyped.

How to get the definitions

List of definitions

Requested definitions

Here is an updated list of definitions people have requested.

Licence

This project is licensed under the MIT license.

Copyrights on the definition files are respective of each contributor listed at the beginning of each definition file.

Analytics

S
Description
The repository for high quality TypeScript type definitions.
Readme MIT
98 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 100%