mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Remove linting exceptions in nodes-base, @typescript-eslint/no-unsafe-argument (no-changelog)
This commit is contained in:
@@ -96,7 +96,7 @@ function decodeAttribute(type: AttributeValueType, attribute: string | IAttribut
|
||||
|
||||
export function validateJSON(input: any): object {
|
||||
try {
|
||||
return JSON.parse(input);
|
||||
return JSON.parse(input as string);
|
||||
} catch (error) {
|
||||
throw new Error('Items must be a valid JSON');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user