(random JS question) Hi All, I never wrote these ...
# suitescript
m
(random JS question) Hi All, I never wrote these JS comments or docs... what is the point from using this style? and are there plugins that generates it automatically? Thanks
Copy code
/**
   * Defines the WorkflowAction script trigger point.
   * @param {Object} scriptContext
   * @param {Record} scriptContext.newRecord - New record
   * @param {Record} scriptContext.oldRecord - Old record
   * @param {string} scriptContext.workflowId - Internal ID of workflow which triggered this action
   * @param {string} scriptContext.type - Event type
   * @param {Form} scriptContext.form - Current form that the script uses to interact with the record
   * @since 2016.1
   */
  const onAction = (scriptContext) => {
a
yeah IDEs/plugin can auto generate this webstorm, eclipse, maybe VSCode too with an extension In webstorm at least I think they are used to internally to check calling functions have the correct arguments so it can highlight issues as your coding, but I've never actually tested that.
b