mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +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:
@@ -663,7 +663,7 @@ export class OneSimpleApi implements INodeType {
|
||||
if (resource === 'website') {
|
||||
if (operation === 'pdf') {
|
||||
const link = this.getNodeParameter('link', i) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
download = this.getNodeParameter('download', i);
|
||||
qs.url = link;
|
||||
|
||||
@@ -703,7 +703,7 @@ export class OneSimpleApi implements INodeType {
|
||||
|
||||
if (operation === 'screenshot') {
|
||||
const link = this.getNodeParameter('link', i) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
download = this.getNodeParameter('download', i);
|
||||
|
||||
qs.url = link;
|
||||
@@ -750,7 +750,7 @@ export class OneSimpleApi implements INodeType {
|
||||
|
||||
if (operation === 'seo') {
|
||||
const link = this.getNodeParameter('link', i) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
qs.url = link;
|
||||
|
||||
if (options.headers) {
|
||||
@@ -816,7 +816,7 @@ export class OneSimpleApi implements INodeType {
|
||||
|
||||
if (operation === 'qrCode') {
|
||||
const message = this.getNodeParameter('message', i) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
download = this.getNodeParameter('download', i);
|
||||
|
||||
qs.message = message;
|
||||
|
||||
Reference in New Issue
Block a user