diff --git a/types/mobx-apollo/mobx-apollo-tests.ts b/types/mobx-apollo/mobx-apollo-tests.ts index d90ff873f2..964e6b0c6e 100644 --- a/types/mobx-apollo/mobx-apollo-tests.ts +++ b/types/mobx-apollo/mobx-apollo-tests.ts @@ -1,17 +1,14 @@ -import { computed } from 'mobx'; import { ApolloClient } from 'apollo-client'; -import gql from 'graphql-tag'; - import query from 'mobx-apollo'; -const PostsQuery = gql` +const PostsQuery = ` { posts { id title } } -`; +` as any; interface Post { id: string; @@ -19,7 +16,6 @@ interface Post { } class PostStore { - @computed private get postsQuery() { return query<{ posts: Post[] }>({ client: new ApolloClient({ @@ -30,7 +26,6 @@ class PostStore { }); } - @computed get posts() { return this.postsQuery.data.posts; } diff --git a/types/mobx-apollo/package.json b/types/mobx-apollo/package.json index 197ba27ae8..da0ffc3953 100644 --- a/types/mobx-apollo/package.json +++ b/types/mobx-apollo/package.json @@ -1,8 +1,6 @@ { "private": true, "dependencies": { - "apollo-client": "^2.0.0", - "graphql-tag": "^2.0.0", - "mobx": "^3.0.0" + "apollo-client": "^2.0.0" } } diff --git a/types/mobx-apollo/tsconfig.json b/types/mobx-apollo/tsconfig.json index c18e0f5512..c4c2acace4 100644 --- a/types/mobx-apollo/tsconfig.json +++ b/types/mobx-apollo/tsconfig.json @@ -3,7 +3,6 @@ "module": "commonjs", "lib": ["es6"], "target": "es5", - "experimentalDecorators": true, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true,