After creating a new script in the GAS web editor, I decided to include type notations in the .gs file for some reason:
https://i.sstatic.net/LML0G.png
Despite seeing red squiggly lines under the type notation, I noticed that autocomplete was suggesting String methods when using text within helloWorld.
https://i.sstatic.net/JBJoa.png
Although hovering over the squiggled text did not provide any information, clicking the lightbulb next to the line presented me with ts ignore options:
https://i.sstatic.net/Ru49K.gif
Upon attempting to save or run the code, an error message appeared:
Syntax error: SyntaxError: Unexpected token ':' line: 7 file: Code.ts.gs
While aware that typescript can be utilized in local environments for developing GAS’s, the behavior of the web editor suggests there might be additional functionality. Although I searched the documentation, I could not find any relevant information on this particular behavior.
Therefore, my inquiry is: Is this a feature or a bug? If it's a feature, how can typing be integrated into the web editor? It significantly enhances autocompletion for the GAS libraries as well!!