mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +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:
@@ -547,6 +547,10 @@ export interface IGetNodeParameterOptions {
|
||||
}
|
||||
|
||||
namespace ExecuteFunctions {
|
||||
namespace StringReturning {
|
||||
export type NodeParameter = 'binaryProperty' | 'resource' | 'operation';
|
||||
}
|
||||
|
||||
namespace NumberReturning {
|
||||
export type NodeParameter = 'limit';
|
||||
}
|
||||
@@ -572,6 +576,12 @@ namespace ExecuteFunctions {
|
||||
itemIndex?: number,
|
||||
): T['resource'];
|
||||
|
||||
getNodeParameter(
|
||||
parameterName: StringReturning.NodeParameter,
|
||||
itemIndex: number,
|
||||
fallbackValue?: string,
|
||||
options?: IGetNodeParameterOptions,
|
||||
): string;
|
||||
getNodeParameter(
|
||||
parameterName: RecordReturning.NodeParameter,
|
||||
itemIndex: number,
|
||||
|
||||
Reference in New Issue
Block a user