Update templates to TypeScript 2.2.1 and fix whatwg-fetch related errors. Fixes #705

This commit is contained in:
Steve Sanderson
2017-02-23 10:07:03 +00:00
parent 627ea78e72
commit 689f106181
11 changed files with 12 additions and 21 deletions

View File

@@ -1,7 +1,3 @@
// 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';

View File

@@ -22,7 +22,6 @@
},
"devDependencies": {
"@types/node": "^6.0.45",
"@types/whatwg-fetch": "0.0.32",
"aspnet-webpack": "^1.0.11",
"aurelia-webpack-plugin": "^1.1.0",
"copy-webpack-plugin": "^3.0.1",
@@ -38,7 +37,7 @@
"style-loader": "^0.13.1",
"to-string-loader": "^1.1.5",
"ts-loader": "^0.8.2",
"typescript": "^2.0.0",
"typescript": "^2.2.1",
"url-loader": "^0.5.7",
"webpack": "2.1.0-beta.25",
"webpack-hot-middleware": "^2.10.0"

View File

@@ -7,7 +7,7 @@
"emitDecoratorMetadata": true,
"skipDefaultLibCheck": true,
"lib": [ "es6", "dom" ],
"types": [ "node", "whatwg-fetch" ]
"types": [ "node" ]
},
"exclude": [ "bin", "node_modules" ],
"atom": { "rewriteTsconfig": false }