@@ -31,7 +31,7 @@ import { showAmazonQWalkthroughOnce } from '../../amazonq/onboardingPage/walkthr
3131import { setContext } from '../../shared/vscode/setContext'
3232import { openUrl } from '../../shared/utilities/vsCodeUtils'
3333import { telemetry } from '../../shared/telemetry/telemetry'
34- import { AuthStateEvent , LanguageClientAuth , LoginTypes , SsoLogin } from '../../auth/auth2'
34+ import { AuthStateEvent , cacheChangedEvent , LanguageClientAuth , LoginTypes , SsoLogin } from '../../auth/auth2'
3535import { builderIdStartUrl , internalStartUrl } from '../../auth/sso/constants'
3636import { VSCODE_EXTENSION_ID } from '../../shared/extensions'
3737import { RegionProfileManager } from '../region/regionProfileManager'
@@ -90,7 +90,7 @@ export class AuthUtil implements IAuthProvider {
9090 this . regionProfileManager . onDidChangeRegionProfile ( async ( ) => {
9191 await this . setVscodeContextProps ( )
9292 } )
93- lspAuth . registerCacheWatcher ( async ( event : string ) => await this . cacheChangedHandler ( event ) )
93+ lspAuth . registerCacheWatcher ( async ( event : cacheChangedEvent ) => await this . cacheChangedHandler ( event ) )
9494 }
9595
9696 // Do NOT use this in production code, only used for testing
@@ -277,7 +277,7 @@ export class AuthUtil implements IAuthProvider {
277277 } )
278278 }
279279
280- private async cacheChangedHandler ( event : 'create' | 'delete' ) {
280+ private async cacheChangedHandler ( event : cacheChangedEvent ) {
281281 if ( event === 'delete' ) {
282282 await this . logout ( )
283283 } else if ( event === 'create' ) {
0 commit comments