node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org ยป

flow-interfaces-google-apps-script

flow-interfaces-google-apps-script

npm npm

Usage

NPM or YARN

npm install --save-dev flow-interfaces-google-apps-script

Flow Config

Add the interfaces to your .flowconfig

[libs]
node_modules/flow-interfaces-google-apps-script/definitions

Types

Detailed object types described in the Google Apps Script docs are also available.

These types are prefixed with gas$, e.g. gas$Event.

Example

// @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

Limited

Not Used MimeType

const gasMimeType: gas$$Base$Enum$MimeType = ((MimeType: any): gas$Base$Enum$MimeType);
const mimeType: gas$Base$MimeType = gasMimeType.ZIP;

TODO

Script Services

  • Base
  • Cache
  • Charts
  • Content
  • HTML
  • JDBC
  • Lock
  • Mail
  • Optimization
  • Properties
  • Script
  • URL Fetch
  • Utilities
  • XML

G Suite Service

  • Calendar
  • Contacts
  • Document
  • Drive
  • Forms
  • Gmail
  • Groups
  • Language
  • Maps
  • Spreadsheet

Advanced Google Services

  • 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