fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)

This commit is contained in:
Michael Kret
2023-02-28 05:39:43 +02:00
committed by GitHub
parent 3172ea376e
commit bb4db58819
560 changed files with 2227 additions and 1919 deletions

View File

@@ -1,6 +1,7 @@
import type { IHookFunctions, IWebhookFunctions } from 'n8n-core';
import type {
IDataObject,
ILoadOptionsFunctions,
INodePropertyOptions,
INodeType,
@@ -121,7 +122,6 @@ export class CalTrigger implements INodeType {
},
};
// @ts-ignore (because of request)
webhookMethods = {
default: {
async checkExists(this: IHookFunctions): Promise<boolean> {
@@ -196,9 +196,9 @@ export class CalTrigger implements INodeType {
return {
workflowData: [
this.helpers.returnJsonArray({
triggerEvent: req.body.triggerEvent,
createdAt: req.body.createdAt,
...req.body.payload,
triggerEvent: req.body.triggerEvent as string,
createdAt: req.body.createdAt as string,
...(req.body.payload as IDataObject),
}),
],
};