CODEBASE: Fix lint errors 2 (#1756)

This commit is contained in:
catloversg
2024-11-07 14:09:11 +07:00
committed by GitHub
parent e3c10e9f0f
commit 36c143b687
48 changed files with 267 additions and 146 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import { Terminal } from "../Terminal";
const deprecatedWarningsGiven = new Set();
export function setDeprecatedProperties(
obj: object,
properties: Record<string, { identifier: string; message: string; value: any }>,
properties: Record<string, { identifier: string; message: string; value: unknown }>,
) {
for (const [name, info] of Object.entries(properties)) {
Object.defineProperty(obj, name, {
@@ -11,7 +11,7 @@ export function setDeprecatedProperties(
deprecationWarning(info.identifier, info.message);
return info.value;
},
set: (value: any) => (info.value = value),
set: (value: unknown) => (info.value = value),
enumerable: true,
});
}