mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
refactor(core): Remove linting exceptions in nodes-base (no-changelog) (#4944)
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user