Use a generic instead of an any object
All checks were successful
Test / build (push) Successful in 9s
All checks were successful
Test / build (push) Successful in 9s
This commit is contained in:
parent
67e6c16028
commit
3e4c3d502a
1 changed files with 1 additions and 3 deletions
|
@ -20,8 +20,7 @@ export default class OutputHelper {
|
||||||
return this.GetFriendlyObjectText(outputObject);
|
return this.GetFriendlyObjectText(outputObject);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
private static GetFriendlyObjectText<T>(object: T): string {
|
||||||
private static GetFriendlyObjectText(object: any): string {
|
|
||||||
const output: string[] = [];
|
const output: string[] = [];
|
||||||
|
|
||||||
for (const key in object) {
|
for (const key in object) {
|
||||||
|
@ -30,5 +29,4 @@ export default class OutputHelper {
|
||||||
|
|
||||||
return output.join("\n");
|
return output.join("\n");
|
||||||
}
|
}
|
||||||
/* eslint-enable @typescript-eslint/no-explicit-any */
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue