Improve typing (#364)

* Improve typing

* Make sonar happier
This commit is contained in:
Michael Telatynski
2022-05-23 15:44:29 +01:00
committed by GitHub
parent d1f488a094
commit e50e04c507
4 changed files with 248 additions and 36 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ export function recordSSOSession(sessionID: string): void {
writeStore(store);
}
export function getProfileFromDeeplink(args): string | undefined {
export function getProfileFromDeeplink(args: string[]): string | undefined {
// check if we are passed a profile in the SSO callback url
const deeplinkUrl = args.find(arg => arg.startsWith(PROTOCOL + '//'));
if (deeplinkUrl && deeplinkUrl.includes(SEARCH_PARAM)) {