Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Fix issue with usage in TypeScript projects caused by 'compose' re-export #291

Merged
merged 1 commit into from
Oct 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Expect active development and potentially significant breaking changes in the `0

### vNext

- Bug: Fix issue with usage in TypeScript projects caused by 'compose' re-export. [PR #291](https://github.com/apollostack/react-apollo/pull/291)

### v0.5.12

- Full support for both Apollo Client 0.4.21 and 0.5.0. [PR #277](https://github.com/apollostack/react-apollo/pull/277)
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
"lodash.isequal": "^4.1.1",
"lodash.isobject": "^3.0.2",
"lodash.pick": "^4.4.0",
"object-assign": "^4.0.1",
"recompose": "^0.20.2"
"object-assign": "^4.0.1"
}
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import ApolloProvider from './ApolloProvider';
import graphql, { withApollo } from './graphql';

// expose easy way to join queries from recompose
import compose from 'recompose/compose';
// expose easy way to join queries from redux
import { compose } from 'redux';

export { ApolloProvider, graphql, withApollo, compose };
5 changes: 0 additions & 5 deletions typings.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ declare module 'lodash.pick' {
export = main;
}

declare module 'recompose/compose' {
function hoc(component: any): any;
export default (...hocs) => hoc;
}

declare module 'hoist-non-react-statics' {
/**
* Copies any static properties present on `source` to `target`, excluding those that are specific
Expand Down