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

@@ -2024,7 +2024,11 @@ export class Telegram implements INodeType {
);
const fileName = filePath.split('/').pop();
const data = await this.helpers.prepareBinaryData(file.body, fileName);
const data = await this.helpers.prepareBinaryData(
file.body as Buffer,
fileName as string,
);
returnData.push({
json: responseData,
@@ -2035,7 +2039,7 @@ export class Telegram implements INodeType {
}
} else if (resource === 'chat' && operation === 'administrators') {
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData.result),
this.helpers.returnJsonArray(responseData.result as IDataObject[]),
{ itemData: { item: i } },
);
returnData.push(...executionData);
@@ -2043,7 +2047,7 @@ export class Telegram implements INodeType {
}
const executionData = this.helpers.constructExecutionMetaData(
this.helpers.returnJsonArray(responseData),
this.helpers.returnJsonArray(responseData as IDataObject[]),
{ itemData: { item: i } },
);
returnData.push(...executionData);