labnol / apps-script-starter

Setup a local development environment inside Visual Studio Code and build Google Workspace add-ons with Google Apps Script

Home Page:https://www.youtube.com/watch?v=KxdCIbeO4Uk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript types in Javascript

shubhankar-mern opened this issue · comments

@labnol you are not using typescript then how come using @types/google-apps-script give you suggestions in your ide??https://youtu.be/KxdCIbeO4Uk?t=1174 ?? how?

i found the answer. ``/**

  • @type {import("@types/google-apps-script")}
    */
    const onOpen = () =>{
    SpreadsheetApp.getUi();
    }`` add the above comment.. and u will get typescript types in javascript.

closing doubt