Use a generic instead of an any object
All checks were successful
Test / build (push) Successful in 9s

This commit is contained in:
Ethan Lane 2024-11-27 18:34:46 +00:00
parent 67e6c16028
commit 3e4c3d502a

View file

@ -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<T>(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 */
}