mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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:
@@ -146,7 +146,7 @@ export class SendGrid implements INodeType {
|
||||
for (let i = 0; i < length; i++) {
|
||||
try {
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i);
|
||||
let endpoint = '/marketing/contacts';
|
||||
let method = 'GET';
|
||||
const body: IDataObject = {};
|
||||
@@ -232,7 +232,7 @@ export class SendGrid implements INodeType {
|
||||
let lists;
|
||||
for (let i = 0; i < length; i++) {
|
||||
const email = this.getNodeParameter('email', i) as string;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
const contact: IDataObject = {
|
||||
email,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user