diff --git a/dist/bitburner.d.ts b/dist/bitburner.d.ts index f9e541aa0..f892cee8e 100644 --- a/dist/bitburner.d.ts +++ b/dist/bitburner.d.ts @@ -2138,9 +2138,9 @@ export declare interface NodeStats { * ```ts * export async function main(ns) { * // Basic ns functions can be accessed on the ns object - * ns.methodName; + * await ns.methodName; * // Some related functions are gathered under a sub-property of the ns object - * ns.property.methodName + * await ns.property.methodName * } * ``` * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html| ns2 in-game docs} diff --git a/input/bitburner.api.json b/input/bitburner.api.json index 448926938..23a6155d9 100644 --- a/input/bitburner.api.json +++ b/input/bitburner.api.json @@ -14221,7 +14221,7 @@ { "kind": "Interface", "canonicalReference": "bitburner!NS:interface", - "docComment": "/**\n * Collection of all functions passed to scripts\n *\n * @remarks\n *\n * Basic ns1 usage example:\n * ```ts\n * // Basic ns functions can be used directly\n * methodName();\n * // Some related functions are gathered within a common namespace\n * property.methodName()\n * ```\n *\n * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscript1.html | ns1 in-game docs}
Basic ns2 usage example:\n * ```ts\n * export async function main(ns) {\n * // Basic ns functions can be accessed on the ns object\n * ns.methodName;\n * // Some related functions are gathered under a sub-property of the ns object\n * ns.property.methodName\n * }\n * ```\n *\n * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html | ns2 in-game docs}
\n *\n * @public\n */\n", + "docComment": "/**\n * Collection of all functions passed to scripts\n *\n * @remarks\n *\n * Basic ns1 usage example:\n * ```ts\n * // Basic ns functions can be used directly\n * methodName();\n * // Some related functions are gathered within a common namespace\n * property.methodName()\n * ```\n *\n * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscript1.html | ns1 in-game docs}
Basic ns2 usage example:\n * ```ts\n * export async function main(ns) {\n * // Basic ns functions can be accessed on the ns object\n * await ns.methodName;\n * // Some related functions are gathered under a sub-property of the ns object\n * await ns.property.methodName\n * }\n * ```\n *\n * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html | ns2 in-game docs}
\n *\n * @public\n */\n", "excerptTokens": [ { "kind": "Content", diff --git a/markdown/bitburner.ns.md b/markdown/bitburner.ns.md index f35fda80b..717e5efd0 100644 --- a/markdown/bitburner.ns.md +++ b/markdown/bitburner.ns.md @@ -28,9 +28,9 @@ export interface NS extends Singularity ```ts export async function main(ns) { // Basic ns functions can be accessed on the ns object - ns.methodName; + await ns.methodName; // Some related functions are gathered under a sub-property of the ns object - ns.property.methodName + await ns.property.methodName } ``` [ns2 in-game docs](https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html)
diff --git a/markdown/bitburner.ns.pdf b/markdown/bitburner.ns.pdf deleted file mode 100644 index 46ccad00d..000000000 Binary files a/markdown/bitburner.ns.pdf and /dev/null differ diff --git a/markdown/bitburner.ns.png b/markdown/bitburner.ns.png deleted file mode 100644 index 9b63dfa96..000000000 Binary files a/markdown/bitburner.ns.png and /dev/null differ diff --git a/src/ScriptEditor/NetscriptDefinitions.d.ts b/src/ScriptEditor/NetscriptDefinitions.d.ts index 56553773e..184d63256 100644 --- a/src/ScriptEditor/NetscriptDefinitions.d.ts +++ b/src/ScriptEditor/NetscriptDefinitions.d.ts @@ -3713,7 +3713,7 @@ interface Stanek { * // Basic ns functions can be used directly * methodName(); * // Some related functions are gathered within a common namespace - * property.methodName() + * property.methodName(); * ``` * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscript1.html| ns1 in-game docs} *
@@ -3723,7 +3723,7 @@ interface Stanek { * // Basic ns functions can be accessed on the ns object * await ns.methodName; * // Some related functions are gathered under a sub-property of the ns object - * await ns.property.methodName + * await ns.property.methodName; * } * ``` * {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html| ns2 in-game docs}