Skip to content

Commit

Permalink
chore: replace @ts-expect-error with @ts-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Apr 26, 2024
1 parent baaf8a4 commit 1da4df2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Expand Up @@ -87,6 +87,7 @@ export const resolveAssumeRoleCredentials = async (
const data = profiles[profileName];

if (!options.roleAssumer) {
// @ts-ignore Cannot find module '@aws-sdk/client-sts'
const { getDefaultRoleAssumer } = await import("@aws-sdk/client-sts");
options.roleAssumer = getDefaultRoleAssumer(
{
Expand Down
Expand Up @@ -158,6 +158,7 @@ export const fromWebToken =
let { roleAssumerWithWebIdentity } = init;

if (!roleAssumerWithWebIdentity) {
// @ts-ignore Cannot find module '@aws-sdk/client-sts'
const { getDefaultRoleAssumerWithWebIdentity } = await import("@aws-sdk/client-sts");
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity(
{
Expand Down
1 change: 1 addition & 0 deletions packages/token-providers/src/getNewSsoOidcToken.ts
Expand Up @@ -7,6 +7,7 @@ import { getSsoOidcClient } from "./getSsoOidcClient";
* @internal
*/
export const getNewSsoOidcToken = async (ssoToken: SSOToken, ssoRegion: string) => {
// @ts-ignore Cannot find module '@aws-sdk/client-sso-oidc'
const { CreateTokenCommand } = await import("@aws-sdk/client-sso-oidc");

const ssoOidcClient = await getSsoOidcClient(ssoRegion);
Expand Down
1 change: 1 addition & 0 deletions packages/token-providers/src/getSsoOidcClient.ts
Expand Up @@ -6,6 +6,7 @@ const ssoOidcClientsHash: Record<string, any> = {};
* @internal
*/
export const getSsoOidcClient = async (ssoRegion: string) => {
// @ts-ignore Cannot find module '@aws-sdk/client-sso-oidc'
const { SSOOIDCClient } = await import("@aws-sdk/client-sso-oidc");

// return ssoOidsClient if already created.
Expand Down

0 comments on commit 1da4df2

Please sign in to comment.