mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +01:00
yet another any
This commit is contained in:
parent
97105b8e76
commit
5f229c9c67
@ -33,9 +33,10 @@ export function NetscriptExtra(player: IPlayer): InternalAPI<INetscriptExtra> {
|
|||||||
(ctx: NetscriptContext) =>
|
(ctx: NetscriptContext) =>
|
||||||
(doc: unknown): void => {
|
(doc: unknown): void => {
|
||||||
// reset both fields first
|
// 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;
|
d.completely_unused_field = undefined;
|
||||||
const real_document: any = document;
|
const real_document = document as unknown as temporary;
|
||||||
real_document.completely_unused_field = undefined;
|
real_document.completely_unused_field = undefined;
|
||||||
// set one to true and check that it affected the other.
|
// set one to true and check that it affected the other.
|
||||||
real_document.completely_unused_field = true;
|
real_document.completely_unused_field = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user