Why is webstorm saying this? `Unresolved variable...
# suitescript
c
Why is webstorm saying this?
Unresolved variable UserEventType
b
dont expect code completion for anything not in SuiteScript 2.0 API
m
I finally managed to get the typescript typings working for vanilla JS in webstorm and VSCode
message has been deleted
c
@michoel none of the team in this customer agree to use TS unfortunately. "vanilla only" they say.
m
Yup this is for vanilla JS
I'm in a similar position to you.
b
you can do the vanilla javascript way too
webstorm is smart enough to infer types if you just npm install @hitc/netsuite-types and add appropiate jsdocs
m
yeah that's what exactly what I'm doing but using the longer
@param { (import("N/types").EntryPoints.Suitelet.onRequestContext) } context
syntax so it works in VSCode as well