⚡ Enforce type checking in all node params (#2509)
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const alertContactOperations = [
|
||||
export const alertContactOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -44,9 +44,9 @@ export const alertContactOperations = [
|
||||
default: 'getAll',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const alertContactFields = [
|
||||
export const alertContactFields: INodeProperties[] = [
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* alertContact:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -297,4 +297,4 @@ export const alertContactFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const maintenanceWindowOperations = [
|
||||
export const maintenanceWindowOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -45,9 +45,9 @@ export const maintenanceWindowOperations = [
|
||||
default: 'getAll',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const maintenanceWindowFields = [
|
||||
export const maintenanceWindowFields: INodeProperties[] = [
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* maintenanceWindow:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -465,4 +465,4 @@ export const maintenanceWindowFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const monitorOperations = [
|
||||
export const monitorOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -49,9 +49,9 @@ export const monitorOperations = [
|
||||
default: 'getAll',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const monitorFields = [
|
||||
export const monitorFields: INodeProperties[] = [
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* monitor:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -509,4 +509,4 @@ export const monitorFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const publicStatusPageOperations = [
|
||||
export const publicStatusPageOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -47,9 +47,9 @@ export const publicStatusPageOperations = [
|
||||
default: 'getAll',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const publicStatusPageFields = [
|
||||
export const publicStatusPageFields: INodeProperties[] = [
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* publicStatusPage:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -335,4 +335,4 @@ export const publicStatusPageFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user