fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
|
||||
|
||||
import type {
|
||||
IDataObject,
|
||||
ILoadOptionsFunctions,
|
||||
INodePropertyOptions,
|
||||
INodeType,
|
||||
@@ -139,7 +140,7 @@ export class FormIoTrigger implements INodeType {
|
||||
if (
|
||||
action.settings.url === webhookUrl &&
|
||||
action.method.length === method.length &&
|
||||
action.method.every((value: any) => method.includes(value))
|
||||
action.method.every((value: any) => method.includes(value as string))
|
||||
) {
|
||||
webhookData.webhookId = action._id;
|
||||
return true;
|
||||
@@ -205,7 +206,7 @@ export class FormIoTrigger implements INodeType {
|
||||
response = response.data;
|
||||
}
|
||||
return {
|
||||
workflowData: [this.helpers.returnJsonArray(response)],
|
||||
workflowData: [this.helpers.returnJsonArray(response as IDataObject[])],
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-core';
|
||||
|
||||
import type { IHookFunctions, IWebhookFunctions } from 'n8n-workflow';
|
||||
import type { IHookFunctions, IWebhookFunctions, JsonObject } from 'n8n-workflow';
|
||||
import { NodeApiError } from 'n8n-workflow';
|
||||
|
||||
interface IFormIoCredentials {
|
||||
@@ -75,6 +75,6 @@ export async function formIoApiRequest(
|
||||
try {
|
||||
return await this.helpers.request.call(this, options);
|
||||
} catch (error) {
|
||||
throw new NodeApiError(this.getNode(), error);
|
||||
throw new NodeApiError(this.getNode(), error as JsonObject);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user