From fae5c521d87cf89558c29c7bce91ecd19de92ee6 Mon Sep 17 00:00:00 2001 From: ajitsinghkaler Date: Mon, 20 Jan 2020 23:32:21 +0530 Subject: [PATCH] docs: change docs for get request return object type checking (#34845) earlier in the docs it was told that adding typescript's type checking make json response typed so changed docs to say that it adds all typescipt capabilities during compile time Fixes #34746 PR Close #34845 --- aio/content/tutorial/toh-pt6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/content/tutorial/toh-pt6.md b/aio/content/tutorial/toh-pt6.md index 985997aaea..af9689e657 100644 --- a/aio/content/tutorial/toh-pt6.md +++ b/aio/content/tutorial/toh-pt6.md @@ -140,7 +140,7 @@ This particular `HttpClient.get()` call returns an `Observable`; that is ### `HttpClient.get()` returns response data `HttpClient.get()` returns the body of the response as an untyped JSON object by default. -Applying the optional type specifier, `` , gives you a typed result object. +Applying the optional type specifier, `` , adds TypeScript capabilities, which reduce errors during compile time. The server's data API determines the shape of the JSON data. The _Tour of Heroes_ data API returns the hero data as an array.