From a7e61b7a5d89846d26c7e95d436462e0f63042b4 Mon Sep 17 00:00:00 2001 From: Vesa Juvonen Date: Thu, 9 Mar 2017 21:36:18 +0200 Subject: [PATCH] Updated tutorial code to align with written article --- .../src/webparts/helloWorld/HelloWorldWebPart.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tutorials/hello-world-sp/src/webparts/helloWorld/HelloWorldWebPart.ts b/tutorials/hello-world-sp/src/webparts/helloWorld/HelloWorldWebPart.ts index d6d0d8a61..a6319895f 100644 --- a/tutorials/hello-world-sp/src/webparts/helloWorld/HelloWorldWebPart.ts +++ b/tutorials/hello-world-sp/src/webparts/helloWorld/HelloWorldWebPart.ts @@ -14,7 +14,8 @@ import * as strings from 'helloWorldStrings'; import { IHelloWorldWebPartProps } from './IHelloWorldWebPartProps'; import MockHttpClient from './MockHttpClient'; import { - SPHttpClient + SPHttpClient, + SPHttpClientResponse } from '@microsoft/sp-http'; import { Environment, @@ -64,7 +65,7 @@ export default class HelloWorldWebPart extends BaseClientSideWebPart { return this.context.spHttpClient.get(this.context.pageContext.web.absoluteUrl + `/_api/web/lists?$filter=Hidden eq false`, SPHttpClient.configurations.v1) - .then((response: Response) => { + .then((response: SPHttpClientResponse ) => { return response.json(); }); }