fix: types error.

This commit is contained in:
Ivan 2021-07-01 14:01:12 +08:00
parent b031797271
commit 4ef5b5b3bc
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,5 @@
overwrite: true
schema: "http://api.blog.localhost/graphql"
schema: "http://localhost:7132/graphql"
generates:
commons/graphql/generated.tsx:
plugins:

View File

@ -1,5 +1,11 @@
import { useMemo } from "react";
import { ApolloClient, from, HttpLink, InMemoryCache } from "@apollo/client";
import {
ApolloClient,
from,
HttpLink,
InMemoryCache,
NormalizedCacheObject,
} from "@apollo/client";
import { concatPagination } from "@apollo/client/utilities";
import { equals, mergeDeepWith } from "ramda";
import { onError } from "@apollo/client/link/error";
@ -11,7 +17,7 @@ export const client = new ApolloClient({
export const APOLLO_STATE_PROP_NAME = "__APOLLO_STATE__";
let apolloClient: ApolloClient<InMemoryCache>;
let apolloClient: ApolloClient<NormalizedCacheObject>;
function createApolloClient() {
const httpLink = new HttpLink({