dts-google-apps-script
dts-google-apps-script copied to clipboard
d.ts files for Google Apps Script
This lil change seem to have worked nicely.
Google has recently updated its [Apps Script Reference](https://developers.google.com/apps-script/reference) site. The new left-hand side menu structure isn't recognised by the Cheerio/JQuery selector in `spider.js` hence breaking the collection of data. I...
Minor additions / edits to install procedure in README. This is what I had to do to install / run the code. Does it look like a reasonable change?
はじめまして。gasのd.tsを作ってくださり、ありがとうございます。 TypeScript歴1週間(C#経験者)なので、指摘内容が的外れだった場合はご容赦ください。 早速ですが、一部の「引数の型指定」に、致命的な問題があるように見受けます。 例えば、XmlServiceの「 [addContent(content)](https://developers.google.com/apps-script/reference/xml-service/element#addContent(Content)) 」の引数です。 createElementでElementクラスのオブジェクトを作成し、addContentしようとすると、ElementとContentで「型が異なるぞ」とビルドエラー扱いになってしまいます。(手元に環境がないので、正確なメッセージは失念してます。TS2345だった気がする) [Elementクラスのドキュメント](https://developers.google.com/apps-script/reference/xml-service/element) のTOPにあるサンプルをTypeScriptでコーディングすると、確認できると思います。 「引数content」は、Contentクラスとして「google-apps-script.xml-service.d.ts」に定義されているため、現状では、Contentクラスしか引数に指定できません。 また、「as Content」でキャストもできませんでした。(それ以外の記述の仕方があるのか、わかりませんでした) addContentのドキュメントを見ると、 > The content argument can be a Element object or any node object that corresponds to a...
This generator sets type `String` in a lot of places, where `string` is actually desired. Is this something that can be changed here, at this level?
You need to map Apps Script's "Integer" datatype to ts' "number" primitive. It looks like you are already correctly handling the casing of boolean and string (upper case in gas...
I'm attempting to update type definitions. I cloned this repo and ran `npm install .` (Note: maybe worth adding `npm install` to the readme?) I ran: ```bash node spider.js out.json...
According to https://developers.google.com/apps-script/reference/xml-service/content, several interfaces implement the Content interface.