diff --git a/packages/editor-ui/src/components/mixins/nodeHelpers.ts b/packages/editor-ui/src/components/mixins/nodeHelpers.ts index b188a26007..070a0074c2 100644 --- a/packages/editor-ui/src/components/mixins/nodeHelpers.ts +++ b/packages/editor-ui/src/components/mixins/nodeHelpers.ts @@ -207,11 +207,11 @@ export const nodeHelpers = mixins( let credentialDisplayName: string; let selectedCredentials: INodeCredentialsDetails; - const { authenticateWith, genericAuthType, nodeCredentialType } = node.parameters as { - authenticateWith: 'none' | 'genericAuth' | 'nodeCredential'; - genericAuthType: string; - nodeCredentialType: string; - }; + const { + authenticateWith, + genericAuthType, + nodeCredentialType, + } = node.parameters as HttpRequestNode.V2.AuthParams; if ( this.isHttpRequestNodeV2(node) && @@ -476,3 +476,13 @@ function reportUnsetCredential(credentialType: ICredentialType) { }, }; } + +declare namespace HttpRequestNode { + namespace V2 { + type AuthParams = { + authenticateWith: 'none' | 'genericAuth' | 'nodeCredential'; + genericAuthType: string; + nodeCredentialType: string; + }; + } +}