Enforce type checking in all node params (#2509)

This commit is contained in:
Iván Ovejero
2021-12-03 09:44:16 +01:00
committed by GitHub
parent ca761c88c8
commit a783288338
527 changed files with 2289 additions and 2259 deletions

View File

@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
export const contactOperations = [
export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const contactOperations = [
default: 'upsert',
description: 'The operation to perform.',
},
] as INodeProperties[];
];
export const contactFields = [
export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:upsert */
@@ -366,4 +366,4 @@ export const contactFields = [
default: 100,
description: 'How many results to return.',
},
] as INodeProperties[];
];

View File

@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
export const contactJourneyOperations = [
export const contactJourneyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const contactJourneyOperations = [
default: 'add',
description: 'The operation to perform.',
},
] as INodeProperties[];
];
export const contactJourneyFields = [
export const contactJourneyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contactJourney:add */
@@ -70,4 +70,4 @@ export const contactJourneyFields = [
default: '',
description: 'Can be ID or email.',
},
] as INodeProperties[];
];

View File

@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
export const contactListOperations = [
export const contactListOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const contactListOperations = [
default: 'add',
description: 'Operation to perform.',
},
] as INodeProperties[];
];
export const contactListFields = [
export const contactListFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contactList:add */
@@ -135,4 +135,4 @@ export const contactListFields = [
default: 100,
description: 'How many results to return.',
},
] as INodeProperties[];
];

View File

@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
export const listOperations = [
export const listOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const listOperations = [
default: 'create',
description: 'The operation to perform.',
},
] as INodeProperties[];
];
export const listFields = [
export const listFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* list:create */
@@ -99,4 +99,4 @@ export const listFields = [
default: 100,
description: 'How many results to return.',
},
] as INodeProperties[];
];