简体   繁体   中英

Chrome extension codebase has both javascript and typescript

Am working on an existing codebase for a chrome extension, was wondering why each javascript file had a typescript duplicate that seemingly does the same thing. Not sure if any of the typescript functions are even being utilized. Is there a specific reason why the previous coder would have done this?

Check the tsconfig file to verify the output directory used by typescrpt compiler. Ideally output directory should be placed outside source files(typscript version)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM