Skip to content

Commit

Permalink
export connection state type and enum from /api (#12508)
Browse files Browse the repository at this point in the history
* export connection state type and enum from /api

* update exports.test snapshot
  • Loading branch information
iartemiev authored Nov 3, 2023
1 parent c4f5983 commit 2432d39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
export { GraphQLQuery, GraphQLSubscription } from './types';
export { generateClient } from './API';

export { GraphQLAuthError } from '@aws-amplify/api-graphql';
export { GraphQLAuthError, ConnectionState } from '@aws-amplify/api-graphql';

export type {
GraphQLResult,
GraphQLReturnType,
CONNECTION_STATE_CHANGE,
} from '@aws-amplify/api-graphql';

export {
Expand Down
1 change: 1 addition & 0 deletions packages/aws-amplify/__tests__/exports.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ describe('aws-amplify Exports', () => {
Array [
"generateClient",
"GraphQLAuthError",
"ConnectionState",
"get",
"put",
"post",
Expand Down

0 comments on commit 2432d39

Please sign in to comment.