Add documentation for ns.pid

This commit is contained in:
omuretsu
2022-12-13 09:08:23 -05:00
parent 52034ccedc
commit 1dec0d00bd
6 changed files with 19 additions and 16 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
import { Player } from "@player";
import { NSFull } from "../NetscriptFunctions";
/** This type assumes any value that isn't an API layer or a function has been omitted (args and enum) */
/** This type assumes any value that isn't an API layer or a function has been omitted (enum) */
type RamCostTree<API> = Omit<
{
[Property in keyof API]: API[Property] extends () => unknown ? number | (() => number) : RamCostTree<API[Property]>;
},
"enums" | "args"
"enums"
>;
/** Constants for assigning costs to ns functions */