diff --git a/packages/api-graphql/package.json b/packages/api-graphql/package.json index 4e4b9e3a412..e8674a2f452 100644 --- a/packages/api-graphql/package.json +++ b/packages/api-graphql/package.json @@ -54,7 +54,7 @@ "@aws-amplify/api-rest": "4.0.0", "@aws-amplify/auth": "6.0.0", "@aws-amplify/core": "6.0.0", - "@aws-amplify/amplify-api-next-types-alpha": "^0.2.5", + "@aws-amplify/amplify-api-next-types-alpha": "^0.2.8", "@aws-sdk/types": "3.387.0", "graphql": "15.8.0", "tslib": "^2.6.1", diff --git a/packages/api/src/API.ts b/packages/api/src/API.ts index bebd4480630..7a6d0dabbf6 100644 --- a/packages/api/src/API.ts +++ b/packages/api/src/API.ts @@ -13,5 +13,5 @@ export function generateClient = never>( return internalGenerateClient({ ...options, amplify: Amplify, - }); + }) as unknown as V6Client; } diff --git a/yarn.lock b/yarn.lock index ee9aad5daa2..a42c6405673 100644 --- a/yarn.lock +++ b/yarn.lock @@ -17,10 +17,10 @@ dependencies: "@aws-amplify/amplify-api-next-types-alpha" "*" -"@aws-amplify/amplify-api-next-types-alpha@*", "@aws-amplify/amplify-api-next-types-alpha@^0.2.5": - version "0.2.5" - resolved "https://registry.yarnpkg.com/@aws-amplify/amplify-api-next-types-alpha/-/amplify-api-next-types-alpha-0.2.5.tgz#5f7e9475e1a15488bbc89e841968a2cafe393426" - integrity sha512-KkL/y5VuGajpxcxEtwaMNBNyHWy/ZtfUUBGwTzh1YdgxEWYW9MCGBt+InB9KH64CHuD0dp/eJgG5qGjneNzr4Q== +"@aws-amplify/amplify-api-next-types-alpha@*", "@aws-amplify/amplify-api-next-types-alpha@^0.2.8": + version "0.2.8" + resolved "https://registry.npmjs.org/@aws-amplify/amplify-api-next-types-alpha/-/amplify-api-next-types-alpha-0.2.8.tgz#a72c70bd5b26fd0ff43c659701f7c9593f4baee6" + integrity sha512-FmRaSUfLk7ydXeS3DkFf4WnP9hKUJtQHvlELMwYnRb3Pw8e7XujaaawhKZWA2JiIAqwWt7KJr5vskC+3yYUrUw== dependencies: rxjs "^7.8.1"