REFACTOR: Move Result to the public API (#2398)

* REFACTOR: Move Result to the public API

This refactors Result<T> to be part of the public NetscriptDefinitions.
It is not used by anything in this PR, but it is planned to be used in
the autoinfil APIs, or lacking that, future APIs, so this should not be
exposing anything prematurely.

* Add @public as api-extractor suggested and generate docs

* Use import type

---------

Co-authored-by: CatLover <152669316+catloversg@users.noreply.github.com>
This commit is contained in:
David Walker
2026-01-16 23:30:49 -08:00
committed by GitHub
parent 95528ebb09
commit 3d7d2d7734
19 changed files with 95 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ import { Companies } from "../Company/Companies";
import { isMember } from "../utils/EnumHelper";
import { canAccessBitNodeFeature } from "../BitNode/BitNodeUtils";
import { checkServerOwnership, ServerOwnershipType } from "../Server/ServerHelpers";
import { Result } from "../types";
import type { Result } from "@nsdefs";
import { exceptionAlert } from "../utils/helpers/exceptionAlert";
import { HashUpgradeEnum } from "./Enums";

View File

@@ -10,7 +10,7 @@ import { HashUpgrades } from "./HashUpgrades";
import { HashUpgrade } from "./HashUpgrade";
import { Generic_fromJSON, Generic_toJSON, IReviverValue, constructorsForReviver } from "../utils/JSONReviver";
import { Result } from "../types";
import type { Result } from "@nsdefs";
import { HashUpgradeEnum } from "./Enums";
export class HashManager {