Skip to content

Commit

Permalink
remove apollo dep
Browse files Browse the repository at this point in the history
  • Loading branch information
ncovercash committed Jan 8, 2024
1 parent 01dff74 commit 13b24f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
},
"dependencies": {
"@folio/stripes-react-hotkeys": "^3.0.0",
"apollo-client": "^2.6.10",
"ky": "^0.33.3",
"moment": "^2.29.4",
"popper.js": "^1.16.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ApolloError } from 'apollo-client';
import { ApolloConnectedSourceProps, ConnectedSource, StripesError } from './ConnectedSource';
import Logger from '../../../../util/logger';
import { ApolloConnectedSourceProps, ApolloError, ConnectedSource } from './ConnectedSource';

export default class ApolloConnectedSource implements ConnectedSource {
constructor(props: ApolloConnectedSourceProps, logger: Logger, resourceName?: string);
Expand All @@ -10,6 +9,7 @@ export default class ApolloConnectedSource implements ConnectedSource {
pending(): boolean;
loaded(): boolean;
failure(): ApolloError | null | undefined;

failureMessage(): string;
fetchMore(increment: number): void;
successfulMutations(): unknown[];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import { ApolloError } from 'apollo-client';
import Logger from '../../../../util/logger';
import { QueryFunction } from '../makeQueryFunction';

type ApolloError = {
message: string;
graphQLErrors: unknown[];
networkError: Error | null;
extraInfo: any;
};

export interface ApolloConnectedSourceProps {
apolloResource?: string;
apolloRecordsKey: string;
Expand Down

0 comments on commit 13b24f5

Please sign in to comment.