Chen Zhutian 27986da0aa add request.body (#11395)
* add request.body

* Update koa-bodyparser.d.ts

According to the documentation of `koa-bodyparser`:
```javascript
 // the parsed body will store in this.request.body
 // if nothing was parsed, body will be an empty object {}
 ctx.body = ctx.request.body;
```

Therefore the `body` property will exit in the `request` object.
Changing the `body` property from optional to required can also fix the conflict problem in Koa's declaration file:
```ts
 class Koa extend Request, Response {}
```
2016-09-28 21:24:41 +09:00
2016-07-26 14:59:34 +09:00
…
2016-08-11 13:13:12 +02:00
2016-08-07 10:24:54 +08:00
2016-08-07 02:10:38 -04:00
2016-09-09 18:43:00 +07:00
…
2016-07-23 23:01:10 -07:00
2016-06-30 17:29:16 +02:00
…
…
2016-08-11 13:13:12 +02:00
2016-08-04 13:33:11 +02:00
2016-09-14 21:45:16 +09:00
…
2016-08-16 19:46:02 -05:00
2016-09-08 19:29:39 +03:00
2016-07-06 06:19:20 -04:00
2016-09-06 23:11:58 +09:00
2016-09-27 23:17:03 +09:00
2016-09-14 21:45:38 +09:00
2016-09-19 23:04:19 -07:00
2016-08-14 12:10:50 +03:00
2016-09-25 22:43:40 +08:00
…
2016-08-06 23:16:44 -03:00
2016-07-24 17:13:33 +07:00
2016-08-30 16:19:45 +08:00
2016-07-28 20:06:22 +03:00
…
…
…
2016-09-15 22:24:40 +09:00
…
…
…
2016-08-06 15:33:57 -04:00
2016-07-06 01:01:17 +02:00
2016-09-14 22:20:28 +09:00
2016-07-14 10:42:17 +02:00
…
…
2016-08-23 13:36:04 +02:00
2016-08-02 22:12:56 +07:00
…
…
…
2016-07-04 11:46:19 +09:00
…
2016-09-06 17:57:44 -07:00
2016-09-23 21:26:57 +09:00
…
…
…
…
…
2016-08-12 15:46:44 +03:00
…
2016-09-23 22:14:51 +09:00
…
2016-09-08 13:17:47 +08:00
2016-09-24 13:37:33 -04:00
…
…
2016-09-07 20:44:37 +09:00
…
2016-09-19 16:23:35 +09:00
2016-08-10 16:20:48 +02:00
…
2016-08-08 14:08:07 +02:00
2016-06-29 09:49:20 +08:00
…
…
2016-08-30 17:28:00 -05:00
…
2016-09-27 18:04:58 -04:00
…
…
…
2016-09-07 19:52:11 +09:00
…
…
…
2016-08-09 19:33:33 +08:00
…
…
…
2016-08-19 11:26:34 -04:00
…
2016-08-26 11:09:07 +09:00
2016-08-18 22:03:03 +05:30
…
…
2016-08-06 21:24:36 +05:30
2016-07-24 00:08:10 -07:00
2016-08-30 17:28:00 -05:00
2016-09-09 23:26:34 +09:00
…
2016-09-07 21:27:40 -07:00
…
…
…
…
2016-08-11 13:13:12 +02:00
…
…
…
…
2016-08-01 10:46:31 +09:30
2016-09-08 15:32:39 -05:00
2016-07-23 20:02:53 -07:00
2016-08-04 14:09:56 -04:00
2016-09-20 18:14:10 +03:00
…
2016-09-06 14:09:21 -04:00
…
…
2016-08-20 19:00:18 +09:00
2016-08-11 15:58:47 +02:00
…
2016-08-15 18:56:27 +02:00
2016-09-07 20:43:24 +09:00
…
2016-08-11 13:13:12 +02:00
2016-09-25 16:22:47 -07:00
2016-09-23 21:41:17 +09:00
2016-09-23 20:53:38 +09:00
2016-09-28 21:24:41 +09:00
…
2016-08-11 13:13:12 +02:00
…
…
…
2016-08-12 15:42:17 -07:00
…
…
2016-07-29 19:00:42 -07:00
2016-08-03 00:28:53 -07:00
2016-08-26 14:15:36 -07:00
2016-06-28 12:13:03 +08:00
2016-08-30 20:20:41 +10:00
…
…
…
…
2016-08-30 17:41:58 -06:00
2016-07-19 17:33:53 -07:00
2016-08-18 09:50:21 -05:00
…
…
…
…
2016-09-26 17:47:40 -05:00
2016-09-06 12:50:56 +02:00
2016-08-11 13:13:12 +02:00
2016-08-30 03:06:28 +09:00
…
2016-08-12 14:13:19 +02:00
2016-08-30 03:08:32 +09:00
2016-07-01 14:58:13 -07:00
2016-09-09 17:33:04 +09:00
2016-09-25 15:03:32 +08:00
2016-09-08 09:33:34 +02:00
2016-09-02 15:03:32 +03:00
…
2016-09-07 19:57:32 +09:00
…
…
…
…
…
2016-08-30 17:28:00 -05:00
…
…
2016-08-11 13:13:12 +02:00
…
2016-08-18 21:03:32 +01:00
2016-09-20 16:44:20 +02:00
2016-08-29 13:28:16 +02:00
2016-09-09 22:15:34 +02:00
2016-06-28 09:30:33 +02:00
2016-08-11 13:13:12 +02:00
2016-08-12 14:14:21 +02:00
2016-09-07 10:06:58 -04:00
2016-09-25 01:33:59 +03:00
2016-07-23 23:27:14 -07:00
2016-08-13 19:55:05 +02:00
2016-07-23 23:45:00 -07:00
2016-07-23 23:45:00 -07:00
2016-07-23 23:45:00 -07:00
2016-07-23 23:45:00 -07:00
2016-07-23 23:45:00 -07:00
2016-07-23 23:45:00 -07:00
2016-07-23 23:45:00 -07:00
2016-09-19 21:29:07 +02:00
2016-07-23 23:45:00 -07:00
2016-07-23 23:45:00 -07:00
2016-07-23 23:45:00 -07:00
2016-07-23 23:45:00 -07:00
2016-09-19 16:23:24 +09:00
…
…
…
2016-07-06 21:00:53 -04:00
2016-08-24 16:26:52 +02:00
2016-09-20 20:01:18 +02:00
…
2016-09-07 20:43:01 +09:00
2016-07-08 12:26:48 +09:00
2016-09-27 09:23:13 +01:00
2016-08-06 16:24:14 +09:00
2016-08-15 21:12:56 +01:00
2016-08-16 20:11:47 +09:00
2016-07-07 09:51:22 +02:00
2016-07-05 21:32:26 +02:00
2016-07-07 09:54:14 +02:00
2016-07-07 10:04:22 +02:00
2016-07-08 12:23:48 +02:00
…
2016-08-18 13:00:30 +02:00
2016-08-11 13:13:12 +02:00
2016-07-06 21:01:33 +02:00
…
2016-07-11 09:28:08 -04:00
2016-07-26 09:09:08 +07:00
2016-09-19 14:56:14 -04:00
…
2016-09-20 19:00:54 -04:00
2016-09-14 20:41:52 +09:00
2016-09-22 14:47:00 -07:00
…
…
2016-07-04 11:39:46 +09:00
…
…
2016-07-19 23:31:29 -07:00
2016-08-19 12:36:24 -07:00
2016-09-24 21:03:26 +09:00
…
…
2016-07-29 00:23:13 +09:00
…
…
2016-08-11 23:30:59 +02:00
…
…
2016-09-06 22:42:05 +09:00
…
…
…
…
2016-07-04 23:30:36 +09:00
…
…
…
2016-09-20 10:46:08 -04:00
…
2016-08-11 13:13:12 +02:00
…
2016-07-29 00:26:00 +09:00
2016-07-23 23:36:29 -07:00
2016-06-27 11:21:03 +02:00
…
…
2016-07-19 23:35:10 -07:00
2016-09-14 21:56:56 +09:00
2016-09-24 08:13:22 -04:00
2016-07-20 19:12:45 +09:00
2016-08-01 16:54:46 +02:00
…
2016-08-03 00:16:35 +09:00
…
…
2016-08-01 21:15:43 +04:30
2016-08-05 11:37:14 -05:00
2016-09-23 20:48:54 +03:00
…
…
2016-08-11 22:51:52 +03:00
2016-09-22 10:55:11 -04:00
2016-09-25 08:21:10 -07:00
…
…
…

DefinitelyTyped Build Status

Join the chat at https://gitter.im/borisyankov/DefinitelyTyped

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 are the currently requested definitions.

License

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
No description provided
Readme MIT
395 MiB
Languages
TypeScript 100%