mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-03 03:47:35 +01:00
added semi colons they were missing at the end of some examples
This commit is contained in:
parent
db9b0a8ec8
commit
e1e032b61f
4
dist/bitburner.d.ts
vendored
4
dist/bitburner.d.ts
vendored
@ -2138,9 +2138,9 @@ export declare interface NodeStats {
|
|||||||
* ```ts
|
* ```ts
|
||||||
* export async function main(ns) {
|
* export async function main(ns) {
|
||||||
* // Basic ns functions can be accessed on the ns object
|
* // 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
|
* // 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}
|
* {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html| ns2 in-game docs}
|
||||||
|
@ -14221,7 +14221,7 @@
|
|||||||
{
|
{
|
||||||
"kind": "Interface",
|
"kind": "Interface",
|
||||||
"canonicalReference": "bitburner!NS:interface",
|
"canonicalReference": "bitburner!NS:interface",
|
||||||
"docComment": "/**\n * Collection of all functions passed to scripts\n *\n * @remarks\n *\n * <b>Basic ns1 usage example:</b>\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} <hr> <b>Basic ns2 usage example:</b>\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} <hr>\n *\n * @public\n */\n",
|
"docComment": "/**\n * Collection of all functions passed to scripts\n *\n * @remarks\n *\n * <b>Basic ns1 usage example:</b>\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} <hr> <b>Basic ns2 usage example:</b>\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} <hr>\n *\n * @public\n */\n",
|
||||||
"excerptTokens": [
|
"excerptTokens": [
|
||||||
{
|
{
|
||||||
"kind": "Content",
|
"kind": "Content",
|
||||||
|
@ -28,9 +28,9 @@ export interface NS extends Singularity
|
|||||||
```ts
|
```ts
|
||||||
export async function main(ns) {
|
export async function main(ns) {
|
||||||
// Basic ns functions can be accessed on the ns object
|
// 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
|
// 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) <hr>
|
[ns2 in-game docs](https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html) <hr>
|
||||||
|
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 43 KiB |
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
4
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@ -3713,7 +3713,7 @@ interface Stanek {
|
|||||||
* // Basic ns functions can be used directly
|
* // Basic ns functions can be used directly
|
||||||
* methodName();
|
* methodName();
|
||||||
* // Some related functions are gathered within a common namespace
|
* // 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}
|
* {@link https://bitburner.readthedocs.io/en/latest/netscript/netscript1.html| ns1 in-game docs}
|
||||||
* <hr>
|
* <hr>
|
||||||
@ -3723,7 +3723,7 @@ interface Stanek {
|
|||||||
* // Basic ns functions can be accessed on the ns object
|
* // Basic ns functions can be accessed on the ns object
|
||||||
* await ns.methodName;
|
* await ns.methodName;
|
||||||
* // Some related functions are gathered under a sub-property of the ns object
|
* // 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}
|
* {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html| ns2 in-game docs}
|
||||||
|
Loading…
Reference in New Issue
Block a user