Skip to content

Commit

Permalink
additional cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
david-mcafee committed Sep 13, 2023
1 parent 03ffbdf commit 3f40791
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 0 additions & 2 deletions packages/api-graphql/__tests__/v6-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import * as untypedQueries from './fixtures/without-types/queries';
import * as untypedMutations from './fixtures/without-types/mutations';
import * as untypedSubscriptions from './fixtures/without-types/subscriptions';
import { Observable } from 'zen-observable-ts';
// TODO:
// import { AWSAppSyncRealTimeProvider } from '@aws-amplify/pubsub';
import { InternalPubSub } from '@aws-amplify/pubsub/internals';
import {
expectGet,
Expand Down
9 changes: 2 additions & 7 deletions packages/api-graphql/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import { Source, DocumentNode, GraphQLError } from 'graphql';
export { OperationTypeNode } from 'graphql';
// import { GRAPHQL_AUTH_MODE } from '@aws-amplify/auth';
// export { GRAPHQL_AUTH_MODE };
import { Observable } from 'zen-observable-ts';
// TODO: remove for now:
// import { AWSAppSyncRealTimeProvider } from '@aws-amplify/pubsub';

export type GraphQLAuthMode = 'AWS_IAM' | 'COGNITO_USERPOOLS' | 'API_KEY';

Expand All @@ -16,13 +12,12 @@ export type GraphQLAuthMode = 'AWS_IAM' | 'COGNITO_USERPOOLS' | 'API_KEY';
export interface GraphQLOptions {
query: string | DocumentNode;
variables?: Record<string, unknown>;
// authMode?: GraphQLAuthMode;
authMode?: string;
authToken?: string;
/**
* @deprecated This property should not be used
*/
userAgentSuffix?: string; // TODO: remove in v6
userAgentSuffix?: string;
}

export interface GraphQLResult<T = object> {
Expand Down Expand Up @@ -131,7 +126,7 @@ export interface GraphQLOptionsV6<
/**
* @deprecated This property should not be used
*/
userAgentSuffix?: string; // TODO: remove in v6
userAgentSuffix?: string;
}

/**
Expand Down

0 comments on commit 3f40791

Please sign in to comment.