fix(core): Use explicit types in configs to ensure valid decorator metadata (#10433)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-08-15 13:58:20 +02:00
committed by GitHub
parent 0dc3e99b26
commit 2043daa257
17 changed files with 109 additions and 103 deletions

View File

@@ -4,9 +4,9 @@ import { Config, Env } from '../decorators';
export class TemplatesConfig {
/** Whether to load workflow templates. */
@Env('N8N_TEMPLATES_ENABLED')
enabled = true;
enabled: boolean = true;
/** Host to retrieve workflow templates from endpoints. */
@Env('N8N_TEMPLATES_HOST')
host = 'https://api.n8n.io/api/';
host: string = 'https://api.n8n.io/api/';
}