File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
docs/spfx/web-parts/get-started Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,8 @@ Copy and paste the following code just below `import MockHttpClient from './Mock
174
174
175
175
``` ts
176
176
import {
177
- SPHttpClient
177
+ SPHttpClient ,
178
+ SPHttpClientResponse
178
179
} from ' @microsoft/sp-http' ;
179
180
```
180
181
@@ -183,7 +184,7 @@ Add the following private method to retrieve lists from SharePoint inside the **
183
184
``` ts
184
185
private _getListData (): Promise < ISPLists > {
185
186
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 ) => {
187
188
return response .json ();
188
189
});
189
190
}
You can’t perform that action at this time.
0 commit comments