Skip to content
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 types for services #821

Closed
tmc opened this issue Dec 22, 2020 · 2 comments
Closed

typescript types for services #821

tmc opened this issue Dec 22, 2020 · 2 comments

Comments

@tmc
Copy link

tmc commented Dec 22, 2020

It doesn't appear that @types/google-apps-script has types for DocumentApp, SpreadsheetApp, etc.

Are these available/published anywhere?

@oshliaer
Copy link
Contributor

oshliaer commented Dec 23, 2020

You need to use this as a part of your npm project. There is no a clasp dependencies.

https://www.npmjs.com/package/@types/google-apps-script

Also you can define global entry pointers for your eslint settings https://github.com/selectnull/eslint-plugin-googleappsscript (if you're using)

As for the clasp itself it works in an environment other than Google Apps Script and it doesn't have access to this environment.

Hope I understood you correctly.

@PopGoesTheWza
Copy link
Collaborator

@types/google-apps-script issues should be discussed under https://github.com/DefinitelyTyped/DefinitelyTyped

You may give a look at this template https://github.com/PopGoesTheWza/ts-gas-project-starter for setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants