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.
23/// <reference path="../../../../node_modules/aurelia-fetch-client/doc/url.d.ts" />
4+
35import { HttpClient } from 'aurelia-fetch-client' ;
46import { inject } from 'aurelia-framework' ;
57
Original file line number Diff line number Diff line change 2222 },
2323 "devDependencies" : {
2424 "@types/node" : " ^6.0.45" ,
25+ "@types/whatwg-fetch" : " 0.0.32" ,
2526 "aspnet-webpack" : " ^1.0.11" ,
2627 "aurelia-webpack-plugin" : " ^1.1.0" ,
2728 "copy-webpack-plugin" : " ^3.0.1" ,
Original file line number Diff line number Diff line change 77 "emitDecoratorMetadata" : true ,
88 "skipDefaultLibCheck" : true ,
99 "lib" : [ " es6" , " dom" ],
10- "types" : [ " node" ]
10+ "types" : [ " node" , " whatwg-fetch " ]
1111 },
1212 "exclude" : [ " bin" , " node_modules" ],
1313 "atom" : { "rewriteTsconfig" : false }
You can’t perform that action at this time.
0 commit comments