- Learn React with TypeScript 3
- Carl Rippon
- 63字
- 2021-06-10 19:16:38
--allowJS
This option tells the TypeScript compiler to process JavaScript files as well as TypeScript files. This is useful if we've written some of our code in JavaScript and used features that haven't been implemented yet in all browsers. In this situation, we can use the TypeScript compiler to transpile our JavaScript into something that will work with a wider range of browsers.