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:
Iván Ovejero
2022-11-18 16:29:44 +01:00
committed by GitHub
parent 0565194473
commit 0d9eeea024
202 changed files with 1003 additions and 985 deletions

View File

@@ -982,7 +982,7 @@ export class NextCloud implements INodeType {
headers['OCS-APIRequest'] = true;
headers['Content-Type'] = 'application/x-www-form-urlencoded';
const bodyParameters = this.getNodeParameter('options', i) as IDataObject;
const bodyParameters = this.getNodeParameter('options', i);
bodyParameters.path = this.getNodeParameter('path', i) as string;
bodyParameters.shareType = this.getNodeParameter('shareType', i) as number;
@@ -1018,7 +1018,7 @@ export class NextCloud implements INodeType {
body = `userid=${userid}&email=${email}`;
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
const additionalFields = this.getNodeParameter('additionalFields', i);
if (additionalFields.displayName) {
body += `&displayName=${additionalFields.displayName}`;
@@ -1057,7 +1057,7 @@ export class NextCloud implements INodeType {
requestMethod = 'GET';
const returnAll = this.getNodeParameter('returnAll', i);
qs = this.getNodeParameter('options', i) as IDataObject;
qs = this.getNodeParameter('options', i);
if (!returnAll) {
qs.limit = this.getNodeParameter('limit', i);
}