refactor(core): Introduce overload for boolean-type node parameter (no-changelog) (#4647)
* 📘 Set up overloads * 📘 Add temporary assertion * 🔥 Remove inferrable boolean assertions * ⏪ Undo autoformatting
This commit is contained in:
@@ -244,7 +244,7 @@ export class Wordpress implements INodeType {
|
||||
}
|
||||
//https://developer.wordpress.org/rest-api/reference/posts/#list-posts
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.context) {
|
||||
qs.context = options.context as string;
|
||||
@@ -387,7 +387,7 @@ export class Wordpress implements INodeType {
|
||||
}
|
||||
//https://developer.wordpress.org/rest-api/reference/users/#list-users
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
if (options.context) {
|
||||
qs.context = options.context as string;
|
||||
|
||||
Reference in New Issue
Block a user