Skip to content

Commit 9b644c7

Browse files
devversionmmalerba
authored andcommitted
chore: exclude node types for aot demo-app (#2708)
* No longer uses the ambigious Node typings for the AOT compilation (As fixed in bdc48a8) * Renames the `typings.d.ts` into `demo-app-types.d.ts` to make clear what file is used and also to keep consistent with `@types`. * Adds a missing component variable to the `radio` e2e component (necessary for future AOT mode in the e2e-app)
1 parent aab6aee commit 9b644c7

File tree

7 files changed

+6
-4
lines changed

7 files changed

+6
-4
lines changed
File renamed without changes.

src/demo-app/system-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** Type declaration for ambient System. */
2-
declare var System: any;
2+
declare const System: any;
33

44
// Apply the CLI SystemJS configuration.
55
System.config({

src/demo-app/tsconfig-aot.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"target": "es5",
1212
"baseUrl": "",
1313
"typeRoots": [
14-
"../node_modules/@types"
14+
"../node_modules/@types/!(node)"
1515
],
1616
"paths": {
1717
"@angular/material": [
@@ -20,6 +20,7 @@
2020
}
2121
},
2222
"files": [
23+
"./demo-app-types.d.ts",
2324
"./demo-app-module.ts",
2425
"./main-aot.ts"
2526
],
File renamed without changes.

src/e2e-app/radio/radio-e2e.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ import {Component} from '@angular/core';
77
})
88
export class SimpleRadioButtons {
99
isGroupDisabled: boolean = false;
10+
groupValue: string;
1011
}

src/e2e-app/system-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** Type declaration for ambient System. */
2-
declare var System: any;
2+
declare const System: any;
33

44
// Apply the CLI SystemJS configuration.
55
System.config({

src/lib/system-config-spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** Type declaration for ambient System. */
2-
declare var System: any;
2+
declare const System: any;
33

44
// Apply the CLI SystemJS configuration.
55
System.config({

0 commit comments

Comments
 (0)