From 3e4c3d502afd630d87fc6831f4cd6013abb71151 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Wed, 27 Nov 2024 18:34:46 +0000 Subject: [PATCH] Use a generic instead of an any object --- src/helpers/outputHelper.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/helpers/outputHelper.ts b/src/helpers/outputHelper.ts index f7b3790..976f7d9 100644 --- a/src/helpers/outputHelper.ts +++ b/src/helpers/outputHelper.ts @@ -20,8 +20,7 @@ export default class OutputHelper { return this.GetFriendlyObjectText(outputObject); } - /* eslint-disable @typescript-eslint/no-explicit-any */ - private static GetFriendlyObjectText(object: any): string { + private static GetFriendlyObjectText(object: T): string { const output: string[] = []; for (const key in object) { @@ -30,5 +29,4 @@ export default class OutputHelper { return output.join("\n"); } - /* eslint-enable @typescript-eslint/no-explicit-any */ } \ No newline at end of file