Add a few casts to work around issues in ts 2.1.4 (#16861)

This commit is contained in:
Matt Bierner
2016-12-07 13:54:25 -08:00
committed by GitHub
parent 15f1e56f7e
commit b2519ad3c9
2 changed files with 2 additions and 2 deletions
@@ -247,7 +247,7 @@ export class ProjectJSONContribution implements JSONWorkerContribution {
}
return this.getNugetService('SearchQueryService').then(service => {
let queryUrl = service + '?q=' + encodeURIComponent(pack) + '&take=' + 10;
return this.makeJSONRequest<any>(queryUrl).then(resultObj => {
return this.makeJSONRequest<CompletionItem>(queryUrl).then(resultObj => {
let itemResolved = false;
if (Array.isArray(resultObj.data)) {
let results = <any[]>resultObj.data;