From 54b02acdd74fbe19dfb799054195c5335fc87e3b Mon Sep 17 00:00:00 2001 From: Charlie Kolb Date: Wed, 18 Dec 2024 08:35:53 +0100 Subject: [PATCH] chore: Remove unused @ts-ignore's (no-changelog) (#12198) --- packages/@n8n/nodes-langchain/utils/logWrapper.ts | 1 - packages/core/src/WorkflowExecute.ts | 3 --- packages/editor-ui/src/composables/useWorkflowHelpers.ts | 1 - packages/node-dev/src/Build.ts | 2 -- packages/nodes-base/nodes/Affinity/GenericFunctions.ts | 2 -- packages/nodes-base/nodes/Automizy/GenericFunctions.ts | 1 - packages/nodes-base/nodes/BambooHr/v1/transport/index.ts | 1 - packages/nodes-base/nodes/Box/GenericFunctions.ts | 1 - packages/nodes-base/nodes/Cisco/Webex/GenericFunctions.ts | 1 - packages/nodes-base/nodes/ClickUp/GenericFunctions.ts | 1 - packages/nodes-base/nodes/Coda/GenericFunctions.ts | 1 - packages/nodes-base/nodes/CoinGecko/GenericFunctions.ts | 1 - packages/nodes-base/nodes/Flow/GenericFunctions.ts | 1 - .../nodes-base/nodes/Formstack/FormstackTrigger.node.ts | 1 - packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts | 1 - packages/nodes-base/nodes/GetResponse/GenericFunctions.ts | 1 - packages/nodes-base/nodes/Git/Git.node.ts | 1 - .../nodes-base/nodes/Google/Calendar/GenericFunctions.ts | 1 - .../nodes/Google/CloudNaturalLanguage/GenericFunctions.ts | 1 - .../nodes-base/nodes/Google/Contacts/GenericFunctions.ts | 1 - .../Google/Firebase/CloudFirestore/GenericFunctions.ts | 1 - .../nodes-base/nodes/Google/GSuiteAdmin/GenericFunctions.ts | 1 - packages/nodes-base/nodes/Google/Task/GenericFunctions.ts | 1 - .../nodes-base/nodes/Google/YouTube/GenericFunctions.ts | 1 - packages/nodes-base/nodes/Gotify/GenericFunctions.ts | 1 - packages/nodes-base/nodes/HelpScout/GenericFunctions.ts | 1 - .../nodes-base/nodes/HomeAssistant/HomeAssistant.node.ts | 1 - .../nodes-base/nodes/HttpRequest/V1/HttpRequestV1.node.ts | 4 ---- .../nodes-base/nodes/HttpRequest/V2/HttpRequestV2.node.ts | 4 ---- packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts | 2 -- packages/nodes-base/nodes/Hubspot/V2/HubspotV2.node.ts | 1 - packages/nodes-base/nodes/Keap/GenericFunctions.ts | 1 - packages/nodes-base/nodes/Magento/GenericFunctions.ts | 1 - packages/nodes-base/nodes/MailerLite/GenericFunctions.ts | 1 + packages/nodes-base/nodes/Mailgun/Mailgun.node.ts | 1 - packages/nodes-base/nodes/Mandrill/Mandrill.node.ts | 1 - packages/nodes-base/nodes/Matrix/GenericFunctions.ts | 1 - packages/nodes-base/nodes/Mautic/GenericFunctions.ts | 3 --- .../nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts | 1 - .../nodes-base/nodes/Microsoft/OneDrive/GenericFunctions.ts | 1 - .../nodes-base/nodes/Microsoft/Teams/v1/GenericFunctions.ts | 1 - .../nodes-base/nodes/Microsoft/Teams/v2/transport/index.ts | 1 - .../nodes-base/nodes/Microsoft/ToDo/GenericFunctions.ts | 1 - packages/nodes-base/nodes/Onfleet/Onfleet.ts | 1 - packages/nodes-base/nodes/RabbitMQ/RabbitMQ.node.ts | 2 -- packages/nodes-base/nodes/Salesforce/GenericFunctions.ts | 1 - packages/nodes-base/nodes/UProc/ToolDescription.ts | 6 +----- packages/workflow/src/Extensions/ExpressionExtension.ts | 1 - packages/workflow/test/TelemetryHelpers.test.ts | 2 -- 49 files changed, 2 insertions(+), 67 deletions(-) diff --git a/packages/@n8n/nodes-langchain/utils/logWrapper.ts b/packages/@n8n/nodes-langchain/utils/logWrapper.ts index fa1a38b31a5e7..073b00516290a 100644 --- a/packages/@n8n/nodes-langchain/utils/logWrapper.ts +++ b/packages/@n8n/nodes-langchain/utils/logWrapper.ts @@ -394,7 +394,6 @@ export function logWrapper( return async ( query: string, k?: number, - // @ts-ignore filter?: BiquadFilterType | undefined, _callbacks?: Callbacks | undefined, ): Promise => { diff --git a/packages/core/src/WorkflowExecute.ts b/packages/core/src/WorkflowExecute.ts index 6f2cce0b3def0..252694fd1f26f 100644 --- a/packages/core/src/WorkflowExecute.ts +++ b/packages/core/src/WorkflowExecute.ts @@ -1796,16 +1796,13 @@ export class WorkflowExecute { lineResult.json.$json !== undefined ) { // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore lineResult.error = lineResult.json.$error as NodeApiError | NodeOperationError; lineResult.json = { // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore error: (lineResult.json.$error as NodeApiError | NodeOperationError).message, }; } else if (lineResult.error !== undefined) { // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore lineResult.json = { error: lineResult.error.message }; } } diff --git a/packages/editor-ui/src/composables/useWorkflowHelpers.ts b/packages/editor-ui/src/composables/useWorkflowHelpers.ts index 789540a5bcf20..39a67b06e0b46 100644 --- a/packages/editor-ui/src/composables/useWorkflowHelpers.ts +++ b/packages/editor-ui/src/composables/useWorkflowHelpers.ts @@ -518,7 +518,6 @@ export function useWorkflowHelpers(options: { router: ReturnType { const bodyData = this.getBodyData() as unknown as IFormstackWebhookResponseBody; const simple = this.getNodeParameter('simple') as string; diff --git a/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts b/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts index 3f1c7d73322b0..67046175a2d46 100644 --- a/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts +++ b/packages/nodes-base/nodes/Freshdesk/Freshdesk.node.ts @@ -1205,7 +1205,6 @@ export class Freshdesk implements INodeType { if (updateFields.requester) { const value = updateFields.requesterIdentificationValue as string; if (updateFields.requester === 'requesterId') { - // @ts-ignore if (isNaN(parseInt(value, 10))) { throw new NodeOperationError(this.getNode(), 'Requester Id must be a number', { itemIndex: i, diff --git a/packages/nodes-base/nodes/GetResponse/GenericFunctions.ts b/packages/nodes-base/nodes/GetResponse/GenericFunctions.ts index 1271dea98ca07..5083bcdcc7d63 100644 --- a/packages/nodes-base/nodes/GetResponse/GenericFunctions.ts +++ b/packages/nodes-base/nodes/GetResponse/GenericFunctions.ts @@ -41,7 +41,6 @@ export async function getresponseApiRequest( if (authentication === 'apiKey') { return await this.helpers.requestWithAuthentication.call(this, 'getResponseApi', options); } else { - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'getResponseOAuth2Api', options); } } catch (error) { diff --git a/packages/nodes-base/nodes/Git/Git.node.ts b/packages/nodes-base/nodes/Git/Git.node.ts index 33a14be8b7dea..e89edb1b90cc8 100644 --- a/packages/nodes-base/nodes/Git/Git.node.ts +++ b/packages/nodes-base/nodes/Git/Git.node.ts @@ -439,7 +439,6 @@ export class Git implements INodeType { }); } - // @ts-ignore returnItems.push( ...this.helpers.returnJsonArray(data).map((item) => { return { diff --git a/packages/nodes-base/nodes/Google/Calendar/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Calendar/GenericFunctions.ts index 819e67cd4665d..140eddc9e8c25 100644 --- a/packages/nodes-base/nodes/Google/Calendar/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Calendar/GenericFunctions.ts @@ -40,7 +40,6 @@ export async function googleApiRequest( if (Object.keys(body as IDataObject).length === 0) { delete options.body; } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'googleCalendarOAuth2Api', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/Google/CloudNaturalLanguage/GenericFunctions.ts b/packages/nodes-base/nodes/Google/CloudNaturalLanguage/GenericFunctions.ts index 58cb39c8b0b08..c9f4ebd7f8a02 100644 --- a/packages/nodes-base/nodes/Google/CloudNaturalLanguage/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/CloudNaturalLanguage/GenericFunctions.ts @@ -36,7 +36,6 @@ export async function googleApiRequest( if (Object.keys(body as IDataObject).length === 0) { delete options.body; } - //@ts-ignore return await this.helpers.requestOAuth2.call( this, 'googleCloudNaturalLanguageOAuth2Api', diff --git a/packages/nodes-base/nodes/Google/Contacts/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Contacts/GenericFunctions.ts index 6c07a1a0daedb..0ab273c1277b2 100644 --- a/packages/nodes-base/nodes/Google/Contacts/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Contacts/GenericFunctions.ts @@ -36,7 +36,6 @@ export async function googleApiRequest( delete options.body; } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'googleContactsOAuth2Api', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/GenericFunctions.ts index 5ac452f728778..4ae79c59e6994 100644 --- a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/GenericFunctions.ts @@ -49,7 +49,6 @@ export async function googleApiRequest( (options.headers as IDataObject).Authorization = `Bearer ${access_token}`; } - //@ts-ignore return await this.helpers.requestWithAuthentication.call(this, credentialType, options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/Google/GSuiteAdmin/GenericFunctions.ts b/packages/nodes-base/nodes/Google/GSuiteAdmin/GenericFunctions.ts index 7f30fe6812e29..1e3d85aae52ba 100644 --- a/packages/nodes-base/nodes/Google/GSuiteAdmin/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/GSuiteAdmin/GenericFunctions.ts @@ -35,7 +35,6 @@ export async function googleApiRequest( if (Object.keys(body as IDataObject).length === 0) { delete options.body; } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'gSuiteAdminOAuth2Api', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/Google/Task/GenericFunctions.ts b/packages/nodes-base/nodes/Google/Task/GenericFunctions.ts index c0e69151e4aa0..2229b7608d329 100644 --- a/packages/nodes-base/nodes/Google/Task/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/Task/GenericFunctions.ts @@ -35,7 +35,6 @@ export async function googleApiRequest( if (Object.keys(body).length === 0) { delete options.body; } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'googleTasksOAuth2Api', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/Google/YouTube/GenericFunctions.ts b/packages/nodes-base/nodes/Google/YouTube/GenericFunctions.ts index acd718c1b2b19..50fe1b3d3a669 100644 --- a/packages/nodes-base/nodes/Google/YouTube/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Google/YouTube/GenericFunctions.ts @@ -35,7 +35,6 @@ export async function googleApiRequest( delete options.body; } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'youTubeOAuth2Api', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/Gotify/GenericFunctions.ts b/packages/nodes-base/nodes/Gotify/GenericFunctions.ts index 3b63797197279..192dc8f7c0f39 100644 --- a/packages/nodes-base/nodes/Gotify/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Gotify/GenericFunctions.ts @@ -37,7 +37,6 @@ export async function gotifyApiRequest( delete options.body; } - //@ts-ignore return await this.helpers.request.call(this, options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts b/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts index 6ad5fbdbc71e0..1bd10939e3a14 100644 --- a/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts +++ b/packages/nodes-base/nodes/HelpScout/GenericFunctions.ts @@ -38,7 +38,6 @@ export async function helpscoutApiRequest( if (Object.keys(body as IDataObject).length === 0) { delete options.body; } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'helpScoutOAuth2Api', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/HomeAssistant/HomeAssistant.node.ts b/packages/nodes-base/nodes/HomeAssistant/HomeAssistant.node.ts index ef8ad0990d88b..036f943066e97 100644 --- a/packages/nodes-base/nodes/HomeAssistant/HomeAssistant.node.ts +++ b/packages/nodes-base/nodes/HomeAssistant/HomeAssistant.node.ts @@ -222,7 +222,6 @@ export class HomeAssistant implements INodeType { if (Object.entries(serviceAttributes).length) { if (serviceAttributes.attributes !== undefined) { serviceAttributes.attributes.map((attribute) => { - // @ts-ignore body[attribute.name as string] = attribute.value; }); } diff --git a/packages/nodes-base/nodes/HttpRequest/V1/HttpRequestV1.node.ts b/packages/nodes-base/nodes/HttpRequest/V1/HttpRequestV1.node.ts index 24c88dbc2677a..b3d7e3cfcb5b8 100644 --- a/packages/nodes-base/nodes/HttpRequest/V1/HttpRequestV1.node.ts +++ b/packages/nodes-base/nodes/HttpRequest/V1/HttpRequestV1.node.ts @@ -701,7 +701,6 @@ export class HttpRequestV1 implements INodeType { } satisfies IRequestOptions; if (fullResponse) { - // @ts-ignore requestOptions.resolveWithFullResponse = true; } @@ -714,7 +713,6 @@ export class HttpRequestV1 implements INodeType { } if (options.ignoreResponseCode === true) { - // @ts-ignore requestOptions.simple = false; } if (options.proxy !== undefined) { @@ -976,12 +974,10 @@ export class HttpRequestV1 implements INodeType { } } - // @ts-ignore const promisesResponses = await Promise.allSettled(requestPromises); let response: any; for (let itemIndex = 0; itemIndex < items.length; itemIndex++) { - // @ts-ignore response = promisesResponses.shift(); if (response!.status !== 'fulfilled') { diff --git a/packages/nodes-base/nodes/HttpRequest/V2/HttpRequestV2.node.ts b/packages/nodes-base/nodes/HttpRequest/V2/HttpRequestV2.node.ts index 0916c648fd623..9f78a1a47be0d 100644 --- a/packages/nodes-base/nodes/HttpRequest/V2/HttpRequestV2.node.ts +++ b/packages/nodes-base/nodes/HttpRequest/V2/HttpRequestV2.node.ts @@ -741,7 +741,6 @@ export class HttpRequestV2 implements INodeType { }; if (fullResponse) { - // @ts-ignore requestOptions.resolveWithFullResponse = true; } @@ -754,7 +753,6 @@ export class HttpRequestV2 implements INodeType { } if (options.ignoreResponseCode === true) { - // @ts-ignore requestOptions.simple = false; } if (options.proxy !== undefined) { @@ -1030,12 +1028,10 @@ export class HttpRequestV2 implements INodeType { } } - // @ts-ignore const promisesResponses = await Promise.allSettled(requestPromises); let response: any; for (let itemIndex = 0; itemIndex < items.length; itemIndex++) { - // @ts-ignore response = promisesResponses.shift(); if (response!.status !== 'fulfilled') { if (!this.continueOnFail()) { diff --git a/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts b/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts index 5ce15a9b1c2ae..ab36f08b15fc3 100644 --- a/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts +++ b/packages/nodes-base/nodes/Hubspot/HubspotTrigger.node.ts @@ -424,14 +424,12 @@ export class HubspotTrigger implements INodeType { const req = this.getRequestObject(); const bodyData = req.body; const headerData = this.getHeaderData(); - //@ts-ignore if (headerData['x-hubspot-signature'] === undefined) { return {}; } const hash = `${credentials.clientSecret}${JSON.stringify(bodyData)}`; const signature = createHash('sha256').update(hash).digest('hex'); - //@ts-ignore if (signature !== headerData['x-hubspot-signature']) { return {}; } diff --git a/packages/nodes-base/nodes/Hubspot/V2/HubspotV2.node.ts b/packages/nodes-base/nodes/Hubspot/V2/HubspotV2.node.ts index f25f7dc0dea67..5049e3766654b 100644 --- a/packages/nodes-base/nodes/Hubspot/V2/HubspotV2.node.ts +++ b/packages/nodes-base/nodes/Hubspot/V2/HubspotV2.node.ts @@ -1672,7 +1672,6 @@ export class HubspotV2 implements INodeType { delete filter.type; // Hacky way to get the filter value as we concat the values with a | and the type filter.propertyName = filter.propertyName?.toString().split('|')[0]; - //@ts-ignore } (body.filterGroups as IDataObject[]).push({ filters: filterValues }); } diff --git a/packages/nodes-base/nodes/Keap/GenericFunctions.ts b/packages/nodes-base/nodes/Keap/GenericFunctions.ts index 896c4449a9c45..03a98ec1a6c6e 100644 --- a/packages/nodes-base/nodes/Keap/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Keap/GenericFunctions.ts @@ -41,7 +41,6 @@ export async function keapApiRequest( if (Object.keys(body as IDataObject).length === 0) { delete options.body; } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'keapOAuth2Api', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/Magento/GenericFunctions.ts b/packages/nodes-base/nodes/Magento/GenericFunctions.ts index 2b83721b28111..eda3122557e4f 100644 --- a/packages/nodes-base/nodes/Magento/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Magento/GenericFunctions.ts @@ -39,7 +39,6 @@ export async function magentoApiRequest( if (Object.keys(body as IDataObject).length === 0) { delete options.body; } - //@ts-ignore return await this.helpers.requestWithAuthentication.call(this, 'magento2Api', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/MailerLite/GenericFunctions.ts b/packages/nodes-base/nodes/MailerLite/GenericFunctions.ts index a7f9283d5df3b..309d81188b2f5 100644 --- a/packages/nodes-base/nodes/MailerLite/GenericFunctions.ts +++ b/packages/nodes-base/nodes/MailerLite/GenericFunctions.ts @@ -34,6 +34,7 @@ export async function mailerliteApiRequest( if (Object.keys(body as IDataObject).length === 0) { delete options.body; } + return await this.helpers.httpRequestWithAuthentication.call(this, 'mailerLiteApi', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts b/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts index 324118a46e81e..24a1eb94480c8 100644 --- a/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts +++ b/packages/nodes-base/nodes/Mailgun/Mailgun.node.ts @@ -163,7 +163,6 @@ export class Mailgun implements INodeType { } if (attachments.length) { - // @ts-ignore formData.attachment = attachments; } } diff --git a/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts b/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts index ddd3d4d7924f0..6a9417835e637 100644 --- a/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts +++ b/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts @@ -838,7 +838,6 @@ export class Mandrill implements INodeType { // @ts-ignore attachmentsValues = map(attachmentsUi.attachmentsValues, (o: IDataObject) => { const aux: IDataObject = {}; - // @ts-ignore aux.name = o.name; aux.content = o.content; aux.type = o.type; diff --git a/packages/nodes-base/nodes/Matrix/GenericFunctions.ts b/packages/nodes-base/nodes/Matrix/GenericFunctions.ts index 112db518da881..44415436fdffb 100644 --- a/packages/nodes-base/nodes/Matrix/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Matrix/GenericFunctions.ts @@ -40,7 +40,6 @@ export async function matrixApiRequest( const credentials = await this.getCredentials('matrixApi'); options.uri = `${credentials.homeserverUrl}/_matrix/${ - //@ts-ignore option.overridePrefix || 'client' }/r0${resource}`; options.headers!.Authorization = `Bearer ${credentials.accessToken}`; diff --git a/packages/nodes-base/nodes/Mautic/GenericFunctions.ts b/packages/nodes-base/nodes/Mautic/GenericFunctions.ts index 415c70afc0f07..e612e7656374e 100644 --- a/packages/nodes-base/nodes/Mautic/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Mautic/GenericFunctions.ts @@ -37,14 +37,12 @@ export async function mauticApiRequest( const baseUrl = credentials.url as string; options.uri = `${baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl}${options.uri}`; - //@ts-ignore returnData = await this.helpers.requestWithAuthentication.call(this, 'mauticApi', options); } else { const credentials = await this.getCredentials('mauticOAuth2Api'); const baseUrl = credentials.url as string; options.uri = `${baseUrl.endsWith('/') ? baseUrl.slice(0, -1) : baseUrl}${options.uri}`; - //@ts-ignore returnData = await this.helpers.requestOAuth2.call(this, 'mauticOAuth2Api', options, { includeCredentialsOnRefreshOnBody: true, }); @@ -83,7 +81,6 @@ export async function mauticApiRequestAllItems( do { responseData = await mauticApiRequest.call(this, method, endpoint, body, query); const values = Object.values(responseData[propertyName] as IDataObject[]); - //@ts-ignore returnData.push.apply(returnData, values); query.start += query.limit; } while ( diff --git a/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts index b24a95b6a72a1..2ccbb82553b52 100644 --- a/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts @@ -42,7 +42,6 @@ export async function microsoftApiRequest( if (Object.keys(option).length !== 0) { options = Object.assign({}, options, option); } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'microsoftDynamicsOAuth2Api', options, { property: 'id_token', }); diff --git a/packages/nodes-base/nodes/Microsoft/OneDrive/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/OneDrive/GenericFunctions.ts index 31381e65e361b..59efc494faf35 100644 --- a/packages/nodes-base/nodes/Microsoft/OneDrive/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/OneDrive/GenericFunctions.ts @@ -41,7 +41,6 @@ export async function microsoftApiRequest( if (Object.keys(body as IDataObject).length === 0) { delete options.body; } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'microsoftOneDriveOAuth2Api', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/Microsoft/Teams/v1/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/Teams/v1/GenericFunctions.ts index 0449ead6cb947..b4fe1631f1b74 100644 --- a/packages/nodes-base/nodes/Microsoft/Teams/v1/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/Teams/v1/GenericFunctions.ts @@ -32,7 +32,6 @@ export async function microsoftApiRequest( if (Object.keys(headers).length !== 0) { options.headers = Object.assign({}, options.headers, headers); } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'microsoftTeamsOAuth2Api', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/Microsoft/Teams/v2/transport/index.ts b/packages/nodes-base/nodes/Microsoft/Teams/v2/transport/index.ts index 4b0e4fb1d4051..f9db468361666 100644 --- a/packages/nodes-base/nodes/Microsoft/Teams/v2/transport/index.ts +++ b/packages/nodes-base/nodes/Microsoft/Teams/v2/transport/index.ts @@ -32,7 +32,6 @@ export async function microsoftApiRequest( if (Object.keys(headers).length !== 0) { options.headers = Object.assign({}, options.headers, headers); } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'microsoftTeamsOAuth2Api', options); } catch (error) { const errorOptions: IDataObject = {}; diff --git a/packages/nodes-base/nodes/Microsoft/ToDo/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/ToDo/GenericFunctions.ts index 4f5e4deb71302..0e21aae05dc93 100644 --- a/packages/nodes-base/nodes/Microsoft/ToDo/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/ToDo/GenericFunctions.ts @@ -35,7 +35,6 @@ export async function microsoftApiRequest( if (Object.keys(body).length === 0) { delete options.body; } - //@ts-ignore return await this.helpers.requestOAuth2.call(this, 'microsoftToDoOAuth2Api', options); } catch (error) { throw new NodeApiError(this.getNode(), error as JsonObject); diff --git a/packages/nodes-base/nodes/Onfleet/Onfleet.ts b/packages/nodes-base/nodes/Onfleet/Onfleet.ts index b5c17186c5c6b..f01d89eda57eb 100644 --- a/packages/nodes-base/nodes/Onfleet/Onfleet.ts +++ b/packages/nodes-base/nodes/Onfleet/Onfleet.ts @@ -789,7 +789,6 @@ export class Onfleet { const tasksData = { tasks: items.map((_item, index) => Onfleet.getTaskFields.call(this, index, operation)), }; - //@ts-ignore const { tasks: tasksCreated } = await onfleetApiRequest.call(this, 'POST', path, tasksData); return tasksCreated; } diff --git a/packages/nodes-base/nodes/RabbitMQ/RabbitMQ.node.ts b/packages/nodes-base/nodes/RabbitMQ/RabbitMQ.node.ts index 29475c1ace77d..28e802214fec7 100644 --- a/packages/nodes-base/nodes/RabbitMQ/RabbitMQ.node.ts +++ b/packages/nodes-base/nodes/RabbitMQ/RabbitMQ.node.ts @@ -436,7 +436,6 @@ export class RabbitMQ implements INodeType { ); } - // @ts-ignore const promisesResponses = await Promise.allSettled(queuePromises); // @ts-ignore @@ -507,7 +506,6 @@ export class RabbitMQ implements INodeType { ); } - // @ts-ignore const promisesResponses = await Promise.allSettled(exchangePromises); // @ts-ignore diff --git a/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts b/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts index 78454e3519994..c9cce032f79ca 100644 --- a/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Salesforce/GenericFunctions.ts @@ -114,7 +114,6 @@ export async function salesforceApiRequest( ); options.headers!.Authorization = `Bearer ${access_token}`; Object.assign(options, option); - //@ts-ignore return await this.helpers.request(options); } else { // https://help.salesforce.com/articleView?id=remoteaccess_oauth_web_server_flow.htm&type=5 diff --git a/packages/nodes-base/nodes/UProc/ToolDescription.ts b/packages/nodes-base/nodes/UProc/ToolDescription.ts index 0a6cd206a9b71..a0e354392f9b8 100644 --- a/packages/nodes-base/nodes/UProc/ToolDescription.ts +++ b/packages/nodes-base/nodes/UProc/ToolDescription.ts @@ -75,10 +75,7 @@ for (const tool of (tools as IDataObject).processors as IDataObject[]) { options: param.o, displayOptions: { show: { - group: [ - //@ts-ignore - tool.g, - ], + group: [tool.g], tool: [tool.k], }, }, @@ -96,7 +93,6 @@ for (const tool of (tools as IDataObject).processors as IDataObject[]) { //if exists, other wise if (modifiedParam) { //Assign new group and tool - //@ts-ignore modifiedParam.displayOptions.show.group.push(tool.g); modifiedParam.displayOptions.show.tool.push(tool.k); diff --git a/packages/workflow/src/Extensions/ExpressionExtension.ts b/packages/workflow/src/Extensions/ExpressionExtension.ts index 2c8d745bd87a1..1f3b8d2fc0b32 100644 --- a/packages/workflow/src/Extensions/ExpressionExtension.ts +++ b/packages/workflow/src/Extensions/ExpressionExtension.ts @@ -137,7 +137,6 @@ export const extendTransform = (expression: string): { code: string } | undefine // This is to match our fork of tmpl const globalIdentifier = types.builders.identifier( // eslint-disable-next-line @typescript-eslint/ban-ts-comment - // @ts-ignore typeof window !== 'object' ? 'global' : 'window', ); // We want to define all of our commonly used identifiers and member diff --git a/packages/workflow/test/TelemetryHelpers.test.ts b/packages/workflow/test/TelemetryHelpers.test.ts index 526b4797f6c7e..65ae9f31b27a9 100644 --- a/packages/workflow/test/TelemetryHelpers.test.ts +++ b/packages/workflow/test/TelemetryHelpers.test.ts @@ -1093,9 +1093,7 @@ function generateTestWorkflowAndRunData(): { workflow: Partial; r }, Switch: { main: [ - // @ts-ignore null, - // @ts-ignore null, [ {