mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Introduce overload for boolean-type node parameter (no-changelog) (#4647)
* 📘 Set up overloads * 📘 Add temporary assertion * 🔥 Remove inferrable boolean assertions * ⏪ Undo autoformatting
This commit is contained in:
@@ -163,7 +163,7 @@ export class Mindee implements INodeType {
|
||||
if (operation === 'predict') {
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;
|
||||
|
||||
const rawData = this.getNodeParameter('rawData', i) as boolean;
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
|
||||
if (items[i].binary === undefined) {
|
||||
throw new NodeOperationError(this.getNode(), 'No binary data exists on item!', {
|
||||
@@ -234,7 +234,7 @@ export class Mindee implements INodeType {
|
||||
if (operation === 'predict') {
|
||||
const binaryPropertyName = this.getNodeParameter('binaryPropertyName', i) as string;
|
||||
|
||||
const rawData = this.getNodeParameter('rawData', i) as boolean;
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
|
||||
if (items[i].binary === undefined) {
|
||||
throw new NodeOperationError(this.getNode(), 'No binary data exists on item!', {
|
||||
|
||||
Reference in New Issue
Block a user