Skip to content

Commit

Permalink
Merge pull request #1688 from apollographql/flow
Browse files Browse the repository at this point in the history
add initial flow typings for apollo-client
  • Loading branch information
helfer authored Jun 1, 2017
2 parents 113a991 + 80a6eb9 commit 2f76f2a
Show file tree
Hide file tree
Showing 7 changed files with 1,201 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[ignore]

[include]

[libs]
./index.js.flow

[options]
suppress_comment= \\(.\\|\n\\)*\\$ExpectError
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ install:
script:
- npm test

# test flow types (validity and use cases)
- npm run flow-check

# run coverage and file size checks
- npm run coverage
- coveralls < ./coverage/lcov.info || true # ignore coveralls error
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Make ApolloClient.resetStore() and QueryManager.resetStore() return a promise instead of void [PR #1674](https://github.com/apollographql/apollo-client/pull/1674)
- Fix bug that caused errors in `writeToStore` to be rethrown as uncaught errors [PR #1673](https://github.com/apollographql/apollo-client/pull/1673)
- Feature: Pass a function to `optimisticResponse` and it will be called with the `variables` passed to the mutation [PR #1720](https://github.com/apollographql/apollo-client/pull/1720)
- Feature: Added support flow flow typechecking [PR #1688](https://github.com/apollographql/apollo-client/pull/1688)

### 1.2.2
- Fix: Remove race condition in queryListenerFromObserver [PR #1670](https://github.com/apollographql/apollo-client/pull/1670)
Expand Down
Loading

0 comments on commit 2f76f2a

Please sign in to comment.