npm install --save-dev flow-interface-google-apps-script
Add the interfaces to your .flowconfig
[libs]
node_modules/flow-interfaces-google-apps-script/definitions
Detailed object types described in the Google Apps Script docs are also available.
These types are prefixed with gas$, e.g. gas$Event.
// @flow
const res: gas$HTTPResponse = UrlFetchApp.fetch("hoge");
const res2: number = res
$ flow
Error: index.js:3
3: const res2: number = res
^^^ gas$HTTPResponse. This type is incompatible with
3: const res2: number = res
^^^^^^ number
Found 1 error
Not Used MimeType
const gasMimeType: gas$$Base$Enum$MimeType = ((MimeType: any): gas$Base$Enum$MimeType);
const mimeType: gas$Base$MimeType = gasMimeType.ZIP;
- Base
- Cache
- Charts
- Content
- HTML
- JDBC
- Lock
- Optimization
- Properties
- Script
- URL Fetch
- Utilities
- XML
- Calendar
- Contacts
- Document
- Drive
- Forms
- Gmail
- Groups
- Language
- Maps
- Spreadsheet
- Admin SDK
- AdSense
- Analytics
- Apps Activity
- BigQuery
- Calendar
- Classroom
- Drive
- DoubleClick Campaigns
- Fusion Tables
- Gmail
- Google+
- Google+ Domains
- Mirror
- Prediction
- Sheets
- Shopping Content
- Slides
- Tasks
- Tag Manager
- URL Shortener
- YouTube