This commit is contained in:
Daniel Imms
2019-04-02 08:04:39 -07:00
parent 81dda13218
commit 2e10c8c25e
3 changed files with 9 additions and 7 deletions
+3
View File
@@ -8,6 +8,9 @@ interface INavigator {
language: string;
platform: string;
}
// We're declaring a navigator global here as we expect it in all runtimes (node and browser), but
// we want this module to live in common.
declare const navigator: INavigator;
const isNode = (typeof navigator === 'undefined') ? true : false;
+1 -3
View File
@@ -6,7 +6,5 @@
"../../node_modules/@types/mocha"
]
},
"include": [
"./**/*"
]
"include": [ "./**/*" ]
}
+5 -4
View File
@@ -1,11 +1,12 @@
{
"extends": "../tsconfig-library-base",
"compilerOptions": {
"outDir": "../../lib"
"outDir": "../../lib",
"types": [
"../../node_modules/@types/mocha"
]
},
"include": [
"./**/*", "../common/Platform.ts"
],
"include": [ "./**/*" ],
"references": [
{ "path": "../common" }
]