From 2432d39a311e3645c2482ed21c8c16af77979c6b Mon Sep 17 00:00:00 2001 From: Ivan Artemiev <29709626+iartemiev@users.noreply.github.com> Date: Fri, 3 Nov 2023 13:45:22 -0400 Subject: [PATCH] export connection state type and enum from /api (#12508) * export connection state type and enum from /api * update exports.test snapshot --- packages/api/src/index.ts | 3 ++- packages/aws-amplify/__tests__/exports.test.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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",