chore: updated types

This commit is contained in:
liyasthomas
2021-12-17 23:05:36 +05:30
parent f174086281
commit d305168dc3
15 changed files with 127 additions and 90 deletions

View File

@@ -26,9 +26,18 @@ export type HoppRESTAuthOAuth2 = {
scope: string
}
export type HoppRESTAuthAPIKey = {
authType: "api-key"
key: string
value: string
addTo: string
}
export type HoppRESTAuth = { authActive: boolean } & (
| HoppRESTAuthNone
| HoppRESTAuthBasic
| HoppRESTAuthBearer
| HoppRESTAuthOAuth2
)
| HoppRESTAuthAPIKey
)