mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor(core): Introduce overload for number-type node parameter (no-changelog) (#4644)
* 📘 Set up overloads * 📘 Add temporary assertion * 🔥 Remove inferrable number assertions * ✏️ Add ticket ref
This commit is contained in:
@@ -107,11 +107,12 @@ export class AwsCertificateManager implements INodeType {
|
||||
const returnAll = this.getNodeParameter('returnAll', 0);
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
|
||||
const body: { Includes: IDataObject; CertificateStatuses: string[]; MaxItems: number } = {
|
||||
CertificateStatuses: [],
|
||||
Includes: {},
|
||||
MaxItems: 0,
|
||||
};
|
||||
const body: { Includes: IDataObject; CertificateStatuses: string[]; MaxItems: number } =
|
||||
{
|
||||
CertificateStatuses: [],
|
||||
Includes: {},
|
||||
MaxItems: 0,
|
||||
};
|
||||
|
||||
if (options.certificateStatuses) {
|
||||
body.CertificateStatuses = options.certificateStatuses as string[];
|
||||
@@ -144,7 +145,7 @@ export class AwsCertificateManager implements INodeType {
|
||||
},
|
||||
);
|
||||
} else {
|
||||
body.MaxItems = this.getNodeParameter('limit', 0) as number;
|
||||
body.MaxItems = this.getNodeParameter('limit', 0);
|
||||
responseData = await awsApiRequestREST.call(
|
||||
this,
|
||||
`acm`,
|
||||
|
||||
Reference in New Issue
Block a user