From 311dd676cdfb6284ce007e86cc10e3d33ded0e4b Mon Sep 17 00:00:00 2001 From: metal Date: Sun, 12 Mar 2023 01:04:19 +0000 Subject: [PATCH] revert automod any typing Signed-off-by: GitHub --- backend/src/plugins/Automod/AutomodPlugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/plugins/Automod/AutomodPlugin.ts b/backend/src/plugins/Automod/AutomodPlugin.ts index a1a5eb48..333dc29e 100644 --- a/backend/src/plugins/Automod/AutomodPlugin.ts +++ b/backend/src/plugins/Automod/AutomodPlugin.ts @@ -64,8 +64,8 @@ const defaultOptions = { /** * Config preprocessor to set default values for triggers and perform extra validation */ -// TODO: Fix `any` typing -const configParser: ConfigParserFn = (options: any) => { + +const configParser: ConfigParserFn = (options) => { if (options.config?.rules) { // Loop through each rule for (const [name, rule] of Object.entries(options.config.rules)) {