refactor: Fix Enteprise type errors (#9442)

This commit is contained in:
Mutasem Aldmour
2024-05-17 13:58:26 +02:00
committed by GitHub
parent feba07ba8b
commit b2c17034c2
10 changed files with 75 additions and 39 deletions

View File

@@ -5,8 +5,6 @@ import type {
INodeProperties,
INodeTypeDescription,
NodeParameterValueType,
INodePropertyOptions,
INodePropertyCollection,
ResourceMapperField,
} from 'n8n-workflow';
import {
@@ -271,7 +269,7 @@ export const getNodeCredentialForSelectedAuthType = (
export const getAuthTypeForNodeCredential = (
nodeType: INodeTypeDescription | null | undefined,
credentialType: INodeCredentialDescription | null | undefined,
): INodePropertyOptions | INodeProperties | INodePropertyCollection | null => {
): NodeAuthenticationOption | null => {
if (nodeType && credentialType) {
const authField = getMainAuthField(nodeType);
const authFieldName = authField ? authField.name : '';