-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeScript support #77
Comments
Provide a guide like this: |
You can get very good TypeScript support by installing types and compiling before pushing. https://blog.filippo.io/gmail-bot-with-apps-script-and-typescript/ |
It would be great if this could be officially supported with types provided by the appscript / clasp team. |
TypeScript is supported with clasp@1.5 🎉 The supported types are at @types/google-apps-script. I'll update that package with updated Apps Script types every so often. Please report issues with the types in the types source code: https://github.com/DefinitelyTyped/DefinitelyTyped Closing as fixed. |
Expected Behavior
You should be able to code Apps Script locally with autocompleting types. This is the main advantage of using script.google.com IMO.
Actual Behavior
You can use clasp to download/upload projects, but it's not feasible to develop Apps Script locally.
Implementation
Transpile all
ts
filesclasp push
.Caveat: You can't
clasp pull
to updatets
files, but we're moving away the Apps Script editor anyways.The text was updated successfully, but these errors were encountered: