mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 07:18:38 +02:00
updated appearach of example sections based on alainbryden suggestion
This commit is contained in:
11
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
11
src/ScriptEditor/NetscriptDefinitions.d.ts
vendored
@@ -3710,17 +3710,24 @@ interface Stanek {
|
||||
* @remarks
|
||||
* <b>Basic ns1 usage example:</b>
|
||||
* ```ts
|
||||
* property.methodName;
|
||||
* // Basic ns functions can be used directly
|
||||
* methodName();
|
||||
* // Some related functions are gathered within a common namespace
|
||||
* property.methodName()
|
||||
* ```
|
||||
* {@link https://bitburner.readthedocs.io/en/latest/netscript/netscript1.html| ns1 in-game docs}
|
||||
* <hr>
|
||||
* <b>Basic ns2 usage example:</b>
|
||||
* ```ts
|
||||
* export async function main(ns) {
|
||||
* ns.property.methodName;
|
||||
* // Basic ns functions can be accessed on the ns object
|
||||
* ns.methodName;
|
||||
* // Some related functions are gathered under a sub-property of the ns object
|
||||
* ns.property.methodName
|
||||
* }
|
||||
* ```
|
||||
* {@link https://bitburner.readthedocs.io/en/latest/netscript/netscriptjs.html| ns2 in-game docs}
|
||||
* <hr>
|
||||
*/
|
||||
export interface NS extends Singularity {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user