Add 'webworker' lib into the TypeScript's compilerOptions
This commit is contained in:
@@ -6,7 +6,6 @@ import {VERSION} from '../util';
|
|||||||
|
|
||||||
onmessage = event => {
|
onmessage = event => {
|
||||||
console.log('version worker received message:', event.data); // eslint-disable-line
|
console.log('version worker received message:', event.data); // eslint-disable-line
|
||||||
// @ts-ignore
|
|
||||||
postMessage(`version: ${VERSION}`);
|
postMessage(`version: ${VERSION}`);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
/* Basic Options */
|
/* Basic Options */
|
||||||
"target": "ES2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
|
"target": "ES2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */
|
||||||
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
|
||||||
"lib": ["es2017", "dom"], /* Specify library files to be included in the compilation. */
|
"lib": ["es2017", "dom", "webworker"], /* Specify library files to be included in the compilation. */
|
||||||
"allowJs": true, /* Allow javascript files to be compiled. */
|
"allowJs": true, /* Allow javascript files to be compiled. */
|
||||||
"checkJs": true, /* Report errors in .js files. */
|
"checkJs": true, /* Report errors in .js files. */
|
||||||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
||||||
|
|||||||
Reference in New Issue
Block a user