refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)

This commit is contained in:
Michael Kret
2023-01-13 19:11:56 +02:00
committed by GitHub
parent d7732ea150
commit 6608e69457
254 changed files with 2687 additions and 2675 deletions

View File

@@ -1,8 +1,8 @@
import { IExecuteFunctions } from 'n8n-core';
import { INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
import { IDataObject, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
const pdf = require('pdf-parse');
import pdf from 'pdf-parse';
export class ReadPDF implements INodeType {
description: INodeTypeDescription = {
@@ -50,7 +50,8 @@ export class ReadPDF implements INodeType {
const binaryData = await this.helpers.getBinaryDataBuffer(itemIndex, binaryPropertyName);
returnData.push({
binary: item.binary,
json: await pdf(binaryData),
json: (await pdf(binaryData)) as unknown as IDataObject,
});
} catch (error) {
if (this.continueOnFail()) {