From b2e0946696933376ba2999abac2e5ddf0dd5d162 Mon Sep 17 00:00:00 2001 From: Elliott Davis Date: Tue, 19 Apr 2016 14:13:54 -0500 Subject: [PATCH] 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 --- modules/@angular/http/src/static_request.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/@angular/http/src/static_request.ts b/modules/@angular/http/src/static_request.ts index 92f6c902dd..bc7bf7e6f1 100644 --- a/modules/@angular/http/src/static_request.ts +++ b/modules/@angular/http/src/static_request.ts @@ -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() : ''; } }