google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.61k stars 429 forks source link

Update TypeScript Advanced Services Guide #584

Open grant opened 5 years ago

grant commented 5 years ago

Expected Behavior

Developers can get autocompletion with Advanced Services.

Actual Behavior

No autocompletion.

Steps to Reproduce the Problem

  1. Install @types/google-apps-script

Wait until this PR is merged: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/34212

grant commented 5 years ago

That PR is merged.

Need to update the guide. It may involve modifying the user symbol for the advanced service for autocompletion to work best. (Slides_v1 vs Slides)

grant commented 5 years ago

Also document Apps Script Event types which I added recently:

type SheetsOnOpen = GoogleAppsScript.Events.SheetsOnOpen;

function onOpen(e: SheetsOnOpen) {
  console.log(e.triggerUid);
}