From 5f229c9c67e4b0f267e936e3a4df01524eac8cd1 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Mon, 18 Jul 2022 02:33:21 -0400 Subject: [PATCH] yet another any --- src/NetscriptFunctions/Extra.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/NetscriptFunctions/Extra.ts b/src/NetscriptFunctions/Extra.ts index 916ad96da..a5e2b04ba 100644 --- a/src/NetscriptFunctions/Extra.ts +++ b/src/NetscriptFunctions/Extra.ts @@ -33,9 +33,10 @@ export function NetscriptExtra(player: IPlayer): InternalAPI { (ctx: NetscriptContext) => (doc: unknown): void => { // reset both fields first - const d = doc as any; + type temporary = { completely_unused_field: unknown }; + const d = doc as temporary; d.completely_unused_field = undefined; - const real_document: any = document; + const real_document = document as unknown as temporary; real_document.completely_unused_field = undefined; // set one to true and check that it affected the other. real_document.completely_unused_field = true;