mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
CODEBASE: Fix lint errors 2 (#1756)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user