Newbie alert!!
When you require a module in your code such as below and you hover your mouse on a function your calling from that module you get a pop up with some documentation about the function ie parameters, returns and throws etc etc
const AWS = require("aws-sdk");
const cognito = new AWS.CognitoIdentityServiceProvider({ apiVersion: "2016-04-18" });
In my own modules where I have written functions and then required them I have documented each function as per below example
/**
* Given a user's profile, create a new session (kill any previous sessions)
* @param profile The users profile
* @throws Exception if the user is not a valid user.
*/
When I hover on the function in the module that contains the function code I can see the documentation box appear.
However when I hover of the function in the module that's actually calling the function I get nothing.
You also get intellisense type functionality so when you type cognito. you get a popup with all the available functions.
Whats missing to get my functions to appear like that also? They are all exported using
module.exports.funcName = funcName;
Anyone?
Thanks in advance