Skip to content

Commit f4c12a1

Browse files
committed
Updated Connected HelloWorld guidance article
1 parent 7232a5f commit f4c12a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/spfx/web-parts/get-started/connect-to-sharepoint.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ Copy and paste the following code just below `import MockHttpClient from './Mock
174174

175175
```ts
176176
import {
177-
SPHttpClient
177+
SPHttpClient,
178+
SPHttpClientResponse
178179
} from '@microsoft/sp-http';
179180
```
180181

@@ -183,7 +184,7 @@ Add the following private method to retrieve lists from SharePoint inside the **
183184
```ts
184185
private _getListData(): Promise<ISPLists> {
185186
return this.context.spHttpClient.get(this.context.pageContext.web.absoluteUrl + `/_api/web/lists?$filter=Hidden eq false`, SPHttpClient.configurations.v1)
186-
.then((response: Response) => {
187+
.then((response: SPHttpClientResponse) => {
187188
return response.json();
188189
});
189190
}

0 commit comments

Comments
 (0)