chatwork-google-apps-script-flow-sample
chatwork-client-gasを利用するコードでflowによる型チェックをするサンプルコードです。
Setup
npm install --global yarn
yarn
Usage
$ yarn run flow
yarn run flow
yarn run v1.0.2
$ "eiel-sample-code/chatwork-google-apps-script-flow-sample/node_modules/.bin/flow"
Launching Flow server for eiel-sample-code/chatwork-google-apps-script-flow-sample
Spawned flow server
Library type error:
node_modules/flow-interfaces-chatwork-client-gas/definitions/ChatWork.js:8
8: factory(config: gas$ChatWork$Config): gas$ChatWorkClient$ChatWork;
^^^^^^^^^^^^^^^^^^^ property `token` of gas$ChatWork$Config. Property not found in
4: var client = ChatWorkClient.factory({tokn: 'xxx'}); // typo token
^^^^^^^^^^^^^ object literal. See: index.js:4
Found 1 error
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
>