mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
refactor(core): Introduce overload for record-type node parameter (no-changelog) (#4648)
* 📘 Set up overload * 🔥 Remove inferrable record assertions * 👕 Fix semicolon * 👕 Fix another semicolon
This commit is contained in:
@@ -84,7 +84,7 @@ export class LinkedIn implements INodeType {
|
||||
const text = this.getNodeParameter('text', i) as string;
|
||||
const shareMediaCategory = this.getNodeParameter('shareMediaCategory', i) as string;
|
||||
const postAs = this.getNodeParameter('postAs', i) as string;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
|
||||
let authorUrn = '';
|
||||
let visibility = 'PUBLIC';
|
||||
@@ -189,7 +189,7 @@ export class LinkedIn implements INodeType {
|
||||
},
|
||||
};
|
||||
} else if (shareMediaCategory === 'ARTICLE') {
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
|
||||
if (additionalFields.description) {
|
||||
description = additionalFields.description as string;
|
||||
|
||||
Reference in New Issue
Block a user