Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
Prev Previous commit
Next Next commit
Multiple TS fixes
  • Loading branch information
MarkPieszak committed Aug 18, 2016
commit 801cbf664cf5353df7926b049bb9d574e50e68b8
6 changes: 5 additions & 1 deletion templates/Angular2Spa/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipDefaultLibCheck": true
"skipDefaultLibCheck": true,
"typeRoots": [ "node_modules/@types" ],
"types": [ "requirejs" ]
},
"compileOnSave": false,
"buildOnSave": false,
"exclude": [
"node_modules"
]
Expand Down
6 changes: 5 additions & 1 deletion templates/KnockoutSpa/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
"target": "es5",
"sourceMap": true,
"lib": ["es6", "dom"],
"skipDefaultLibCheck": true
"skipDefaultLibCheck": true,
"typeRoots": [ "node_modules/@types" ],
"types": [ "crossroads", "history", "knockout", "react-router", "requirejs", "signals", "whatwg-fetch" ]
},
"compileOnSave": false,
"buildOnSave": false,
"exclude": [
"node_modules"
]
Expand Down
8 changes: 7 additions & 1 deletion templates/ReactReduxSpa/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
"jsx": "preserve",
"experimentalDecorators": true,
"sourceMap": true,
"skipDefaultLibCheck": true
"skipDefaultLibCheck": true,
"lib": ["es6", "dom"],
"typeRoots": [ "node_modules/@types" ],
"types": [ "react", "react-dom", "react-redux", "react-router", "react-router/history", "react-router-redux", "redux", "redux-thunk",
"source-map", "uglify-js", "webpack", "whatwg-fetch" ]
},
"compileOnSave": false,
"buildOnSave": false,
"exclude": [
"node_modules"
]
Expand Down
11 changes: 11 additions & 0 deletions templates/ReactReduxSpa/types/custom-types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
*
* Temporary type declarations
*
*/

/// <reference types="react-router/history.d.ts" />

declare var module: any;

declare function require<T>(any):any;
6 changes: 5 additions & 1 deletion templates/ReactSpa/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@
"target": "es6",
"jsx": "preserve",
"sourceMap": true,
"skipDefaultLibCheck": true
"skipDefaultLibCheck": true,
"typeRoots": [ "node_modules/@types" ],
"types": [ "react", "react-dom", "react-router", "whatwg-fetch" ]
},
"compileOnSave": false,
"buildOnSave": false,
"exclude": [
"node_modules"
]
Expand Down