File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
ClientApp/app/components/fetchdata Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
- /// <reference path="../../../../node_modules/aurelia-fetch-client/doc/whatwg-fetch.d.ts" />
1
+ // The following line is a workaround for aurelia-fetch-client requiring the type UrlSearchParams
2
+ // to exist in global scope, but that type not being declared in any public @types/* package.
2
3
/// <reference path="../../../../node_modules/aurelia-fetch-client/doc/url.d.ts" />
4
+
3
5
import { HttpClient } from 'aurelia-fetch-client' ;
4
6
import { inject } from 'aurelia-framework' ;
5
7
Original file line number Diff line number Diff line change 22
22
},
23
23
"devDependencies" : {
24
24
"@types/node" : " ^6.0.45" ,
25
+ "@types/whatwg-fetch" : " 0.0.32" ,
25
26
"aspnet-webpack" : " ^1.0.11" ,
26
27
"aurelia-webpack-plugin" : " ^1.1.0" ,
27
28
"copy-webpack-plugin" : " ^3.0.1" ,
Original file line number Diff line number Diff line change 7
7
"emitDecoratorMetadata" : true ,
8
8
"skipDefaultLibCheck" : true ,
9
9
"lib" : [ " es6" , " dom" ],
10
- "types" : [ " node" ]
10
+ "types" : [ " node" , " whatwg-fetch " ]
11
11
},
12
12
"exclude" : [ " bin" , " node_modules" ],
13
13
"atom" : { "rewriteTsconfig" : false }
You can’t perform that action at this time.
0 commit comments