I am using WebStorm.
How can I add code completion for JavaScript Service Workers?
I assume I need to add the type-script file in settings/languages&frameworks/javascript/libraries/
however I do not see it in the list.
Support for Service Worker APIs will be available in upcoming 2017.3 - see WEB-20529 . Please try 2017.3 EAP - it bundles Typescript stubs for most popular JavaScript APIs:
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.