Skip to content

Commit

Permalink
fix(angular): declare missing nodejs namespace for zone.js (#12204)
Browse files Browse the repository at this point in the history
Fixes TIMOB-28200
  • Loading branch information
build committed Oct 22, 2020
1 parent d16ec1d commit 35f59c4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/app/angular-default/template/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
"es2018",
"dom"
],
"preserveSymlinks": true
"preserveSymlinks": true,
"typeRoots": [
"typings",
"node_modules/@types"
]
},
"files": [
"src/main.ts",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Alias NodeJS.Global definition to make zone.js typings happy
// including @types/node clashes with @types/titanium
declare namespace NodeJS {
type Global = Titanium.Global
}

0 comments on commit 35f59c4

Please sign in to comment.