diff --git a/credentials/FriendGridApi.credentials.ts b/credentials/FriendGridApi.credentials.ts index 9a4d4f4..c6eed99 100644 --- a/credentials/FriendGridApi.credentials.ts +++ b/credentials/FriendGridApi.credentials.ts @@ -1,21 +1,21 @@ import { ICredentialType, - NodePropertyTypes, + INodeProperties, } from 'n8n-workflow'; export class FriendGridApi implements ICredentialType { name = 'friendGridApi'; displayName = 'FriendGrid API'; documentationUrl = 'friendGrid'; - properties = [ + properties: INodeProperties[] = [ // The credentials to get from user and save encrypted. // Properties can be defined exactly in the same way // as node properties. { displayName: 'API Key', name: 'apiKey', - type: 'string' as NodePropertyTypes, + type: 'string', default: '', }, ]; -} \ No newline at end of file +} diff --git a/nodes/FriendGrid/descriptions/ContactDescription.ts b/nodes/FriendGrid/descriptions/ContactDescription.ts index 1f07eb7..6e9840b 100644 --- a/nodes/FriendGrid/descriptions/ContactDescription.ts +++ b/nodes/FriendGrid/descriptions/ContactDescription.ts @@ -2,7 +2,7 @@ import { INodeProperties, } from 'n8n-workflow'; -export const contactOperations = [ +export const contactOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', @@ -24,9 +24,9 @@ export const contactOperations = [ default: 'create', description: 'The operation to perform', }, -] as INodeProperties[]; +]; -export const contactFields = [ +export const contactFields: INodeProperties[] = [ /*-------------------------------------------------------------------------- */ /* contact:create */ /* ------------------------------------------------------------------------- */ @@ -79,4 +79,4 @@ export const contactFields = [ }, ], }, -] as INodeProperties[]; \ No newline at end of file +];