Declare as INodeProperties instead of casting

This commit is contained in:
Valentina Lilova 2022-04-27 18:10:59 +03:00
commit 5e04f87fea
2 changed files with 8 additions and 8 deletions

View file

@ -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: '',
},
];
}
}