diff --git a/packages/api/src/index.ts b/packages/api/src/index.ts index 344268d3ca5..0e13f06739f 100644 --- a/packages/api/src/index.ts +++ b/packages/api/src/index.ts @@ -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 { diff --git a/packages/aws-amplify/__tests__/exports.test.ts b/packages/aws-amplify/__tests__/exports.test.ts index 3fd3015112b..f9cad7933a5 100644 --- a/packages/aws-amplify/__tests__/exports.test.ts +++ b/packages/aws-amplify/__tests__/exports.test.ts @@ -56,6 +56,7 @@ describe('aws-amplify Exports', () => { Array [ "generateClient", "GraphQLAuthError", + "ConnectionState", "get", "put", "post",