mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 20:00:02 +00:00
⚡ Enforce type checking in all node params (#2509)
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
|
||||
import {
|
||||
IDataObject,
|
||||
INodeProperties,
|
||||
INodePropertyOptions,
|
||||
NodeApiError,
|
||||
} from 'n8n-workflow';
|
||||
@@ -92,7 +93,7 @@ export function adjustAddresses(addresses: [{ [key: string]: string }]) {
|
||||
return results;
|
||||
}
|
||||
|
||||
export function getAccountFields() {
|
||||
export function getAccountFields(): INodeProperties[] {
|
||||
return [
|
||||
{
|
||||
displayName: 'Account Category',
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
getAccountFields,
|
||||
} from '../GenericFunctions';
|
||||
|
||||
export const accountOperations = [
|
||||
export const accountOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const accountOperations = [
|
||||
default: 'create',
|
||||
description: 'Operation to perform',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const accountFields = [
|
||||
export const accountFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// account:create
|
||||
// ----------------------------------------
|
||||
@@ -271,4 +271,4 @@ export const accountFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user