Skip to content

Commit

Permalink
Move _ValueOf to top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
catloversg committed Mar 6, 2025
1 parent a79692e commit 150c14d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/ScriptEditor/NetscriptDefinitions.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* @public
*/
type _ValueOf<T> = T[keyof T];

/** All netscript definitions */
/** @public */
interface HP {
Expand Down Expand Up @@ -8437,10 +8442,11 @@ type CorpIndustryName =
/** @public */
type CorpSmartSupplyOption = "leftovers" | "imports" | "none";

type _ValueOf<T> = T[keyof T];

/** Names of all cities
* @public */
/**
* Names of all cities
*
* @public
*/
type CityNameEnumType = {
Aevum: "Aevum";
Chongqing: "Chongqing";
Expand All @@ -8450,6 +8456,7 @@ type CityNameEnumType = {
Volhaven: "Volhaven";
};

/** @public */
type CityName = _ValueOf<CityNameEnumType>;

/** Names of all locations
Expand Down

0 comments on commit 150c14d

Please sign in to comment.