Skip to content

Commit ae0921e

Browse files
committed
Fix exports for auth
1 parent adfdf9c commit ae0921e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/amazonq/test/unit/amazonq/lsp/chat/messages.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { LanguageClient } from 'vscode-languageclient'
88
import { AuthUtil } from 'aws-core-vscode/codewhisperer'
99
import { registerMessageListeners } from '../../../../../src/lsp/chat/messages'
1010
import { AmazonQChatViewProvider } from '../../../../../src/lsp/chat/webviewProvider'
11-
import { SecondaryAuth, Connection, AuthFollowUpType } from 'aws-core-vscode/amazonq'
11+
import { secondaryAuth, authConnection, AuthFollowUpType } from 'aws-core-vscode/amazonq'
1212

1313
describe('registerMessageListeners', () => {
1414
let languageClient: LanguageClient
@@ -80,7 +80,7 @@ describe('registerMessageListeners', () => {
8080
reauthenticate: reauthenticateStub,
8181
secondaryAuth: {
8282
deleteConnection: deleteConnectionStub,
83-
} as unknown as SecondaryAuth<Connection>,
83+
} as unknown as secondaryAuth.SecondaryAuth<authConnection.Connection>,
8484
} as unknown as AuthUtil
8585

8686
sandbox.replaceGetter(AuthUtil, 'instance', () => mockAuthUtil)

packages/core/src/amazonq/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export { extractAuthFollowUp } from './util/authUtils'
4646
export { Messenger } from './commons/connector/baseMessenger'
4747
export * from './lsp/config'
4848
export * as WorkspaceLspInstaller from './lsp/workspaceInstaller'
49-
export { SecondaryAuth } from '../auth/secondaryAuth'
50-
export { Connection } from '../auth/connection'
49+
export * as secondaryAuth from '../auth/secondaryAuth'
50+
export * as authConnection from '../auth/connection'
5151
import { FeatureContext } from '../shared/featureConfig'
5252

5353
/**

0 commit comments

Comments
 (0)