Incorrespondence of @types/google-apps-script.

13 views
Skip to first unread message

Takuya HARA

unread,
Mar 29, 2023, 2:12:05 AM3/29/23
to Google Apps Script Community
I use clasp to write code locally. I found that types provided by @types/google-apps-script does not correspond on server-side types. For example a response type of UrlFetchApp is UrlFetchApp.HTTPResponse on server-side but is GoogleAppsScript.URL_Fetch.HTTPResponse on local. How this incorrespondence can be solved?

DimuDesigns

unread,
Mar 29, 2023, 8:46:05 AM3/29/23
to Google Apps Script Community
I suspect that the type definitions used locally with Clasp were created by a 3rd party not affiliated with Google. So the two won't perfectly align. If you can find the author of those type definitions maybe you can ask them to update the type definitions to match those in the GAS IDE.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages