Skip to content

Commit d2f3c4f

Browse files
committed
refactor: add stronger typing
1 parent 49195c3 commit d2f3c4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/auth/providers/sharedCredentialsProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import {
2828
Profile,
2929
Section,
3030
} from '../credentials/sharedCredentials'
31-
import { SectionName, SharedCredentialsKeys } from '../credentials/types'
31+
import { CredentialsData, SectionName, SharedCredentialsKeys } from '../credentials/types'
3232
import { SsoProfile, hasScopes, scopesSsoAccountAccess } from '../connection'
3333
import { builderIdStartUrl } from '../sso/constants'
3434
import { ToolkitError } from '../../shared'
@@ -390,7 +390,7 @@ export class SharedCredentialsProvider implements CredentialsProvider {
390390

391391
return async () => {
392392
// Docs for config file format: https://docs.aws.amazon.com/sdkref/latest/guide/feature-assume-role-credentials.html
393-
const profile = (loadedCreds ?? profiles)[this.profileName]
393+
const profile: CredentialsData = (loadedCreds ?? profiles)[this.profileName]
394394
if (!profile) {
395395
throw new ToolkitError(`auth: Profile ${this.profileName} not found`)
396396
}

0 commit comments

Comments
 (0)