In AureliaSpa, use whatwg-fetch to provide type info

This commit is contained in:
SteveSandersonMS
2016-10-28 15:11:25 +01:00
parent acfb253a40
commit 6bceb234d8
3 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
/// <reference path="../../../../node_modules/aurelia-fetch-client/doc/whatwg-fetch.d.ts" />
// The following line is a workaround for aurelia-fetch-client requiring the type UrlSearchParams
// to exist in global scope, but that type not being declared in any public @types/* package.
/// <reference path="../../../../node_modules/aurelia-fetch-client/doc/url.d.ts" />
import { HttpClient } from 'aurelia-fetch-client';
import { inject } from 'aurelia-framework';