File tree 7 files changed +23
-9
lines changed
7 files changed +23
-9
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
19
19
} from "@angular/core" ;
20
20
21
21
// Work around a TS bug requiring an import of OpaqueToken without using it
22
- if ( global . ___TS_UNUSED ) {
22
+ if ( ( < any > global ) . ___TS_UNUSED ) {
23
23
( ( ) => {
24
24
return OpaqueToken ;
25
25
} ) ( ) ;
@@ -86,7 +86,7 @@ export class NativeScriptPlatformRef extends PlatformRef {
86
86
}
87
87
88
88
private bootstrapApp ( ) {
89
- global . __onLiveSyncCore = ( ) => this . livesyncModule ( ) ;
89
+ ( < any > global ) . __onLiveSyncCore = ( ) => this . livesyncModule ( ) ;
90
90
91
91
const mainPageEntry = this . createNavigationEntry ( this . _bootstrapper ) ;
92
92
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const DEVICE = new OpaqueToken("platfrom device");
9
9
export const PAGE_FACTORY = new OpaqueToken ( "page factory" ) ;
10
10
11
11
// Work around a TS bug requiring an import of platform.Device without using it
12
- if ( global . ___TS_UNUSED ) {
12
+ if ( ( < any > global ) . ___TS_UNUSED ) {
13
13
( ( ) => {
14
14
return platform ;
15
15
} ) ( ) ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
21
21
} from "@angular/core" ;
22
22
23
23
// Work around a TS bug requiring an import of OpaqueToken without using it
24
- if ( global . ___TS_UNUSED ) {
24
+ if ( ( < any > global ) . ___TS_UNUSED ) {
25
25
( ( ) => {
26
26
return OpaqueToken ;
27
27
} ) ( ) ;
Original file line number Diff line number Diff line change 13
13
"noEmitOnError" : true ,
14
14
"noUnusedLocals" : true ,
15
15
"noUnusedParameters" : true ,
16
- "noImplicitAny" : false
16
+ "noImplicitAny" : false ,
17
+ "lib" : [
18
+ " dom" ,
19
+ " es6"
20
+ ]
17
21
},
18
22
"angularCompilerOptions" : {
19
23
"genDir" : " ." ,
Original file line number Diff line number Diff line change 9
9
"emitDecoratorMetadata" : true ,
10
10
"noImplicitUseStrict" : true ,
11
11
"noEmitHelpers" : true ,
12
- "noEmitOnError" : true
12
+ "noEmitOnError" : true ,
13
+ "lib" : [
14
+ " es6" ,
15
+ " dom" ,
16
+ " es2015.iterable"
17
+ ]
13
18
},
14
19
"exclude" : [
15
20
" node_modules" ,
Original file line number Diff line number Diff line change 1
- global . mocha . setup ( {
1
+ ( < any > global ) . mocha . setup ( {
2
2
timeout : 20000 ,
3
3
} ) ;
4
4
5
5
import * as chai from "chai"
6
- export var assert : typeof chai . assert = global . chai . assert ;
6
+ export var assert : typeof chai . assert = ( < any > global ) . chai . assert ;
Original file line number Diff line number Diff line change 8
8
"emitDecoratorMetadata" : true ,
9
9
"sourceMap" : false ,
10
10
"noEmitHelpers" : true ,
11
- "noEmitOnError" : true
11
+ "noEmitOnError" : true ,
12
+ "lib" : [
13
+ " es6" ,
14
+ " dom" ,
15
+ " es2015.iterable"
16
+ ]
12
17
},
13
18
"exclude" : [
14
19
" node_modules" ,
You can’t perform that action at this time.
0 commit comments