community.
I have a stand-alone apps-script file called 2022 Journiq that reads, format and set values to/from many sheets. It works fine. But stand-alone files can't work with onEdit(e), so:
Forms;2022 Journiq ('cause many videos and forums told me so) and it worked fine, as well;The problem is that when I do
myLibrary.whateverFunc().whateverSubFunc(), I don't receive the completions, so I have to remember all function names by heart??
return mistake. This is not the case, because apps-script displays the list of subFunctions in 2022 Journiq, but not in Forms;privFunc_;Here follow my attempt:
const {getMySpreadsheets} = JourniqAutomation // << my library
function doSomething(e){
const eClass = getMySpreadsheets() // << when I type '.' no functions appear
}
This is inside 2022 Journiq
function getMySpreadsheets(){
this.access = (id) => SpreadsheetApp.openById(id)
this.getSpreadSheet01 = ( ) => this.access ('*****');
this.getSpreadsSheet02 = ( ) => this.access ('*****');
return this
}
I was about to deploy it as a private add-on to check if it solves the problem, but it seems like a complicated process for me, so the question still remains: why does the Subclasses of my library won't show?