mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Introduce overload for string-type node parameter (no-changelog) (#4797)
* 📘 Set up overload * 🔥 Remove inferrable assertions
This commit is contained in:
@@ -189,8 +189,8 @@ export class YouTube implements INodeType {
|
||||
const length = items.length;
|
||||
const qs: IDataObject = {};
|
||||
let responseData;
|
||||
const resource = this.getNodeParameter('resource', 0) as string;
|
||||
const operation = this.getNodeParameter('operation', 0) as string;
|
||||
const resource = this.getNodeParameter('resource', 0);
|
||||
const operation = this.getNodeParameter('operation', 0);
|
||||
for (let i = 0; i < length; i++) {
|
||||
try {
|
||||
if (resource === 'channel') {
|
||||
@@ -383,7 +383,7 @@ export class YouTube implements INodeType {
|
||||
//https://developers.google.com/youtube/v3/docs/channelBanners/insert
|
||||
if (operation === 'uploadBanner') {
|
||||
const channelId = this.getNodeParameter('channelId', i) as string;
|
||||
const binaryProperty = this.getNodeParameter('binaryProperty', i) as string;
|
||||
const binaryProperty = this.getNodeParameter('binaryProperty', i);
|
||||
|
||||
let mimeType;
|
||||
|
||||
@@ -849,7 +849,7 @@ export class YouTube implements INodeType {
|
||||
const title = this.getNodeParameter('title', i) as string;
|
||||
const categoryId = this.getNodeParameter('categoryId', i) as string;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
const binaryProperty = this.getNodeParameter('binaryProperty', i) as string;
|
||||
const binaryProperty = this.getNodeParameter('binaryProperty', i);
|
||||
|
||||
let mimeType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user