Simplify more property types in credentials classes (#2211)

*  Simplify more property types

* 👕 Fix lint
This commit is contained in:
Iván Ovejero
2021-10-07 23:07:56 +02:00
committed by GitHub
parent d3a312cc6b
commit fa05d7557b
12 changed files with 55 additions and 56 deletions

View File

@@ -1,6 +1,6 @@
import {
ICredentialType,
NodePropertyTypes,
INodeProperties,
} from 'n8n-workflow';
const scopes = [
@@ -14,11 +14,11 @@ export class GooglePerspectiveOAuth2Api implements ICredentialType {
];
displayName = 'Google Perspective OAuth2 API';
documentationUrl = 'google';
properties = [
properties: INodeProperties[] = [
{
displayName: 'Scope',
name: 'scope',
type: 'hidden' as NodePropertyTypes,
type: 'hidden',
default: scopes.join(' '),
},
];