fix(Request): Change Request.text's return type to string

Change the return typing for the .text method to `string` so typescript treats it
like a normal string.

Closes #8138
This commit is contained in:
Elliott Davis 2016-04-19 14:13:54 -05:00 committed by Misko Hevery
parent 67c80fbb5e
commit b2e0946696
1 changed files with 1 additions and 1 deletions

View File

@ -84,5 +84,5 @@ export class Request {
* empty
* string.
*/
text(): String { return isPresent(this._body) ? this._body.toString() : ''; }
text(): string { return isPresent(this._body) ? this._body.toString() : ''; }
}